Skip to content

Commit 2fec7ae

Browse files
authored
refactor: replace lodash.isplainobject with is-plain-obj" (#4601)
* refactor(cz-commitlint): replace lodash.isplainobject with is-plain-obj * refactor(load): replace lodash.isplainobject with is-plain-obj
1 parent 2b3e68b commit 2fec7ae

5 files changed

Lines changed: 9 additions & 18 deletions

File tree

@commitlint/cz-commitlint/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@commitlint/load": "^20.3.1",
4848
"@commitlint/types": "^20.3.1",
4949
"chalk": "^5.3.0",
50-
"lodash.isplainobject": "^4.0.6",
50+
"is-plain-obj": "^4.1.0",
5151
"word-wrap": "^1.2.5"
5252
},
5353
"peerDependencies": {
@@ -57,7 +57,6 @@
5757
"devDependencies": {
5858
"@types/inquirer": "^9.0.7",
5959
"@types/lodash.isfunction": "^3.0.8",
60-
"@types/lodash.isplainobject": "^4.0.8",
6160
"commitizen": "^4.2.4",
6261
"lodash.isfunction": "^3.0.9"
6362
},

@commitlint/cz-commitlint/src/store/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PromptConfig, UserPromptConfig } from "@commitlint/types";
2-
import isPlainObject from "lodash.isplainobject";
2+
import isPlainObject from "is-plain-obj";
33

44
import defaultPromptConfigs from "./defaultPromptConfigs.js";
55

@commitlint/load/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"license": "MIT",
3838
"devDependencies": {
3939
"@commitlint/test": "^20.0.0",
40-
"@types/lodash.isplainobject": "^4.0.8",
4140
"@types/lodash.merge": "^4.6.8",
4241
"@types/node": "^18.19.17",
4342
"conventional-changelog-atom": "^4.0.0",
@@ -51,7 +50,7 @@
5150
"chalk": "^5.3.0",
5251
"cosmiconfig": "^9.0.0",
5352
"cosmiconfig-typescript-loader": "^6.1.0",
54-
"lodash.isplainobject": "^4.0.6",
53+
"is-plain-obj": "^4.1.0",
5554
"lodash.merge": "^4.6.2"
5655
},
5756
"gitHead": "e82f05a737626bb69979d14564f5ff601997f679"

@commitlint/load/src/load.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
QualifiedRules,
1616
UserConfig,
1717
} from "@commitlint/types";
18-
import isPlainObject from "lodash.isplainobject";
18+
import isPlainObject from "is-plain-obj";
1919
import merge from "lodash.merge";
2020

2121
import { loadConfig } from "./utils/load-config.js";

yarn.lock

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,13 +1872,6 @@
18721872
dependencies:
18731873
"@types/lodash" "*"
18741874

1875-
"@types/lodash.isplainobject@^4.0.8":
1876-
version "4.0.9"
1877-
resolved "https://registry.npmjs.org/@types/lodash.isplainobject/-/lodash.isplainobject-4.0.9.tgz#3e0159c1598d96af2372151ed65f2792b61787e4"
1878-
integrity sha512-QC8nKcap5hRrbtIaPRjUMlcXXnLeayqQZPSaWJDx3xeuN17+2PW5wkmEJ4+lZgNnQRlSPzxjTYKCfV1uTnPaEg==
1879-
dependencies:
1880-
"@types/lodash" "*"
1881-
18821875
"@types/lodash.kebabcase@^4.1.8":
18831876
version "4.1.9"
18841877
resolved "https://registry.npmjs.org/@types/lodash.kebabcase/-/lodash.kebabcase-4.1.9.tgz#48d3df753b89499e75eba5e017979b560d69df85"
@@ -4918,6 +4911,11 @@ is-plain-obj@^2.0.0:
49184911
resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287"
49194912
integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==
49204913

4914+
is-plain-obj@^4.1.0:
4915+
version "4.1.0"
4916+
resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0"
4917+
integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==
4918+
49214919
is-plain-object@^2.0.4:
49224920
version "2.0.4"
49234921
resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
@@ -5449,11 +5447,6 @@ lodash.ismatch@^4.4.0:
54495447
resolved "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37"
54505448
integrity sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==
54515449

5452-
lodash.isplainobject@^4.0.6:
5453-
version "4.0.6"
5454-
resolved "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"
5455-
integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==
5456-
54575450
lodash.kebabcase@^4.1.1:
54585451
version "4.1.1"
54595452
resolved "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36"

0 commit comments

Comments
 (0)