Skip to content

deps: upgrade @types/node to 26 - #1062

Closed
Aymericr wants to merge 2 commits into
mainfrom
cursor/deps-types-node-26-6cd4
Closed

Aymericr wants to merge 2 commits into
mainfrom
cursor/deps-types-node-26-6cd4

Conversation

@Aymericr

Copy link
Copy Markdown
Contributor

What does this PR do?

Upgrades @types/node from ^22 to ^26.6.5 in both apps and in cli, mcp, nodes, ui and viewer. Major upgrade, so no auto-merge.

Breaking changes: @types/node (DefinitelyTyped) publishes no release notes; each major tracks the matching Node.js release line. Moving from 22 to 26 adds the Node 23–26 API types and drops type declarations for APIs that Node removed over those releases. Our code typechecks cleanly against 26.

Code changes: none.

Caveat: the types now describe Node 26, but the repo's declared runtime floor is Node 20.9 (root engines), the CLI's is 22.13, and CI runs Node 22. The compiler will no longer flag uses of APIs newer than the runtimes we support. Keep this in mind, or keep @types/node aligned with the lowest supported Node instead of merging.

How to test

  1. bun install && bun run ci

Screenshots / screen recording

N/A — non-visual change

Checklist

  • I've tested this locally with bun dev
  • My code follows the existing code style (run bun check to verify)
  • I've updated relevant documentation (if applicable)
  • This PR targets the main branch

Local results: check, skills:validate, check-types and build pass. Tests show only the local-only failures that main also has here. A core legacy-load test timed out once under parallel load and passed when re-run (packages/core: 4453 pass, 0 fail).

Open in Web Open in Cursor 

Aymericr added a commit that referenced this pull request Oct 14, 2026
…1071)

typescript 7, @types/node 26, nanoid 6 (Node 22+), motion 14,
eslint-plugin-react-hooks 7, eslint 10 with @eslint/js 10, globals 17,
pdfkit 0.20 and react-grab 0.2, with one regenerated lockfile.

The root typescript is aliased to @typescript/typescript6 so hoisted
typescript-eslint keeps the 6.0 API it requires; every workspace
compiles with its own typescript 7.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@Aymericr

Copy link
Copy Markdown
Contributor Author

Landed in #1071 (dc65ba0), which combined the nine major upgrades with one lockfile. Closing as superseded. #1061 stays open.

@Aymericr Aymericr closed this Oct 15, 2026
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