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/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..9cd25a1fec --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +12.18.3 diff --git a/@alias/commitlint-config-angular/package.json b/@alias/commitlint-config-angular/package.json index df50d1c7cb..541e5baab2 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.3" diff --git a/@alias/commitlint-config-lerna-scopes/package.json b/@alias/commitlint-config-lerna-scopes/package.json index e649da9883..b84e7a97ab 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.3" diff --git a/@alias/commitlint-config-patternplate/package.json b/@alias/commitlint-config-patternplate/package.json index fb27546222..ae10399113 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.3" diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index 593167a001..0777ba87c4 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 342d167fd6..e5efcf0ef8 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", diff --git a/@commitlint/config-angular-type-enum/package.json b/@commitlint/config-angular-type-enum/package.json index 83faeaf70f..3d376433e1 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.3" diff --git a/@commitlint/config-angular/package.json b/@commitlint/config-angular/package.json index decd1b5cba..5907354cac 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.3" diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index e216d18213..bb1c058534 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.3", diff --git a/@commitlint/config-lerna-scopes/package.json b/@commitlint/config-lerna-scopes/package.json index 025b124878..e3bb14f0cf 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 df40448096..3c825f985c 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.3", diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index 3a15897acd..25fe236c0d 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 f71c7484f9..95c4e2b04e 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 c68ffbe565..c231c9da66 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 a28052f8cd..a3e13e67c8 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 89120f3b54..fcb560ca01 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 4a22264bd3..7873062317 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 f7fde13b30..e56f4fc474 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 47cbc0795d..ab02038498 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 5deea68ae3..cf3d627dc0 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 885fc76537..06847ad2bd 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.3", diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index 3a86a4d1d4..d5dffdd584 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.3", diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index ed9fd767a8..6f44e74a68 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", diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index 46a5861048..73138ba9e2 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 f1b7df046b..730e05b9c2 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 665914226b..0602cd2fb3 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 95397242cb..bb50248511 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 90cf03885f..ef63293966 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 7808873171..142953e196 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 87a80f76f9..4613c89737 100644 --- a/@packages/test/package.json +++ b/@packages/test/package.json @@ -9,7 +9,7 @@ "lib/" ], "engines": { - "node": ">=v10" + "node": ">=v12" }, "repository": { "type": "git", diff --git a/@packages/utils/package.json b/@packages/utils/package.json index 9c1691b049..c2a758fd5d 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", 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'}, }, ], ],