diff --git a/@alias/commitlint-config-angular/package.json b/@alias/commitlint-config-angular/package.json index f41a4e66a5..96599e5824 100644 --- a/@alias/commitlint-config-angular/package.json +++ b/@alias/commitlint-config-angular/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "@commitlint/config-angular": "^20.5.3" diff --git a/@alias/commitlint-config-lerna-scopes/package.json b/@alias/commitlint-config-lerna-scopes/package.json index dfe2891c24..2b141ae0dc 100644 --- a/@alias/commitlint-config-lerna-scopes/package.json +++ b/@alias/commitlint-config-lerna-scopes/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "@commitlint/config-lerna-scopes": "^20.4.3" diff --git a/@alias/commitlint-config-nx-scopes/package.json b/@alias/commitlint-config-nx-scopes/package.json index d3897c3237..12ca6bf7e2 100644 --- a/@alias/commitlint-config-nx-scopes/package.json +++ b/@alias/commitlint-config-nx-scopes/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "@commitlint/config-nx-scopes": "^20.5.0" diff --git a/@alias/commitlint-config-patternplate/package.json b/@alias/commitlint-config-patternplate/package.json index bf7e1aa484..2d2180c7d8 100644 --- a/@alias/commitlint-config-patternplate/package.json +++ b/@alias/commitlint-config-patternplate/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "@commitlint/config-patternplate": "^20.5.3" diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index f845922a33..69d863628e 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -14,7 +14,7 @@ "pkg": "pkg-check --skip-main" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index 5b99069be9..15689cde7d 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -17,7 +17,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", @@ -53,7 +53,7 @@ "@commitlint/read": "^20.5.0", "@commitlint/types": "^20.5.0", "tinyexec": "^1.0.0", - "yargs": "^17.0.0" + "yargs": "^18.0.0" }, "gitHead": "e82f05a737626bb69979d14564f5ff601997f679" } diff --git a/@commitlint/config-angular-type-enum/package.json b/@commitlint/config-angular-type-enum/package.json index 5c95d3a56b..4492773c2a 100644 --- a/@commitlint/config-angular-type-enum/package.json +++ b/@commitlint/config-angular-type-enum/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "devDependencies": { "@commitlint/utils": "^20.0.0" diff --git a/@commitlint/config-angular/package.json b/@commitlint/config-angular/package.json index 67da23b937..4e2e9324a8 100644 --- a/@commitlint/config-angular/package.json +++ b/@commitlint/config-angular/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "devDependencies": { "@commitlint/lint": "^20.5.3", diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index c40caac67e..27cdee9d58 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -32,7 +32,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "devDependencies": { "@commitlint/lint": "^20.5.3", diff --git a/@commitlint/config-lerna-scopes/package.json b/@commitlint/config-lerna-scopes/package.json index e9c2bde5d4..4a255a9ea0 100644 --- a/@commitlint/config-lerna-scopes/package.json +++ b/@commitlint/config-lerna-scopes/package.json @@ -37,7 +37,7 @@ } }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "@commitlint/config-workspace-scopes": "^20.4.3" diff --git a/@commitlint/config-nx-scopes/package.json b/@commitlint/config-nx-scopes/package.json index 8555b69973..0c840a63b5 100644 --- a/@commitlint/config-nx-scopes/package.json +++ b/@commitlint/config-nx-scopes/package.json @@ -37,7 +37,7 @@ } }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "@commitlint/types": "^20.5.0" diff --git a/@commitlint/config-patternplate/package.json b/@commitlint/config-patternplate/package.json index e788356a50..eea6ec6780 100644 --- a/@commitlint/config-patternplate/package.json +++ b/@commitlint/config-patternplate/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "@commitlint/config-angular": "^20.5.3", diff --git a/@commitlint/config-pnpm-scopes/package.json b/@commitlint/config-pnpm-scopes/package.json index 381d3a22fe..a241897a88 100644 --- a/@commitlint/config-pnpm-scopes/package.json +++ b/@commitlint/config-pnpm-scopes/package.json @@ -32,7 +32,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "@pnpm/read-project-manifest": "^5.0.10", diff --git a/@commitlint/config-rush-scopes/package.json b/@commitlint/config-rush-scopes/package.json index d1c7d6fff6..e680cdb9cb 100644 --- a/@commitlint/config-rush-scopes/package.json +++ b/@commitlint/config-rush-scopes/package.json @@ -32,7 +32,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "dependencies": { "jsonc": "^2.0.0" diff --git a/@commitlint/config-validator/package.json b/@commitlint/config-validator/package.json index 71f39de8ca..17aa1087fd 100644 --- a/@commitlint/config-validator/package.json +++ b/@commitlint/config-validator/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/config-workspace-scopes/package.json b/@commitlint/config-workspace-scopes/package.json index cfdc267c0c..32b0eced4d 100644 --- a/@commitlint/config-workspace-scopes/package.json +++ b/@commitlint/config-workspace-scopes/package.json @@ -27,7 +27,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "devDependencies": { "@commitlint/test": "^20.4.3", diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index 5c92198ef4..3b281c5a7f 100644 --- a/@commitlint/core/package.json +++ b/@commitlint/core/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/cz-commitlint/package.json b/@commitlint/cz-commitlint/package.json index 71d33a212f..c8231a348d 100644 --- a/@commitlint/cz-commitlint/package.json +++ b/@commitlint/cz-commitlint/package.json @@ -33,7 +33,7 @@ }, "engineStrict": true, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "author": "Curly Brackets ", "license": "MIT", diff --git a/@commitlint/ensure/package.json b/@commitlint/ensure/package.json index c7006733b0..0d8d148e89 100644 --- a/@commitlint/ensure/package.json +++ b/@commitlint/ensure/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/execute-rule/package.json b/@commitlint/execute-rule/package.json index b6fa2a0070..d1fa478bca 100644 --- a/@commitlint/execute-rule/package.json +++ b/@commitlint/execute-rule/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/format/package.json b/@commitlint/format/package.json index 51d35dab69..a8b0c13462 100644 --- a/@commitlint/format/package.json +++ b/@commitlint/format/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/is-ignored/package.json b/@commitlint/is-ignored/package.json index 9609cfbbe6..b997264aca 100644 --- a/@commitlint/is-ignored/package.json +++ b/@commitlint/is-ignored/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/lint/package.json b/@commitlint/lint/package.json index 68a23986ab..55f989f24e 100644 --- a/@commitlint/lint/package.json +++ b/@commitlint/lint/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 33346b7092..e74afb67e0 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/message/package.json b/@commitlint/message/package.json index e27a56855e..a11ae56f2e 100644 --- a/@commitlint/message/package.json +++ b/@commitlint/message/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json index 39fbc01851..59fa9190e0 100644 --- a/@commitlint/parse/package.json +++ b/@commitlint/parse/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index 7ae250376f..2104757341 100644 --- a/@commitlint/prompt-cli/package.json +++ b/@commitlint/prompt-cli/package.json @@ -31,7 +31,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "devDependencies": { "@commitlint/test": "^20.4.3", diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index 892544af62..75e10a968c 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -35,7 +35,7 @@ }, "homepage": "https://commitlint.js.org/", "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "devDependencies": { "@commitlint/config-angular": "^20.5.3", diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index 6399eae311..71f106c8c4 100644 --- a/@commitlint/read/package.json +++ b/@commitlint/read/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index e1254a25a1..16b76362b8 100644 --- a/@commitlint/resolve-extends/package.json +++ b/@commitlint/resolve-extends/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/rules/package.json b/@commitlint/rules/package.json index 24af97a7b9..3b9092e801 100644 --- a/@commitlint/rules/package.json +++ b/@commitlint/rules/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/to-lines/package.json b/@commitlint/to-lines/package.json index 2d4cef812d..bc9a5e1dcc 100644 --- a/@commitlint/to-lines/package.json +++ b/@commitlint/to-lines/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/top-level/package.json b/@commitlint/top-level/package.json index a5a47c1d77..341958f17e 100644 --- a/@commitlint/top-level/package.json +++ b/@commitlint/top-level/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index e967063c78..fb1cc2fa9c 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -17,7 +17,7 @@ "pkg": "pkg-check --skip-main" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@commitlint/types/package.json b/@commitlint/types/package.json index 9e8601a645..725f3da813 100644 --- a/@commitlint/types/package.json +++ b/@commitlint/types/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@packages/test-environment/package.json b/@packages/test-environment/package.json index 04df65a33c..5383c09cf6 100644 --- a/@packages/test-environment/package.json +++ b/@packages/test-environment/package.json @@ -10,7 +10,7 @@ "lib/" ], "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@packages/test/package.json b/@packages/test/package.json index daafcf6021..6814d0ff46 100644 --- a/@packages/test/package.json +++ b/@packages/test/package.json @@ -10,7 +10,7 @@ "lib/" ], "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", diff --git a/@packages/utils/package.json b/@packages/utils/package.json index ff6160af4c..9867f0207e 100644 --- a/@packages/utils/package.json +++ b/@packages/utils/package.json @@ -17,7 +17,7 @@ "pkg": "node pkg-check.js --skip-main" }, "engines": { - "node": ">=v22" + "node": ">=22.12.0" }, "repository": { "type": "git", @@ -49,7 +49,7 @@ "tar-fs": "^3.0.5", "tinyexec": "^1.0.0", "tmp": "^0.2.1", - "yargs": "^17.0.0" + "yargs": "^18.0.0" }, "gitHead": "71f0194f33943954a8dac1c458be47e5049717cd" } diff --git a/@packages/utils/pkg-check.js b/@packages/utils/pkg-check.js index 4f360df846..7d98ab05a3 100755 --- a/@packages/utils/pkg-check.js +++ b/@packages/utils/pkg-check.js @@ -90,7 +90,7 @@ function main(flags) { } main( - yargs + yargs(process.argv.slice(2)) .options({ cwd: { description: "directory to execute in", @@ -118,7 +118,8 @@ main( .example("$0", "") .help() .version() - .strict().argv, + .strict() + .parseSync(), ) .then((report) => { if (report.problems.length > 0) { diff --git a/README.md b/README.md index 73c05486e9..def841ec9a 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ Check the [main website](https://commitlint.js.org/). ## Version Support and Releases -- Node.js [LTS](https://github.com/nodejs/LTS#lts-schedule) `>= 22` +- Node.js [LTS](https://github.com/nodejs/LTS#lts-schedule) `>= 22.12` - git `>= 2.13.2` ### Releases diff --git a/package.json b/package.json index 92e4533f2d..73969a5a01 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@packages/*" ], "engines": { - "node": ">=v22", + "node": ">=22.12.0", "npm": ">=7" }, "repository": { diff --git a/yarn.lock b/yarn.lock index 21966cc169..77a7a01866 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3097,6 +3097,15 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" +cliui@^9.0.1: + version "9.0.1" + resolved "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz#6f7890f386f6f1f79953adc1f78dec46fcc2d291" + integrity sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w== + dependencies: + string-width "^7.2.0" + strip-ansi "^7.1.0" + wrap-ansi "^9.0.0" + clone-deep@4.0.1: version "4.0.1" resolved "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" @@ -7065,7 +7074,7 @@ string-width@^5.0.1, string-width@^5.1.2: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -string-width@^7.0.0: +string-width@^7.0.0, string-width@^7.2.0: version "7.2.0" resolved "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz#b5bb8e2165ce275d4d43476dd2700ad9091db6dc" integrity sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ== @@ -7930,7 +7939,12 @@ yargs-parser@^20.2.2, yargs-parser@^20.2.3: resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== -yargs@17.7.2, yargs@^17.0.0, yargs@^17.6.2: +yargs-parser@^22.0.0: + version "22.0.0" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz#87b82094051b0567717346ecd00fd14804b357c8" + integrity sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw== + +yargs@17.7.2, yargs@^17.6.2: version "17.7.2" resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== @@ -7956,6 +7970,18 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yargs@^18.0.0: + version "18.0.0" + resolved "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz#6c84259806273a746b09f579087b68a3c2d25bd1" + integrity sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg== + dependencies: + cliui "^9.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + string-width "^7.2.0" + y18n "^5.0.5" + yargs-parser "^22.0.0" + yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"