Skip to content

Commit

Permalink
Add support for Node.js v22 (#1536)
Browse files Browse the repository at this point in the history
Add explicit support for using this plugin in Node.js v22.
  • Loading branch information
ericcornelissen authored May 1, 2024
1 parent f7ee45e commit b56efbc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ jobs:
- 18.0.0
- 19.0.0
- 20.0.0
- 22.0.0
steps:
- name: Harden runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
Expand Down Expand Up @@ -310,7 +311,7 @@ jobs:
run: npm run coverage:compat
- name: Upload coverage to Codecov
uses: codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed # v4.3.0
if: ${{ matrix.node-version == '20.0.0' }}
if: ${{ matrix.node-version == '22.0.0' }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Versioning].

## [Unreleased]

- Add support for Node.js v22. ([#1536])
- Add a `Shescape` stub with failing methods to the testing module. ([#1530])

## [2.1.0] - 2023-12-23
Expand Down Expand Up @@ -334,6 +335,7 @@ Versioning].
[#1285]: https://github.com/ericcornelissen/shescape/pull/1285
[#1308]: https://github.com/ericcornelissen/shescape/pull/1308
[#1530]: https://github.com/ericcornelissen/shescape/pull/1530
[#1536]: https://github.com/ericcornelissen/shescape/pull/1536
[552e8ea]: https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
[semantic versioning]: https://semver.org/spec/v2.0.0.html
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"typings": "index.d.ts",
"engines": {
"node": "^14.18.0 || ^16.13.0 || ^18 || ^19 || ^20"
"node": "^14.18.0 || ^16.13.0 || ^18 || ^19 || ^20 || ^22"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -126,7 +126,7 @@
"test": "npm run test:unit && npm run test:integration && npm run test:e2e && npm run test:compat && npm run test:breakage",
"test:breakage": "ava test/breakage/**/*.test.js",
"test:compat": "node test/compat/runner.js",
"test:compat-all": "nve 14.18.0,16.13.0,18.0.0,19.0.0,20.0.0 npm run test:compat",
"test:compat-all": "nve 14.18.0,16.13.0,18.0.0,19.0.0,20.0.0,22.0.0 npm run test:compat",
"test:e2e": "ava test/e2e/**/*.test.js --timeout 1m",
"test:integration": "npm run transpile && ava test/integration/**/*.test.js --timeout 2m",
"test:unit": "ava test/unit/**/*.test.js",
Expand Down

0 comments on commit b56efbc

Please sign in to comment.