Skip to content

Commit 457d388

Browse files
committed
feat: update supported node engines in package.json
This also replaces the previous check for known broken versions of node with an exception handler for syntax errors in order to try and give a nicer error message when attempting to run npm on older node versions. BREAKING CHANGE: `npm` is now compatible with the following semver range for node: `^14.17.0 || ^16.13.0 || >=18.0.0` Ref: npm/statusboard#519
1 parent eb1998a commit 457d388

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ jobs:
6666
fail-fast: false
6767
matrix:
6868
node-version:
69-
- 12.13.0
70-
- 12.x
71-
- 14.15.0
69+
- 14.17.0
7270
- 14.x
73-
- 16.0.0
71+
- 16.13.0
7472
- 16.x
73+
- 18.0.0
74+
- 18.x
7575
platform:
7676
- os: ubuntu-latest
7777
shell: bash

.github/workflows/release.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
node-version:
30-
- 12.13.0
31-
- 12.x
32-
- 14.15.0
30+
- 14.17.0
3331
- 14.x
34-
- 16.0.0
32+
- 16.13.0
3533
- 16.x
34+
- 18.0.0
35+
- 18.x
3636
platform:
3737
- os: ubuntu-latest
3838
shell: bash
@@ -77,12 +77,12 @@ jobs:
7777
fail-fast: false
7878
matrix:
7979
node-version:
80-
- 12.13.0
81-
- 12.x
82-
- 14.15.0
80+
- 14.17.0
8381
- 14.x
84-
- 16.0.0
82+
- 16.13.0
8583
- 16.x
84+
- 18.0.0
85+
- 18.x
8686
platform:
8787
- os: ubuntu-latest
8888
shell: bash

package-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"tap": "^16.0.1"
179179
},
180180
"engines": {
181-
"node": "^12.13.0 || ^14.15.0 || >=16"
181+
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
182182
}
183183
},
184184
"docs": {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,6 @@
256256
},
257257
"license": "Artistic-2.0",
258258
"engines": {
259-
"node": "^12.13.0 || ^14.15.0 || >=16"
259+
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
260260
}
261261
}

0 commit comments

Comments
 (0)