Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

chore(package): pin supported Node range + CI matrix (#432) (#445)

Tashfeen44cd355f9712
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7b54b86d..d7169210 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,14 +8,21 @@ on:
jobs:
test:
- name: Test & build
+ name: Test & build (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ # Both ends of the supported engines range (package.json: >=20.18 <25).
+ # 20 is the CI baseline that has historically caught crashes newer local
+ # Node versions hid; 22 is the current LTS most contributors run.
+ node-version: ['20', '22']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
- node-version: '20'
+ node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 00000000..2bd5a0a9
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+22
diff --git a/client/package.json b/client/package.json
index b1d038aa..6bf5272c 100644
--- a/client/package.json
+++ b/client/package.json
@@ -45,5 +45,9 @@
"typescript": "~6.0.2",
"typescript-eslint": "^8.58.0",
"vite": "^8.0.4"
+ },
+ "engines": {
+ "node": ">=20.18.0 <25.0.0",
+ "npm": ">=10.0.0"
}
}
diff --git a/package.json b/package.json
index 3657429e..50f6f05b 100644
--- a/package.json
+++ b/package.json
@@ -24,5 +24,9 @@
},
"devDependencies": {
"concurrently": "^9.1.2"
+ },
+ "engines": {
+ "node": ">=20.18.0 <25.0.0",
+ "npm": ">=10.0.0"
}
}
diff --git a/server/package.json b/server/package.json
index 59f65807..11344011 100644
--- a/server/package.json
+++ b/server/package.json
@@ -40,5 +40,9 @@
"tsx": "^4.19.4",
"typescript": "^5.8.3",
"vitest": "^3.1.3"
+ },
+ "engines": {
+ "node": ">=20.18.0 <25.0.0",
+ "npm": ">=10.0.0"
}
}