Skip to content

fix(#66): pin @types/node to 22.9.3 and ignore majors above 22 - #67

Merged
shairevivo merged 2 commits into
mainfrom
agent/66-align-types-node
Nov 10, 2026
Merged

shairevivo merged 2 commits into
mainfrom
agent/66-align-types-node

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Changes in this repository:

  • package.json / package-lock.json: pin @types/node to exactly 22.9.3 (was ^22.20.5). undici-types moves from 6.21.0 to 6.19.8 as a transitive dependency.
  • .github/dependabot.yml: add an npm ignore rule for @types/node >=23, next to the existing typescript >=5 rule. A comment ties the bound to engines.node.

Why

I checked the npm registry, which triage could not reach:

version typeScriptVersion
22.20.5 (current) 5.6
22.9.3 (ts4.9 dist-tag) 4.9
22.9.4 5.0

22.9.3 is the newest 22.x release that supports TypeScript 4.9.5, so it is pinned exactly. package.json cannot hold comments, so the reason for the pin is in the dependabot.yml comment.

The mismatch is real, but the project's skipLibCheck: true currently hides it. With --skipLibCheck false, 22.20.5 produces two TS2502 errors in node_modules/@types/node/web-globals/streams.d.ts. 22.9.3 produces none.

The ignore rule stops Dependabot from proposing @types/node majors above the Node floor (engines.node >=22.22.1), such as #63 (22.20.5 → 26.6.6).

Testing

To isolate the styled-components 6 breakage tracked in #62, I installed styled-components@5.3.3 temporarily with --no-save:

  • npm ls @types/node typescript resolves to @types/node@22.9.3 and typescript@4.9.5.
  • npx tsc --noEmit reports no errors.
  • npx tsc --noEmit --skipLibCheck false reports 0 diagnostics from node_modules/@types/node.
  • CI=true npm test: 19/19 suites and 39/39 tests pass.

On the committed tree, which has styled-components 6:

Parsing dependabot.yml shows the existing react-scripts and typescript rules are unchanged, and the new @types/node rule is present.

Notes for reviewers

  • 22.x minor bumps will undo the pin. The >=23 rule matches the issue's spec, so 22.x minor and patch updates still come through the dev-minor-patch group. Every 22.x release after 22.9.3 declares TS ≥5.0, so Dependabot will propose moving the pin to an unsupported version. To prevent that while the repo stays on TS 4.x, the rule could be widened to versions: [">22.9.3"]. I left that out because the issue explicitly asked for 22.x minors and patches to keep arriving.
  • I can't close chore(deps-dev): bump @types/node from 22.20.5 to 26.6.6 #63 (item (c)): the code agent cannot change PR state. Once this merges, Dependabot should close chore(deps-dev): bump @types/node from 22.20.5 to 26.6.6 #63 on its own; otherwise close it manually as superseded.

🤖 Generated with Claude Code


Closes #66

Post-script verification

  • Branch is not main/master (agent/66-align-types-node)
  • Secret scan passed (gitleaks — b1a33f8d72f19c87c00e462908e51d638fb8b772..HEAD)
  • PR body secret scan passed (gitleaks — no-git)
  • Final PR description secret scan passed (gitleaks — no-git)

@types/node 22.20.5 declares typeScriptVersion 5.6, but the repo is on
TypeScript 4.9.5. The newest 22.x release that supports TS 4.9 is
22.9.3 (the "ts4.9" dist-tag); 22.9.4 and later declare 5.0. Pin
@types/node exactly to 22.9.3 and regenerate package-lock.json.

With 22.20.5, tsc --skipLibCheck false reports TS2502 errors in
node_modules/@types/node/web-globals/streams.d.ts that the project's
skipLibCheck hides. With 22.9.3 there are none.

Add a dependabot ignore rule for @types/node >=23 next to the
typescript rule, so the typings major tracks engines.node (>=22.22.1)
instead of the latest Node release (e.g. #63, 22.20.5 -> 26.6.6).

Verified with styled-components held at 5.3.3 (--no-save) to isolate
the styled-components 6 breakage tracked in #62: tsc --noEmit is
clean and all 19 test suites pass. On the committed tree, tsc and
10 test suites still fail only on styled-components 6, as on main.

Closes #66

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fullsend-ai-coder fullsend-ai-coder Bot added the ready-for-review Triggers review agent dispatch label Nov 10, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:28 AM UTC · Completed 10:38 AM UTC

Commit: 4b78e18 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.99

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 10, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored, tiny diff (3 files, 27 lines) pinning @types/node and updating a Dependabot ignore rule; two dependency files and one protected path keep Tier 1 elevated, while high package-lock.json and package.json churn (avg 15 commits/30d) and fix commit frequency (avg 6/90d) add moderate Tier 2 signal, offset by clear issue alignment, easy rollback, and signals unchanged from prior review — anchored at 2.

Previous run

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored, tiny diff (3 files, 25 lines) adding a Dependabot ignore rule and pinning @types/node; two dependency files and one protected path elevate Tier 1, while high package-lock.json churn and fix commits add moderate Tier 2 signal, offset by clear issue alignment and easy rollback.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

Earlier findings

  • .github/dependabot.yml:41 — logic-error — resolved by change. The @types/node ignore rule changed from versions: [">=23"] to versions: [">22.9.3"] (line 43), so it now covers every release above the exact 22.9.3 pin in package.json (line 74). Dependabot can no longer propose 22.x minor/patch bumps that declare typeScriptVersion >=5.0 and would undo the pin.
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6Ii5naXRodWIvZGVwZW5kYWJvdC55bWwiLCJpZCI6ImZfMDM1NmIwMWZlMjE3MWRhYiIsImxpbmUiOjQxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XX0= -->

Review

Findings

Medium / Low / Info


Labels: PR updates npm dependency files (package.json, package-lock.json) and Dependabot config.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the dependencies Pull requests that update a dependency file label Nov 10, 2026
@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 10:39 AM UTC · Completed 10:44 AM UTC

Commit: 4b78e18 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $0.54

Address review feedback on PR #67: the ">=23" ignore rule still let
22.x minor/patch bumps through the dev-minor-patch group, and every
22.x release after 22.9.3 declares typeScriptVersion >=5.0, so
Dependabot would undo the pin. Widen the rule to ">22.9.3" while the
repo stays on TypeScript 4.x, and document relaxing it back to ">=23"
(tracking engines.node) when the typescript rule is removed.

This deliberately drops #66's "22.x minor/patch updates still arrive"
criterion, which cannot hold alongside TypeScript 4.9 compatibility.

Verification: the npm registry reports typeScriptVersion 4.9 for
22.9.3 and 5.0 for 22.9.4. npm run lint: 0 errors. CI=true npm test:
10 suites fail to resolve styled-components/macro (#62); identical
on the branch before this change.

Addresses #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (bot-triggered)

Fixed the logic-error finding: the Dependabot ignore rule for @types/node now covers every version above the 22.9.3 pin (">22.9.3") instead of only majors, so Dependabot will not move the pin to a release that needs TypeScript >=5.0. The comment now explains when to relax the rule to ">=23". The protected-path finding cannot be fixed by the agent and needs human approval. Lint has 0 errors. Tests fail in 10 of 19 suites because they cannot resolve the styled-components/macro module (#62). The same failures happen without this change, and this commit only touches YAML config.

Fixed (2):

  1. Merge conflict check (forge mergeability): GitHub reports the PR as MERGEABLE, not CONFLICTING. No merge or rebase was performed.
  2. [logic-error] .github/dependabot.yml:41: the >=23 ignore rule lets 22.x minor/patch bumps through the dev-minor-patch group, which would move the 22.9.3 pin to a release that needs TypeScript >=5.0. The comment also contradicted itself. (.github/dependabot.yml): Widened the @types/node ignore rule to ">22.9.3", so no version above the pin is proposed while the repo stays on TypeScript 4.x. Rewrote the comment to match the rule and to say it should be relaxed back to ">=23" (raised together with engines.node) once the typescript rule is removed. This is the reviewer's first remediation option. I checked the registry: 22.9.3 declares typeScriptVersion 4.9 and 22.9.4 declares 5.0, which confirms the boundary the reviewer could not verify. This deliberately drops Align @types/node with TypeScript 4.9.5 and engines.node, and ignore @types/node majors above the Node floor in dependabot.yml #66's criterion that 22.x minor/patch updates still arrive; the commit message notes this.

Disagreed (1):

  1. [protected-path] .github/dependabot.yml is a protected path and needs human approval: This is the mandatory merge-gate finding. It asks for human approval and prescribes no content change. The edit to .github/dependabot.yml is the purpose of this PR and was authorized by the logic-error finding, so it cannot be reverted. A human reviewer must approve the PR.

Tests: failed

CI inspections (3):

  1. security / Production dependency audit (passing, success): Passed on the PR head.
  2. security / Secret scan (gitleaks) (passing, success): Passed on the PR head.
  3. merge agent PRs on clean review / merge-on-clean-review (passing, skipped): Skipped because the review requested changes. Not a failure.

Conflict update: skipped; strategy none; forge MERGEABLE; target main

Decision points
  • How to stop Dependabot from undoing the 22.9.3 pin (alternatives: Replace the >=23 rule with a single >22.9.3 rule, Keep >=23 and add a second rule for >22.9.3 <23; rationale: >22.9.3 already covers >=23, so a single rule with a comment giving the exit condition (relax to >=23 when TypeScript leaves 4.x) is simpler. It also matches the reviewer's first suggestion.)

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:45 AM UTC · Completed 10:53 AM UTC

Commit: f49aa88 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.38

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 10, 2026 10:53

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot 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.

See the review comment for full details.

Comment thread .github/dependabot.yml Resolved
@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Nov 10, 2026
@shairevivo
shairevivo merged commit 38faaa8 into main Nov 10, 2026
37 checks passed
@shairevivo
shairevivo deleted the agent/66-align-types-node branch November 10, 2026 12:11
@fullsend-ai-retro

fullsend-ai-retro Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 12:12 PM UTC · Completed 12:43 PM UTC

Commit: f49aa88 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.79

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #67 (pin @types/node 22.9.3 for TypeScript 4.9)

Outcome: the merged change is correct. The exact pin is consistent across package.json and the lockfile. The Dependabot versions: [">22.9.3"] rule is valid npm-semver ignore syntax. Each agent behaved reasonably. No new proposals: every improvement found is already tracked, and the new evidence is listed below.

Timeline (2026-11-10 UTC):

Review quality: the logic-error finding was real, not a false positive. The protected-path finding was a correct policy gate. The review found no false positives, and I found no defect it missed. Minor misses: it didn't flag that the PR title, body and squash commit still say ">=23"/"majors above 22" after the fix, and it didn't note that .nvmrc/Dockerfile use Node 24 vs engines.node >=22.22.1. The Node mismatch is the safe direction, not a bug.

Rework root cause: the code agent's PR notes flagged exactly the gap review 1 found, and named the right fix (>22.9.3). It shipped >=23 anyway because #66's criteria said 22.x minors should keep arriving. #66 was written by the retro and triage agents without registry access, so its criteria conflicted once the registry facts were known. One avoidable review→fix→review cycle (~$7.9, ~26 min).

Evidence for existing issues (not re-filed):

Observed, not filed (low impact / likely by design): the review-findings-v2 marker leaves out the protected-path finding, so review 2's structured data shows action=comment with no open findings. This matches the non-dimensional-finding exclusion described in fullsend-ai/agents#1567.

Agents repo: fullsend-ai/agents@v0.54.0 (triage loaded from local config).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ready-for-review Triggers review agent dispatch requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align @types/node with TypeScript 4.9.5 and engines.node, and ignore @types/node majors above the Node floor in dependabot.yml

1 participant