Skip to content

ci: keep @types/node majors pinned to the Node runtime - #14

Merged
losolio merged 1 commit into
mainfrom
ci/pin-types-node
Jul 20, 2026
Merged

ci: keep @types/node majors pinned to the Node runtime#14
losolio merged 1 commit into
mainfrom
ci/pin-types-node

Conversation

@losolio

@losolio losolio commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

@types/node majors track the Node release they describe, and both workflows pin Node to 24. Letting the types run ahead of the runtime means typechecking against APIs that are not actually there.

#12 is this exact case, opened by Dependabot within hours of #11 landing: @types/node 24 → 26.1.1, against a runtime that is still 24. This rule stops it recurring.

ignore:
  - dependency-name: "@types/node"
    update-types:
      - version-update:semver-major

Minor and patch updates still flow, so 24.12 → 24.13 arrives as before.

Why a rule rather than just closing the PR

npm majors already fall outside the batched group, so this would have surfaced as its own PR either way. The rule does two things beyond that: it stops the same PR reappearing every month, and it records why — the types follow the runtime, not the other way around.

Moving to a newer Node is then a deliberate two-step: change node-version in both workflows, and bump @types/node to match.

Note

Worth closing #12 once this lands. #13 (typescript 6 → 7) is a genuine major worth its own look — this rule does not touch it.

🤖 Generated with Claude Code

@types/node majors track the Node release they describe, and the workflows pin
Node to 24. Letting the types run ahead of the runtime would typecheck against
APIs that are not actually there.

npm majors already fall outside the batched group, so this would have surfaced
as its own PR either way. The ignore rule stops it recurring every month and
records why: the types follow the runtime, not the other way around. Moving to a
newer Node means changing node-version in both workflows and bumping this
deliberately.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 20, 2026 22:01
@losolio
losolio merged commit 288c6b0 into main Jul 20, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s Dependabot configuration to prevent @types/node major version upgrades from drifting ahead of the Node.js version pinned in CI/deploy workflows (Node 24), avoiding typechecking against APIs not available in the runtime.

Changes:

  • Add a Dependabot ignore rule to block major updates for @types/node in the npm ecosystem.
  • Document the rationale inline to make future Node + types upgrades an explicit, deliberate step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants