Skip to content

deps: pin node's major, and fix the reasoning in the Dockerfile comment - #104

Merged
thomas-lg merged 1 commit into
mainfrom
deps/pin-node-major
Aug 31, 2026
Merged

thomas-lg merged 1 commit into
mainfrom
deps/pin-node-major

Conversation

@thomas-lg

Copy link
Copy Markdown
Owner

Dependabot's first run under the new grouping (#102) immediately offered node 24-slim → 26-slim (#103). Useful test of the config — and a case worth encoding as a rule.

Why #103 was closed despite being green

CI passed, but that's misleading: npm's engines check is only a warning, and only the Dockerfile would have moved. ci.yml runs node-version: 24 and the devcontainer's node feature is 24. Merging it would ship a production image built on node 26 while everything that tests the code runs 24 — precisely the three-way drift #92 existed to remove.

Two further reasons:

  • It's outside the range the project declares: "node": "^20.19.0 || ^22.12.0 || ^24.0.0" — Angular's supported range.
  • Node 26 is still Current, not LTS. Even-numbered majors only enter LTS in the October of their release year.

What this changes

  • dependabot.yml — ignore node at semver-major in the docker ecosystem, matching the typescript rule. Both are pinned by Angular, so both should move deliberately with an Angular upgrade rather than weekly on their own. Digest and minor updates keep flowing.
  • Dockerfile — correct the comment. It said odd-numbered (non-LTS) majors are "deliberately skipped", but 26 is even, so that reasoning was incomplete and would have misled the next reader. The actual gate is the engines range plus LTS status.

Config verified end to end

#102 triggered a real Dependabot re-evaluation, which is what turned up #103. Observed from that run:

Merging this triggers one more re-evaluation, after which node majors should stop appearing too.

Dependabot's first run under the new grouping offered node 24-slim -> 26-slim.
CI passed -- npm's engines check is only a warning, and only the Dockerfile
moved -- but taking it would ship an image built on node 26 while ci.yml and the
devcontainer still test on 24, re-introducing exactly the drift #92 removed. It
is also outside the engines range the project declares, and node 26 is still
Current rather than LTS.

node's major is therefore pinned, matching the typescript rule: it moves
deliberately with an Angular upgrade, across all four references at once.
Digest and minor updates keep flowing.

The Dockerfile comment claimed odd-numbered majors were what gets skipped; 26 is
even, so that was wrong. The real gate is the engines range plus LTS status.
@thomas-lg
thomas-lg merged commit 81d7929 into main Aug 31, 2026
10 checks passed
@thomas-lg
thomas-lg deleted the deps/pin-node-major branch August 31, 2026 20:45
thomas-lg added a commit that referenced this pull request Sep 13, 2026
…nt (#104)

Dependabot's first run under the new grouping offered node 24-slim -> 26-slim.
CI passed -- npm's engines check is only a warning, and only the Dockerfile
moved -- but taking it would ship an image built on node 26 while ci.yml and the
devcontainer still test on 24, re-introducing exactly the drift #92 removed. It
is also outside the engines range the project declares, and node 26 is still
Current rather than LTS.

node's major is therefore pinned, matching the typescript rule: it moves
deliberately with an Angular upgrade, across all four references at once.
Digest and minor updates keep flowing.

The Dockerfile comment claimed odd-numbered majors were what gets skipped; 26 is
even, so that was wrong. The real gate is the engines range plus LTS status.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant