From 4af8be6ab54f36108ea3e6f0108a59a3750b9ea0 Mon Sep 17 00:00:00 2001 From: davidjgoss Date: Wed, 28 Aug 2024 17:06:03 +0100 Subject: [PATCH] Remove support for Node.js 21 (#2423) --- .github/workflows/build.yaml | 6 +++--- .github/workflows/site.yaml | 2 +- CHANGELOG.md | 1 + package-lock.json | 2 +- package.json | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c4e6ea11e..004595785 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,7 +20,7 @@ jobs: - ubuntu-latest - windows-latest # these versions must be kept in sync with enginesTested.node in package.json - node-version: [18.x, 20.x, 21.x, 22.x] + node-version: [18.x, 20.x, 22.6] fail-fast: false steps: @@ -37,7 +37,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 22.x + node-version: 22.6 - run: npm install - run: npm run test-coverage - uses: coverallsapp/github-action@master @@ -54,5 +54,5 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 22.x + node-version: 22.6 - run: npm audit --groups dependencies --audit-level high diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml index adde793c6..15a6aaa59 100644 --- a/.github/workflows/site.yaml +++ b/.github/workflows/site.yaml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 22.x + node-version: 22.6 - run: npm install - run: npm run exports-generate-docs - run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 530e39d0e..c863f4a80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Please see [CONTRIBUTING.md](./CONTRIBUTING.md) on how to contribute to Cucumber - BREAKING CHANGE: Remove previously-deprecated `parseGherkinMessageStream` ([#2420](https://github.com/cucumber/cucumber-js/pull/2420)) - BREAKING CHANGE: Remove previously-deprecated `PickleFilter` ([#2420](https://github.com/cucumber/cucumber-js/pull/2420)) - BREAKING CHANGE: Remove previously-deprecated `Runtime` ([#2420](https://github.com/cucumber/cucumber-js/pull/2420)) +- BREAKING CHANGE: Remove support for Node.js 21 ([#2423](https://github.com/cucumber/cucumber-js/pull/2423)) ## [10.9.0] - 2024-08-13 ### Added diff --git a/package-lock.json b/package-lock.json index a1cb6bfd8..55a37172e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -114,7 +114,7 @@ "typescript": "4.9.4" }, "engines": { - "node": "18 || >=20" + "node": "18 || 20 || >=22" }, "funding": { "url": "https://opencollective.com/cucumber" diff --git a/package.json b/package.json index 9f2d1d1cf..2e7b1a203 100644 --- a/package.json +++ b/package.json @@ -207,10 +207,10 @@ }, "types": "./lib/index.d.ts", "engines": { - "node": "18 || >=20" + "node": "18 || 20 || >=22" }, "enginesTested": { - "node": "18 || 20 || 21 || 22" + "node": "18 || 20 || 22" }, "dependencies": { "@cucumber/ci-environment": "10.0.1",