Skip to content

Commit

Permalink
feat: update supported node engines in package.json
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wraithgar committed Sep 8, 2022
1 parent eb1998a commit 457d388
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 12.13.0
- 12.x
- 14.15.0
- 14.17.0
- 14.x
- 16.0.0
- 16.13.0
- 16.x
- 18.0.0
- 18.x
platform:
- os: ubuntu-latest
shell: bash
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 12.13.0
- 12.x
- 14.15.0
- 14.17.0
- 14.x
- 16.0.0
- 16.13.0
- 16.x
- 18.0.0
- 18.x
platform:
- os: ubuntu-latest
shell: bash
Expand Down Expand Up @@ -77,12 +77,12 @@ jobs:
fail-fast: false
matrix:
node-version:
- 12.13.0
- 12.x
- 14.15.0
- 14.17.0
- 14.x
- 16.0.0
- 16.13.0
- 16.x
- 18.0.0
- 18.x
platform:
- os: ubuntu-latest
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"tap": "^16.0.1"
},
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16"
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"docs": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,6 @@
},
"license": "Artistic-2.0",
"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16"
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
}

0 comments on commit 457d388

Please sign in to comment.