Skip to content

chore(deps-dev): bump @types/node from 22.20.5 to 26.6.6 - #63

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/types/node-26.6.6
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/types/node-26.6.6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Closed as superseded by PR #67, merged in 38faaa8. That change pins @types/node to 22.9.3, the latest 22.x version supporting TypeScript 4.9, and tells Dependabot to ignore every later @types/node version. It addresses both review findings on this proposed 26.x bump.

The original PR head reproduced TypeScript 4.9 parse errors in @types/node 26.6.6. After PR #67 and the styled-components migration in PR #65 reached main, I verified npm ci, tsc --noEmit, and npm run build on main; all passed. The Dependabot rule rejects 22.9.4 and 26.6.6 while allowing the pinned 22.9.3.

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.20.5 to 26.6.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.6
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 10, 2026
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 10:03 AM UTC · Completed 10:11 AM UTC

Commit: 06aca68 · View workflow run →

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

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

Copy link
Copy Markdown

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

Details

Routine Dependabot dev-dependency bump (@types/node, major version) with tiny blast radius and bot authorship; Tier 1 composite ~1.5 is elevated only by two dependency files changed, while Tier 2 composite ~2.4 reflects high historical churn and fix-commit frequency on package files (expected from active dependency management), yielding a weighted composite of ~1.85 rounded to 2.

@fullsend-ai-review

Copy link
Copy Markdown

Review

Findings

