Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
26
26.12.1
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
2 changes: 1 addition & 1 deletion SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Existing databases that previously applied `0002_seed.sql` need no rollback, res

## Local development

Use Node.js 22.17 or newer and pnpm 12 or newer. For local development, install dependencies and use the placeholder resource configuration; no cloud resources need to be provisioned:
Use Node.js 26.12.1 or newer on the 26.x line and pnpm 12 or newer. For local development, install dependencies and use the placeholder resource configuration; no cloud resources need to be provisioned:

```sh
pnpm db:migrate:local
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"packageManager": "pnpm@12.4.1",
"engines": {
"node": ">=22.17.0",
"node": "^26.12.1",
"pnpm": ">=12.0.0"
},
"imports": {
Expand All @@ -30,7 +30,8 @@
"db:seed:local": "wrangler d1 execute DB --local --file=seeds/starter.sql",
"db:seed:remote": "wrangler d1 execute DB --remote --file=seeds/starter.sql",
"plugin:package": "node scripts/package-plugin.mjs",
"publish:static": "node scripts/publish-static.mjs"
"publish:static": "node scripts/publish-static.mjs",
"preinstall": "node scripts/check-node.mjs"
},
"dependencies": {
"@cloudflare/workers-oauth-provider": "1.2.3",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ overrides:
postcss@<=8.5.22: ^8.5.23
sharp@<0.35.0: ^0.35.0
undici@>=7.0.0 <7.29.0: ^8.0.0

# CVE-2026-111497: require patched Node runtimes.
engineStrict: true
11 changes: 11 additions & 0 deletions scripts/check-node.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// CVE-2026-111497 is fixed in these Node.js security releases.
const [major, minor, patch] = process.versions.node.split(".").map(Number);
const minimum = new Map([[26, [12, 1]]]).get(major);
if (
!Number.isInteger(patch) ||
!minimum ||
minor < minimum[0] ||
(minor === minimum[0] && patch < minimum[1])
) {
throw new Error("CVE-2026-111497: use Node.js 26.12.1+ on the 26.x line.");
}
Loading