Match @types/node to the Node 24 runtime

Both images and CI run Node 24, but the frontend was typed against
@types/node 26, so TypeScript would accept Node 26-only APIs that fail at
runtime. Pin to ^24 (resolves 24.19.2) and stop Dependabot proposing major
@types/node bumps. Supersedes #670.

Typecheck (no non-test errors), lint (0 errors) and all 874 frontend
tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
BigBodyCobainandClaude Opus 5.5 committed 2026-11-04 19:24:29 -07:00
1 parent b8320a274d
commit 801921d7d6
3 files changed
+14 -9

No files matched your search

+5
View File
@@ -4,6 +4,11 @@ updates:
directory: "/frontend"
schedule:
interval: "weekly"
# @types/node tracks the Node runtime we ship (24.x in both images and CI);
# newer majors describe APIs that don't exist at runtime.
ignore:
- dependency-name: "@types/node"
update-types: ["version-update:semver-major"]
groups:
react-runtime:
applies-to: version-updates
+8 -8
View File
@@ -29,7 +29,7 @@
"@tailwindcss/postcss": "^4",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.2",
"@types/node": "^26",
"@types/node": "^24",
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitest/coverage-v8": "^4.1.8",
@@ -2465,13 +2465,13 @@
}
},
"node_modules/@types/node": {
"version": "26.5.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.5.1.tgz",
"integrity": "sha512-CzNm2FezW4VR/LjG6yUdiEgLE/rAQ9Slj5gCu/C2VrdcW7I0ahNZ8DRbHT7zOZ6r3ONgd/bsQIeSaoDGrd1C6g==",
"version": "24.19.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz",
"integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~8.9.0"
"undici-types": ">=7.24.0 <7.24.7"
}
},
"node_modules/@types/pbf": {
@@ -9159,9 +9159,9 @@
}
},
"node_modules/undici-types": {
"version": "8.9.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz",
"integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==",
"version": "7.24.6",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
"integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
"dev": true,
"license": "MIT"
},
+1 -1
View File
@@ -41,7 +41,7 @@
"@tailwindcss/postcss": "^4",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.2",
"@types/node": "^26",
"@types/node": "^24",
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitest/coverage-v8": "^4.1.8",