Skip to content

Commit

Permalink
feat: Drop support for Node.js 14.x and Node.js 16.x and add support …
Browse files Browse the repository at this point in the history
…for Node 20.x (#1255)

* feat: Drop support for Node.js 14.x and add support for Node 20.x
BREAKING CHANGE: Minimum supported Node.js version is now 14.x

* update node version in codesandbox

* drop support for node 16 too
  • Loading branch information
MatanBobi committed Sep 10, 2023
1 parent 365d555 commit 452097b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
@@ -1,5 +1,5 @@
{
"installCommand": "install:csb",
"sandboxes": ["github/kentcdodds/react-testing-library-examples"],
"node": "14"
"node": "18"
}
4 changes: 2 additions & 2 deletions .github/workflows/validate.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
# Otherwise we would not know if the problem is tied to the Node.js version
fail-fast: false
matrix:
node: [14, 16, 18]
node: [18, 20]
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -21,7 +21,7 @@
"author": "Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)",
"license": "MIT",
"engines": {
"node": ">=14"
"node": ">=18"
},
"browserslist": [
"and_chr 103",
Expand All @@ -40,7 +40,7 @@
"safari 15.5",
"samsung 17.0",
"samsung 16.0",
"node 14.0"
"node 18.0"
],
"scripts": {
"build": "kcd-scripts build --no-ts-defs --ignore \"**/__tests__/**,**/__node_tests__/**,**/__mocks__/**\" && kcd-scripts build --no-ts-defs --bundle --no-clean",
Expand Down

0 comments on commit 452097b

Please sign in to comment.