Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

chore: update Node.js version to 22 and upgrade undici dependency

diegosouzapw44e4ae2d94fc
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c548c577fa..54357e91cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -134,14 +134,11 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [20, 22]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
- node-version: ${{ matrix.node-version }}
+ node-version: 22
cache: npm
- run: npm ci
- run: npm run build
@@ -151,9 +148,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: build
- strategy:
- matrix:
- node-version: [20, 22]
env:
JWT_SECRET: ci-test-secret-with-sufficient-length-for-validation
API_KEY_SECRET: ci-test-api-key-secret-long
@@ -161,7 +155,7 @@ jobs:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
- node-version: ${{ matrix.node-version }}
+ node-version: 22
cache: npm
- run: npm ci
- run: npm run test:unit
diff --git a/package-lock.json b/package-lock.json
index b4a15c7080..a504791e48 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -42,7 +42,7 @@
"recharts": "^3.7.0",
"selfsigned": "^5.5.0",
"tsx": "^4.21.0",
- "undici": "^7.24.7",
+ "undici": "^8.1.0",
"uuid": "^13.0.0",
"wreq-js": "^2.0.1",
"xxhash-wasm": "^1.1.0",
@@ -13099,6 +13099,16 @@
"node": "20 || >=22"
}
},
+ "node_modules/jsdom/node_modules/undici": {
+ "version": "7.25.0",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.25.0.tgz",
+ "integrity": "sha512-xXnp4kTyor2Zq+J1FfPI6Eq3ew5h6Vl0F/8d9XU5zZQf1tX9s2Su1/3PiMmUANFULpmksxkClamIZcaUqryHsQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
"node_modules/jsesc": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
@@ -19725,12 +19735,12 @@
}
},
"node_modules/undici": {
- "version": "7.24.7",
- "resolved": "https://registry.npmjs.org/undici/-/undici-7.24.7.tgz",
- "integrity": "sha512-H/nlJ/h0ggGC+uRL3ovD+G0i4bqhvsDOpbDv7At5eFLlj2b41L8QliGbnl2H7SnDiYhENphh1tQFJZf+MyfLsQ==",
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-8.1.0.tgz",
+ "integrity": "sha512-E9MkTS4xXLnRPYqxH2e6Hr2/49e7WFDKczKcCaFH4VaZs2iNvHMqeIkyUAD9vM8kujy9TjVrRlQ5KkdEJxB2pw==",
"license": "MIT",
"engines": {
- "node": ">=20.18.1"
+ "node": ">=22.19.0"
}
},
"node_modules/undici-types": {
diff --git a/package.json b/package.json
index 23e4b83c3d..1b34436009 100644
--- a/package.json
+++ b/package.json
@@ -121,7 +121,7 @@
"recharts": "^3.7.0",
"selfsigned": "^5.5.0",
"tsx": "^4.21.0",
- "undici": "^7.24.7",
+ "undici": "^8.1.0",
"uuid": "^13.0.0",
"wreq-js": "^2.0.1",
"xxhash-wasm": "^1.1.0",