Repository navigation
chore(deps-dev): bump @types/node from 22.20.5 to 26.6.6 - #63
dependabot[bot] wants to merge 1 commit into
Conversation
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>
|
🤖 Finished Review · ✅ Success · Started 10:03 AM UTC · Completed 10:11 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.68 |
|
<!-- fullsend:risk-assessment --> DetailsRoutine 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. |
ReviewFindingsMedium / Low / Info
Next steps:
|
| "@testing-library/user-event": "^14.6.8", | ||
| "@types/jest": "^27.4.1", | ||
| "@types/node": "^22.20.5", | ||
| "@types/node": "^26.6.6", |
There was a problem hiding this comment.
[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.
There was a problem hiding this comment.
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.
| "@testing-library/user-event": "^14.6.8", | ||
| "@types/jest": "^27.4.1", | ||
| "@types/node": "^22.20.5", | ||
| "@types/node": "^26.6.6", |
There was a problem hiding this comment.
[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.
There was a problem hiding this comment.
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.
* 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>
|
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 If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
|
🤖 Finished Retro · ✅ Success · Started 12:12 PM UTC · Completed 12:25 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.37 |
Retro: PR #63 (Dependabot
|
Closed as superseded by PR #67, merged in
38faaa8. That change pins@types/nodeto 22.9.3, the latest 22.x version supporting TypeScript 4.9, and tells Dependabot to ignore every later@types/nodeversion. It addresses both review findings on this proposed 26.x bump.The original PR head reproduced TypeScript 4.9 parse errors in
@types/node26.6.6. After PR #67 and the styled-components migration in PR #65 reached main, I verifiednpm ci,tsc --noEmit, andnpm run buildon main; all passed. The Dependabot rule rejects 22.9.4 and 26.6.6 while allowing the pinned 22.9.3.