Skip to content

Commit 0ea244c

Browse files
committed
Raise Node baseline to 22
1 parent 044e858 commit 0ea244c

6 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Node.js
2525
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2626
with:
27-
node-version: 20
27+
node-version: 22
2828
cache: npm
2929

3030
- name: Install dependencies
@@ -44,7 +44,7 @@ jobs:
4444
- name: Set up Node.js
4545
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
4646
with:
47-
node-version: 20
47+
node-version: 22
4848
cache: npm
4949

5050
- name: Install dependencies

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Set up Node.js
4040
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
4141
with:
42-
node-version: 20
42+
node-version: 22
4343
cache: npm
4444

4545
- name: Install dependencies

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1313

1414
### Changed
1515

16+
- Minimum supported Node.js is now 22.x, CI and CodeQL validation now run on
17+
Node 22, and development type definitions now track the Node 22 line.
1618
- GitHub Actions workflows now pin third-party and GitHub-hosted actions by
1719
commit hash, and write-scoped workflow token permissions are limited to the
1820
jobs that need them.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ supply-chain signals over time.
3030

3131
## Install
3232

33+
This package requires Node.js 22 or newer.
34+
3335
Install the package from npm:
3436

3537
```bash

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"./openapi.json": "./openapi.json"
2626
},
2727
"engines": {
28-
"node": ">=20"
28+
"node": ">=22"
2929
},
3030
"scripts": {
3131
"build": "tsc -p tsconfig.json",
@@ -72,7 +72,7 @@
7272
},
7373
"devDependencies": {
7474
"@eslint/js": "^10.0.1",
75-
"@types/node": "^20.19.37",
75+
"@types/node": "^22.19.17",
7676
"@vitest/coverage-v8": "^4.1.2",
7777
"eslint": "^10.1.0",
7878
"eslint-config-prettier": "^10.1.8",

0 commit comments

Comments
 (0)