Skip to content

Commit 9b7e529

Browse files
yaacovCRbenjie
andauthored
chore: drop unsupported node versions (#4447)
we will test only versions that are not EOL: i.e. 20, 22, 24, and update the engines field to give warnings on anything other than those versions. we may further choose to require minimum subversions of 20, 22, and 24 that enable require(esm), but this PR holds off on that just yet. --------- Co-authored-by: Benjie <[email protected]>
1 parent 5bdc53c commit 9b7e529

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
runs-on: ubuntu-latest
146146
strategy:
147147
matrix:
148-
node_version_to_setup: [16, 18, 19]
148+
node_version_to_setup: [20, 22, 24]
149149
permissions:
150150
contents: read # for actions/checkout
151151
steps:

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20
1+
v24

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"graphql-js"
2727
],
2828
"engines": {
29-
"node": "^16.19.0 || ^18.14.0 || >=19.7.0"
29+
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
3030
},
3131
"scripts": {
3232
"preversion": "bash -c '. ./resources/checkgit.sh && npm ci --ignore-scripts'",

website/pages/upgrade-guides/v16-v17.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import { Callout } from 'nextra/components'
1212

1313
# Breaking changes
1414

15+
## Required Node.js versions
16+
17+
The v17 release drops support for end-of-life versions of Node.JS, retaining support for versions 20, 22, and 24 or above.
18+
1519
## Default values
1620

1721
GraphQL schemas allow default values for input fields and arguments. Historically, GraphQL.js did not rigorously validate or coerce these

0 commit comments

Comments
 (0)