Skip to content

Commit

Permalink
chore!: minimum node version v18
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop node v14 and v16 support
  • Loading branch information
escapedcat committed Aug 19, 2023
1 parent 5af911e commit 07e8e23
Show file tree
Hide file tree
Showing 41 changed files with 44 additions and 108 deletions.
16 changes: 5 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,14 @@ commands:
- build
- test
jobs:
v14:
docker:
- image: node:14-buster
steps:
- run-tests
v16:
v18:
docker:
- image: node:16-buster
- image: node:18-buster
steps:
- run-tests
v18:
v20:
docker:
- image: node:18-buster
- image: node:20-buster
steps:
- run-tests
windows:
Expand All @@ -103,7 +98,6 @@ jobs:
workflows:
node:
jobs:
- v14
- v16
- v18
- v20
- windows
58 changes: 0 additions & 58 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,6 @@ name: CI
on: [push, pull_request]

jobs:
v14:
runs-on: ubuntu-22.04
container:
image: 'ubuntu:22.04'
steps:
- name: Install required dependencies
run: |
apt update
apt install --yes sudo
sudo apt install --yes git
sudo apt install --yes curl
curl --location https://deb.nodesource.com/setup_14.x | sudo --preserve-env bash -
sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs
- uses: actions/checkout@v3
# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
run: git config --global --add safe.directory '*'
- name: Install yarn
run: |
npm install --global yarn
node --version
yarn global add yarn@latest
- name: Install dependencies
run: yarn install --ignore-engines --frozen-lockfile
- name: Build packages
run: yarn build
- name: Test
run: yarn test-ci

v16:
runs-on: ubuntu-22.04
container:
image: 'ubuntu:22.04'
steps:
- name: Install required dependencies
run: |
apt update
apt install --yes sudo
sudo apt install --yes git
sudo apt install --yes curl
curl --location https://deb.nodesource.com/setup_16.x | sudo --preserve-env bash -
sudo DEBIAN_FRONTEND=noninteractive apt install --yes nodejs
- uses: actions/checkout@v3
# workaround for https://github.com/actions/runner/issues/2033
- name: ownership workaround
run: git config --global --add safe.directory '*'
- name: Install yarn
run: |
npm install --global yarn
node --version
yarn global add yarn@latest
- name: Install dependencies
run: yarn install --ignore-engines --frozen-lockfile
- name: Build packages
run: yarn build
- name: Test
run: yarn test-ci

v18:
runs-on: ubuntu-22.04
container:
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 18.16.0
nodejs 18.17.1
2 changes: 1 addition & 1 deletion @alias/commitlint-config-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"dependencies": {
"@commitlint/config-angular": "^17.7.0"
Expand Down
2 changes: 1 addition & 1 deletion @alias/commitlint-config-lerna-scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"dependencies": {
"@commitlint/config-lerna-scopes": "^17.7.0"
Expand Down
2 changes: 1 addition & 1 deletion @alias/commitlint-config-nx-scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"dependencies": {
"@commitlint/config-nx-scopes": "^17.6.4"
Expand Down
2 changes: 1 addition & 1 deletion @alias/commitlint-config-patternplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"dependencies": {
"@commitlint/config-patternplate": "^17.7.0"
Expand Down
2 changes: 1 addition & 1 deletion @alias/commitlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"pkg": "pkg-check --skip-main"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-angular-type-enum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"devDependencies": {
"@commitlint/utils": "^17.4.0"
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"devDependencies": {
"@commitlint/lint": "^17.7.0",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-conventional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"devDependencies": {
"@commitlint/lint": "^17.7.0",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-lerna-scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"dependencies": {
"@lerna/project": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-nx-scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"devDependencies": {
"@commitlint/test": "^17.4.2",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-patternplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"dependencies": {
"@commitlint/config-angular": "^17.7.0",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-pnpm-scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"dependencies": {
"@pnpm/read-project-manifest": "^4.1.4",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-rush-scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"dependencies": {
"jsonc": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-validator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/cz-commitlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"engineStrict": true,
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"author": "Curly Brackets <water.curly@outlook.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/ensure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/execute-rule/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/is-ignored/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/load/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/parse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/prompt-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"devDependencies": {
"@commitlint/test": "^17.4.2",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"homepage": "https://commitlint.js.org/",
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"devDependencies": {
"@commitlint/config-angular": "^17.7.0",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/read/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check --skip-import"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/resolve-extends/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/rules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/to-lines/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/top-level/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"pkg": "pkg-check"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/travis-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"pkg": "pkg-check --skip-main"
},
"engines": {
"node": ">=v14"
"node": ">=v18"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 07e8e23

Please sign in to comment.