Skip to content

Commit edebfa2

Browse files
Upgrade Node.js requirement from v20 to v22
Node.js v20 (Iron) will reach end-of-life on April 30, 2026. So we do the follow works: - Update all GitHub Actions workflows to use node-version: 22 - Add engines field to package.json requiring Node >=22 - Update AGENTS.md to document Node 22+ requirement - Add .nvmrc with version 22 for nvm/fnm users Ref: https://github.com/nodejs/Release Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
1 parent 817c8de commit edebfa2

File tree

8 files changed

+12
-5
lines changed

8 files changed

+12
-5
lines changed

.github/workflows/pr-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v6
3333
- uses: actions/setup-node@v6
3434
with:
35-
node-version: 20
35+
node-version: 22
3636
- run: npm ci
3737
- run: npm test
3838
- run: npm run lint

.github/workflows/pre-release-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v6
2424
- uses: actions/setup-node@v6
2525
with:
26-
node-version: 20
26+
node-version: 22
2727
cache: 'npm'
2828
cache-dependency-path: '**/package-lock.json'
2929
- name: Detect Node version

.github/workflows/tagged-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
- uses: actions/setup-node@v6
4949
with:
50-
node-version: 20
50+
node-version: 22
5151
- run: npm ci
5252

5353
- uses: actions/setup-python@v6

.github/workflows/verify-configs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
- uses: actions/checkout@v6
1313
- uses: actions/setup-node@v6
1414
with:
15-
node-version: 20
15+
node-version: 22
1616
- run: npm ci
1717
- run: npm run verify

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ The extension supports multiple AI providers:
226226

227227
### Build Issues
228228

229-
- Build failures: Check Node.js version (requires Node 20+), clear caches and rebuild.
229+
- Build failures: Check Node.js version (requires Node 22+), clear caches and rebuild.
230230
- macOS/Linux: `rm -rf node_modules && npm ci && rm -rf node_modules/.cache build/ dist/`
231231
- Windows (PowerShell): `Remove-Item -Recurse -Force node_modules, build, dist; if (Test-Path node_modules\.cache) { Remove-Item -Recurse -Force node_modules\.cache }; npm ci`
232232
- "Module not found" errors: Usually indicate missing `npm ci`

package-lock.json

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"name": "chatgptbox",
3+
"engines": {
4+
"node": ">=22"
5+
},
36
"scripts": {
47
"build": "node build.mjs --production",
58
"build:safari": "bash ./safari/build.sh",

0 commit comments

Comments
 (0)