From 4db4ba1b0b312410a0f62100a93a80c246a6c410 Mon Sep 17 00:00:00 2001 From: hannes Date: Thu, 13 May 2021 13:02:43 +0800 Subject: [PATCH] chore!: remove node 10 support (#2596) - https://github.com/conventional-changelog/commitlint/pull/2574 - https://github.com/conventional-changelog/commitlint/pull/2575 - https://github.com/conventional-changelog/commitlint/pull/2582 BREAKING CHANGE: minimum node version is 12 --- .circleci/config.yml | 16 ++++++------- @alias/commitlint-config-angular/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- @alias/commitlint/package.json | 2 +- @commitlint/cli/package.json | 6 ++--- .../config-angular-type-enum/package.json | 2 +- @commitlint/config-angular/package.json | 2 +- @commitlint/config-conventional/package.json | 2 +- @commitlint/config-lerna-scopes/package.json | 2 +- @commitlint/config-patternplate/package.json | 2 +- @commitlint/core/package.json | 2 +- @commitlint/ensure/package.json | 2 +- @commitlint/execute-rule/package.json | 2 +- @commitlint/format/package.json | 2 +- @commitlint/is-ignored/package.json | 2 +- @commitlint/lint/package.json | 2 +- @commitlint/load/package.json | 2 +- @commitlint/message/package.json | 2 +- @commitlint/parse/package.json | 2 +- @commitlint/prompt-cli/package.json | 2 +- @commitlint/prompt/package.json | 2 +- @commitlint/read/package.json | 4 ++-- @commitlint/resolve-extends/package.json | 2 +- @commitlint/rules/package.json | 2 +- @commitlint/to-lines/package.json | 2 +- @commitlint/top-level/package.json | 2 +- @commitlint/travis-cli/package.json | 2 +- @commitlint/types/package.json | 2 +- @packages/test-environment/package.json | 2 +- @packages/test/package.json | 4 ++-- @packages/utils/package.json | 6 ++--- README.md | 2 +- babel.config.js | 2 +- yarn.lock | 24 ++++++++++++++----- 35 files changed, 65 insertions(+), 53 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 268a3b08ae..d302fff967 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -76,19 +76,19 @@ commands: - build - test jobs: - v10: - docker: - - image: node:10 - steps: - - run-tests v12: docker: - - image: node:12 + - image: node:12-buster steps: - run-all v14: docker: - - image: node:14 + - image: node:14-buster + steps: + - run-tests + v16: + docker: + - image: node:16-buster steps: - run-tests windows-v12: @@ -99,7 +99,7 @@ jobs: workflows: node: jobs: - - v10 - v12 - v14 + - v16 - windows-v12 diff --git a/@alias/commitlint-config-angular/package.json b/@alias/commitlint-config-angular/package.json index 87450877bd..456912d8c8 100644 --- a/@alias/commitlint-config-angular/package.json +++ b/@alias/commitlint-config-angular/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "dependencies": { "@commitlint/config-angular": "^12.1.4" diff --git a/@alias/commitlint-config-lerna-scopes/package.json b/@alias/commitlint-config-lerna-scopes/package.json index 584ccc8177..f1ed3267af 100644 --- a/@alias/commitlint-config-lerna-scopes/package.json +++ b/@alias/commitlint-config-lerna-scopes/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "dependencies": { "@commitlint/config-lerna-scopes": "^12.1.4" diff --git a/@alias/commitlint-config-patternplate/package.json b/@alias/commitlint-config-patternplate/package.json index 76b5b0949e..ab5fa03ce3 100644 --- a/@alias/commitlint-config-patternplate/package.json +++ b/@alias/commitlint-config-patternplate/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "dependencies": { "@commitlint/config-patternplate": "^12.1.4" diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index 4f078ea4ad..f2caadeeb6 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-main" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index 141d4b0d35..8a62ba8503 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -15,7 +15,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", @@ -40,7 +40,7 @@ "@commitlint/utils": "^12.1.4", "@types/yargs": "^16.0.0", "execa": "^5.0.0", - "fs-extra": "^9.0.0" + "fs-extra": "^10.0.0" }, "dependencies": { "@commitlint/format": "^12.1.4", @@ -51,7 +51,7 @@ "lodash": "^4.17.19", "resolve-from": "5.0.0", "resolve-global": "1.0.0", - "yargs": "^16.2.0" + "yargs": "^17.0.0" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" } diff --git a/@commitlint/config-angular-type-enum/package.json b/@commitlint/config-angular-type-enum/package.json index c5d51e3acc..f5a367964a 100644 --- a/@commitlint/config-angular-type-enum/package.json +++ b/@commitlint/config-angular-type-enum/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "devDependencies": { "@commitlint/utils": "^12.1.4" diff --git a/@commitlint/config-angular/package.json b/@commitlint/config-angular/package.json index 44d34142dc..ba4b06eef8 100644 --- a/@commitlint/config-angular/package.json +++ b/@commitlint/config-angular/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "devDependencies": { "@commitlint/utils": "^12.1.4" diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index 1fc2c9f133..75ec10935d 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "devDependencies": { "@commitlint/lint": "^12.1.4", diff --git a/@commitlint/config-lerna-scopes/package.json b/@commitlint/config-lerna-scopes/package.json index 5a0657d431..493dd3bd03 100644 --- a/@commitlint/config-lerna-scopes/package.json +++ b/@commitlint/config-lerna-scopes/package.json @@ -34,7 +34,7 @@ } }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "dependencies": { "globby": "^11.0.1", diff --git a/@commitlint/config-patternplate/package.json b/@commitlint/config-patternplate/package.json index b56e8992e0..e323a6baa2 100644 --- a/@commitlint/config-patternplate/package.json +++ b/@commitlint/config-patternplate/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "dependencies": { "@commitlint/config-angular": "^12.1.4", diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index 706525660f..880b2c7dc9 100644 --- a/@commitlint/core/package.json +++ b/@commitlint/core/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/ensure/package.json b/@commitlint/ensure/package.json index f8b877126e..614198ef6d 100644 --- a/@commitlint/ensure/package.json +++ b/@commitlint/ensure/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/execute-rule/package.json b/@commitlint/execute-rule/package.json index e2ea046f1f..de8c91b7a3 100644 --- a/@commitlint/execute-rule/package.json +++ b/@commitlint/execute-rule/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/format/package.json b/@commitlint/format/package.json index f70f14c332..5e4d95bbbb 100644 --- a/@commitlint/format/package.json +++ b/@commitlint/format/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/is-ignored/package.json b/@commitlint/is-ignored/package.json index 4de3cbfa4a..b9ac5b7023 100644 --- a/@commitlint/is-ignored/package.json +++ b/@commitlint/is-ignored/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/lint/package.json b/@commitlint/lint/package.json index b29afaa65d..fe150a3506 100644 --- a/@commitlint/lint/package.json +++ b/@commitlint/lint/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 12675692f7..5a0bcaf86c 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/message/package.json b/@commitlint/message/package.json index 32b983e756..14b06e617f 100644 --- a/@commitlint/message/package.json +++ b/@commitlint/message/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json index ca82aa84d7..004252e04a 100644 --- a/@commitlint/parse/package.json +++ b/@commitlint/parse/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index 5e97e8b208..a4959a9b30 100644 --- a/@commitlint/prompt-cli/package.json +++ b/@commitlint/prompt-cli/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "devDependencies": { "@commitlint/test": "^12.1.4", diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index 7622431967..1ec05b8286 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -33,7 +33,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10" + "node": ">=v12" }, "devDependencies": { "@commitlint/utils": "^12.1.4", diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index 25e79d172f..35fbd8b2b3 100644 --- a/@commitlint/read/package.json +++ b/@commitlint/read/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", @@ -43,7 +43,7 @@ "dependencies": { "@commitlint/top-level": "^12.1.4", "@commitlint/types": "^12.1.4", - "fs-extra": "^9.0.0", + "fs-extra": "^10.0.0", "git-raw-commits": "^2.0.0" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index cbad47e1eb..de3da82a95 100644 --- a/@commitlint/resolve-extends/package.json +++ b/@commitlint/resolve-extends/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/rules/package.json b/@commitlint/rules/package.json index 6afd00d0c7..59fb4345a7 100644 --- a/@commitlint/rules/package.json +++ b/@commitlint/rules/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/to-lines/package.json b/@commitlint/to-lines/package.json index 0aa0b4dee8..8c7e7a49ba 100644 --- a/@commitlint/to-lines/package.json +++ b/@commitlint/to-lines/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/top-level/package.json b/@commitlint/top-level/package.json index 43873a0ee0..60cac34cf7 100644 --- a/@commitlint/top-level/package.json +++ b/@commitlint/top-level/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index 973f12beb0..1d78aece80 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -14,7 +14,7 @@ "pkg": "pkg-check --skip-main" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@commitlint/types/package.json b/@commitlint/types/package.json index 450b458b5f..7e2e2f6750 100644 --- a/@commitlint/types/package.json +++ b/@commitlint/types/package.json @@ -11,7 +11,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@packages/test-environment/package.json b/@packages/test-environment/package.json index 4d96de6dd2..f8976a652e 100644 --- a/@packages/test-environment/package.json +++ b/@packages/test-environment/package.json @@ -9,7 +9,7 @@ "lib/" ], "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@packages/test/package.json b/@packages/test/package.json index 063c99fcc6..97bd059ec6 100644 --- a/@packages/test/package.json +++ b/@packages/test/package.json @@ -9,7 +9,7 @@ "lib/" ], "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", @@ -33,7 +33,7 @@ "@types/fs-extra": "^9.0.1", "@types/tmp": "^0.2.0", "execa": "^5.0.0", - "fs-extra": "^9.0.0", + "fs-extra": "^10.0.0", "pkg-dir": "5.0.0", "resolve-pkg": "2.0.0", "tmp": "0.2.1" diff --git a/@packages/utils/package.json b/@packages/utils/package.json index 8c42707382..8ced38d9e6 100644 --- a/@packages/utils/package.json +++ b/@packages/utils/package.json @@ -16,7 +16,7 @@ "pkg": "node pkg-check.js --skip-main" }, "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", @@ -41,12 +41,12 @@ }, "dependencies": { "execa": "^5.0.0", - "fs-extra": "^9.0.0", + "fs-extra": "^10.0.0", "read-pkg": "6.0.0", "require-from-string": "2.0.2", "tar-fs": "2.1.1", "tmp": "0.2.1", - "yargs": "^16.2.0" + "yargs": "^17.0.0" }, "gitHead": "71f0194f33943954a8dac1c458be47e5049717cd" } diff --git a/README.md b/README.md index 2e3301b0c8..23fc792447 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,7 @@ is room and need for improvement. The items on the roadmap should enhance `commi ## Version Support -- Node.js [LTS](https://github.com/nodejs/LTS#lts-schedule) `>= 10.21.0` +- Node.js [LTS](https://github.com/nodejs/LTS#lts-schedule) `>= 12` - git `>= 2.13.2` ## Related projects diff --git a/babel.config.js b/babel.config.js index e77a4562ba..82fd0b7d59 100644 --- a/babel.config.js +++ b/babel.config.js @@ -5,7 +5,7 @@ module.exports = { '@babel/preset-env', { debug: process.env.DEBUG === 'true', - targets: {node: '10'}, + targets: {node: '12'}, }, ], ], diff --git a/yarn.lock b/yarn.lock index 2cc4a160b6..0883339352 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4920,15 +4920,14 @@ fs-extra@8.1.0, fs-extra@^8.1.0: jsonfile "^4.0.0" universalify "^0.1.0" -fs-extra@^9.0.0: - version "9.0.1" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc" - integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ== +fs-extra@^10.0.0: + version "10.0.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1" + integrity sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ== dependencies: - at-least-node "^1.0.0" graceful-fs "^4.2.0" jsonfile "^6.0.1" - universalify "^1.0.0" + universalify "^2.0.0" fs-extra@^9.1.0: version "9.1.0" @@ -10727,3 +10726,16 @@ yargs@^16.2.0: string-width "^4.2.0" y18n "^5.0.5" yargs-parser "^20.2.2" + +yargs@^17.0.0: + version "17.0.0" + resolved "https://registry.npmjs.org/yargs/-/yargs-17.0.0.tgz#147db33e222e8e6a7829df5f2ae696b58d1c82bf" + integrity sha512-gbtedDPfBgG40iLbaRXhqYJycUYqFVZQLIxl1cG5Ez/xZL/47TetSYzPSIixkWa36GKHr9D/o/oSG1vHXF4zTw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2"