Skip to content

chore: keep @types/node on the supported Node major - #3

Merged
helgafinn merged 1 commit into
mainfrom
chore/pin-types-node-to-engines-floor
Sep 7, 2026
Merged

helgafinn merged 1 commit into
mainfrom
chore/pin-types-node-to-engines-floor

Conversation

@helgafinn

Copy link
Copy Markdown
Owner

engines.node is ">=24" in this package, but Dependabot proposed @types/node 26.4.0.

Types ahead of the runtime floor are a real hazard rather than a cosmetic mismatch: the compiler would accept calls to APIs that do not exist on Node 24, so the code type-checks clean in CI here and fails at runtime for anyone on the floor we advertise as supported. CI passing on the bump does not catch it, because CI does not run Node 24.

Keeps @types/node on the 24.x line by ignoring major updates. Minor and patch updates still flow normally. When the floor moves to a newer Node, drop the rule and take the matching types major together.

engines.node is ">=24" but Dependabot proposed @types/node 26.4.0. Types ahead
of the runtime floor let source compile against APIs that are absent at
runtime, so the failure surfaces for the user rather than in CI.

Ignore major updates for @types/node so it tracks the 24.x line.
@helgafinn
helgafinn merged commit 0570292 into main Sep 7, 2026
2 checks passed
@helgafinn
helgafinn deleted the chore/pin-types-node-to-engines-floor branch September 7, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant