From 452097b35a207341f5328b997dfc901461a4e9d9 Mon Sep 17 00:00:00 2001 From: Matan Borenkraout Date: Sun, 10 Sep 2023 09:28:52 +0300 Subject: [PATCH] feat: Drop support for Node.js 14.x and Node.js 16.x and add support 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 --- .codesandbox/ci.json | 2 +- .github/workflows/validate.yml | 4 ++-- package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index e650cd6f..c66df417 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,5 +1,5 @@ { "installCommand": "install:csb", "sandboxes": ["github/kentcdodds/react-testing-library-examples"], - "node": "14" + "node": "18" } diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 77ae2f42..2a938d48 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 @@ -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 diff --git a/package.json b/package.json index 40a17db0..83d2ab26 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "author": "Kent C. Dodds (https://kentcdodds.com)", "license": "MIT", "engines": { - "node": ">=14" + "node": ">=18" }, "browserslist": [ "and_chr 103", @@ -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",