Skip to content

Commit b31cd17

Browse files
committed
Update Node.js support and GitHub Actions CI config.
1 parent 9070416 commit b31cd17

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

.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: ["12", "14", "16", "17"]
10+
node: ["14", "16", "18"]
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Setup Node.js v${{ matrix.node }}

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
## Next
44

5+
### Major
6+
7+
- Updated Node.js support to `^14.17.0 || ^16.0.0 || >= 18.0.0`.
8+
59
### Patch
610

711
- Updated dev dependencies.
812
- Removed the [`fetch-blob`](https://npm.im/fetch-blob) and [`formdata-node`](https://npm.im/formdata-node) dev dependencies. Instead, `File` and `FormData` are imported from [`node-fetch`](https://npm.im/node-fetch).
913
- Updated `jsconfig.json` `compilerOptions.module` to `nodenext`.
14+
- Updated GitHub Actions CI config:
15+
- Run tests with Node.js v14, v16, v18.
1016
- Fixed the `fetchGraphQL` test with the global `fetch` API unavailable for new versions of Node.js that have the `fetch` global.
1117

1218
## 18.0.0

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": "^12.22.0 || ^14.17.0 || >= 16.0.0"
97+
"node": "^14.17.0 || ^16.0.0 || >= 18.0.0"
9898
},
99-
"browserslist": "Node 12.22 - 13 and Node < 13, Node 14.17 - 15 and Node < 15, Node >= 16, > 0.5%, not OperaMini all, not IE > 0, not dead",
99+
"browserslist": "Node 14.17 - 15 and Node < 15, Node 16 - 17 and Node < 17, Node >= 18, > 0.5%, not OperaMini all, not IE > 0, not dead",
100100
"peerDependencies": {
101101
"react": "16.14 - 17",
102102
"react-dom": "16.14 - 17"

readme.md

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

133133
## Requirements
134134

135-
- [Node.js](https://nodejs.org): `^12.22.0 || ^14.17.0 || >= 16.0.0`
135+
- [Node.js](https://nodejs.org): `^14.17.0 || ^16.0.0 || >= 18.0.0`
136136
- [Browsers](https://npm.im/browserslist): `> 0.5%, not OperaMini all, not IE > 0, not dead`
137137

138138
Consider polyfilling:

0 commit comments

Comments
 (0)