Skip to content

Commit 8209803

Browse files
committed
Update supported Node.js versions.
This drops support for EOL Node.js versions, allows use of APIs available in modern Node.js, allows updating dependencies, and prepares for the requirements of ESLint v9 when it’s released: https://github.com/eslint/eslint/blob/ba89c73261f7fd1b6cdd50cfaeb8f4ce36101757/package.json#L175
1 parent 6af87e3 commit 8209803

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest, macos-latest]
10-
node: ["14", "16", "18"]
10+
node: ["18", "20", "21"]
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Setup Node.js v${{ matrix.node }}

changelog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# graphql-react changelog
22

3+
## Next
4+
5+
### Major
6+
7+
- Updated Node.js support to `^18.18.0 || ^20.9.0 || >=21.1.0`.
8+
9+
### Patch
10+
11+
- Updated GitHub Actions CI config:
12+
- Run tests with Node.js v18, v20, v21.
13+
314
## 20.0.0
415

516
### Major

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@
9494
"./useWaterfallLoad.mjs": "./useWaterfallLoad.mjs"
9595
},
9696
"engines": {
97-
"node": "^14.17.0 || ^16.0.0 || >= 18.0.0"
97+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
9898
},
99-
"browserslist": "Node 14.17 - 15 and Node < 15, Node 16 - 17 and Node < 17, Node >= 18, > 0.5%, not OperaMini all, not dead",
99+
"browserslist": "Node 18.18 - 19 and Node < 19, Node 20.9 - 21 and Node < 21, Node >= 21.1, > 0.5%, not OperaMini all, not dead",
100100
"peerDependencies": {
101101
"react": "16.14 - 18"
102102
},

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default function GitHubRepoStars({ repoId }) {
151151

152152
Supported runtime environments:
153153

154-
- [Node.js](https://nodejs.org) versions `^14.17.0 || ^16.0.0 || >= 18.0.0`.
154+
- [Node.js](https://nodejs.org) versions `^18.18.0 || ^20.9.0 || >=21.1.0`.
155155
- [Deno](https://deno.land), importing from a CDN that might require an import map for dependencies.
156156
- Browsers matching the [Browserslist](https://browsersl.ist) query [`> 0.5%, not OperaMini all, not dead`](https://browsersl.ist/?q=%3E+0.5%25%2C+not+OperaMini+all%2C+not+dead).
157157

0 commit comments

Comments
 (0)