Medium / Low / Info

  • [api-contract] (medium) package.json:74 — Semver-major bump of @types/node (22 → 26) while the repo is deliberately pinned to typescript ^4.9.5 (.github/dependabot.yml ignores typescript >=5 because react-scripts 5.0.1's peer range is ^3.2.1 || ^4). DefinitelyTyped only supports TypeScript versions from roughly the last two years, so @types/node 26's typesVersions mapping is likely to resolve TS 4.9 to declarations authored for TS 5.x. skipLibCheck: true masks semantic errors in .d.ts files but not parse errors, so tsc --noEmit and fork-ts-checker (npm start / npm run build) may fail. Commit b1a33f8 (fix(#60): restore TypeScript 4.9 and ignore TS majors in dependabot #61) validated TS 4.9.5 only against @types/node 22.20.5. Not verified at runtime: the npm registry was unreachable from the review sandbox, so the package's typeScriptVersion/typesVersions could not be inspected and tsc could not be run.
    Remediation: Run npm ci && npx tsc --noEmit and npm run build against this lockfile before merging. If the TS 4.9 build breaks (or to stay aligned with the supported runtime), keep @types/node on 22.x and add a Dependabot ignore rule for @types/node majors above the Node runtime floor, mirroring the existing typescript rule.

  • [api-contract] (low) package.json:74 — Node type definitions now describe Node 26 while the declared and actual runtimes are older: engines.node is >=22.22.1 (package.json lines 5-7), .nvmrc is 24, and the Dockerfile uses node:24-alpine. The type checker will accept Node 25/26-only APIs that do not exist on supported runtimes. The prior bump (chore(deps-dev): bump @types/node from 16.11.25 to 22.20.5 #55, 16 → 22) aligned @types/node with the engines floor. Practical impact is small (CRA frontend with limited Node API usage in src/).
    Remediation: Keep @types/node on the major matching the lowest supported runtime (22.x, or 24.x if engines.node is raised to match .nvmrc/Docker) and add a Dependabot ignore rule for higher @types/node majors.


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 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 package.json
"@testing-library/user-event": "^14.6.8",
"@types/jest": "^27.4.1",
"@types/node": "^22.20.5",
"@types/node": "^26.6.6",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[medium] api-contract

Semver-major bump of @types/node (22 -> 26) while the repo is pinned to typescript ^4.9.5 (package.json line 12; lockfile resolves 4.9.5). The pin is deliberate: .github/dependabot.yml ignores typescript >=5 because react-scripts 5.0.1's peer range is '^3.2.1 || ^4'. DefinitelyTyped only supports TypeScript versions released within roughly the last two years, so @types/node 26's typesVersions mapping is likely to resolve TS 4.9 to declarations authored for TS 5.x. tsconfig.json's skipLibCheck: true masks semantic errors inside .d.ts files but not parse errors from TS-5.x-only syntax, so tsc --noEmit and fork-ts-checker (used by npm start/npm run build) may fail. Commit b1a33f8 (#61) validated TS 4.9.5 only against @types/node 22.20.5. Unverified: the npm registry was unreachable from the review sandbox, so @types/node@26.6.6's typeScriptVersion/typesVersions could not be inspected and tsc could not be run.

Suggested fix: Run npm ci && npx tsc --noEmit and npm run build against this lockfile before merging. If the TS 4.9 build breaks (or to stay aligned with the supported runtime), keep @types/node on the 22.x line and add a Dependabot ignore rule for @types/node majors above the Node runtime floor in .github/dependabot.yml, mirroring the existing typescript rule.

@shairevivo shairevivo Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Resolved by merged PR #67 (38faaa8); this Dependabot bump was closed as superseded. I reproduced TS 4.9 parse errors in @types/node 26.6.6. PR #67 pins @types/node to 22.9.3, the latest 22.x version compatible with TS 4.9, and ignores all later versions. On current main, npm ci, tsc --noEmit, and npm run build pass.

Comment thread package.json
"@testing-library/user-event": "^14.6.8",
"@types/jest": "^27.4.1",
"@types/node": "^22.20.5",
"@types/node": "^26.6.6",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[low] api-contract

Node type definitions now describe Node 26 while the declared and actual runtimes are older: engines.node is '>=22.22.1' (package.json lines 5-7), .nvmrc is 24, and the Dockerfile uses node:24-alpine. The type checker will accept Node 25/26-only APIs that do not exist on supported runtimes. The prior bump (#55, 16 -> 22) aligned @types/node with the engines floor. Practical impact is small: this is a CRA frontend whose Node-typed usage in src/ is limited (process.env, require).

Suggested fix: Keep @types/node on the major matching the lowest supported runtime (22.x, or 24.x if engines.node is raised to match .nvmrc/Docker) and add a Dependabot ignore rule for @types/node majors above it.

@shairevivo shairevivo Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Resolved by merged PR #67 (38faaa8); this Dependabot bump was closed as superseded. Main pins @types/node to 22.9.3 on the supported Node 22 major. Its Dependabot rule ignores every later version, including 22.9.4 and 26.6.6, because later 22.x types also exceed the project TypeScript 4.9 support. I verified the rule and the current main build.

shairevivo pushed a commit that referenced this pull request Nov 10, 2026
* fix(#66): pin @types/node to 22.9.3 and ignore majors above 22

@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>

* fix(#66): ignore all @types/node versions above the 22.9.3 pin

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>

---------

Co-authored-by: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@dependabot @github

dependabot Bot commented on behalf of github Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@shairevivo shairevivo changed the title chore(deps-dev): bump @types/node from 22.20.5 to 26.6.6 fix(deps-dev): prevent unsupported Node type majors Nov 10, 2026
@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:25 PM UTC

Commit: 06aca68 · View workflow run →

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

@shairevivo shairevivo changed the title fix(deps-dev): prevent unsupported Node type majors chore(deps-dev): bump @types/node from 22.20.5 to 26.6.6 Nov 10, 2026
@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #63 (Dependabot @types/node 22.20.5 → 26.6.6)

Outcome: The PR was correctly not merged. The review agent ($2.68) requested changes. Its medium finding was that @types/node 26 is incompatible with the pinned TypeScript 4.9.5, and the owner later reproduced the parse errors. An earlier retro (triggered by PR #55) filed #66. The code agent fixed it in PR #67, which pins 22.9.3 (the ts4.9 dist-tag) and adds a Dependabot ignore rule >22.9.3. That took 1 review→fix round and cost about $9.3 including triage. The owner acked the protected-path change, merged #67 and closed #63. The review quality was good. No human-caught issue was missed by the agent.

What could have gone better

Proposal filed (1): a repo-level TypeScript-4.9 dependency policy plus a typecheck script with lib checking on, so agents and humans have one command that catches this class of break.

Skipped as already covered (evidence for existing issues):

Notes: Agents repo: fullsend-ai/agents@v0.54.0 (ref 87a43fcb). The close, body/title edits and inline replies on #63 were made under the owner's account within about 21s. This retro treats them as human actions.

Proposals filed

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 fullsend-fix javascript Pull requests that update javascript code risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant