Skip to content

Commit 56ecdde

Browse files
mschmickingclaude
andcommitted
ci(deps): pin @types/node to the oldest supported runtime
Dependabot proposed @types/node 22 -> 26 and CI went green, which is misleading. engines declares >=22, so types describing Node 26 let tsc accept APIs that do not exist on Node 22 — code that compiles cleanly here and throws on a user's machine. The test matrix only catches that when a test happens to exercise the specific call. @types/node should track the floor in engines, so its majors are ignored and move deliberately when that floor moves. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent ba942b4 commit 56ecdde

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ updates:
4949
update-types: ['version-update:semver-major']
5050
- dependency-name: '@eslint/js'
5151
update-types: ['version-update:semver-major']
52+
# @types/node must track the OLDEST supported runtime, not the newest.
53+
# engines is ">=22", so types from Node 26 would let tsc accept APIs that do
54+
# not exist on Node 22 — code that typechecks here and throws on a user's
55+
# machine. CI only catches that if a test happens to exercise the call.
56+
# Raise this deliberately, together with the engines floor.
57+
- dependency-name: '@types/node'
58+
update-types: ['version-update:semver-major']
5259

5360
- package-ecosystem: github-actions
5461
directory: /

0 commit comments

Comments
 (0)