Skip to content

build(deps): bump @types/node to ^26.0.0#3996

Merged
mergify[bot] merged 3 commits into
mainfrom
dependabot-types-node-26
Jun 27, 2026
Merged

build(deps): bump @types/node to ^26.0.0#3996
mergify[bot] merged 3 commits into
mainfrom
dependabot-types-node-26

Conversation

@Apollon77

Copy link
Copy Markdown
Collaborator

Bumps @types/node from ^25.9.x to ^26.0.0 across all packages that declare it (create, react-native, testing).

Supersedes #3953 (Dependabot) — that PR only touched the lockfile and broke type checking.

Typing fix

@types/node 26 dropped KeyObject from the createPublicKey overload (now BinaryLike only). NodeJsCryptoTest passed a private KeyObject directly; runtime still supports it but type check failed. Fixed type-clean by deriving the public key via PEM export of the private key — no cast.

Verification

  • Build + type check green
  • packages/nodejs esm tests 307/307 (incl. sec1/spki crypto test)
  • prettier + oxlint clean on changed files

🤖 Generated with Claude Code

Adapt NodeJsCryptoTest to @types/node 26 dropping KeyObject from the
createPublicKey overload by deriving the public key via PEM export.

Supersedes #3953.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 27, 2026 11:15
@Apollon77 Apollon77 added the automerge Set this label if the PR is ready to automatically merged after approval label Jun 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the repo’s Node.js TypeScript typings to @types/node@^26 and adjusts a Node.js crypto unit test to remain type-correct under the updated createPublicKey typings.

Changes:

  • Bump @types/node to ^26.0.0 in packages that declare it (create, react-native, testing).
  • Update NodeJsCryptoTest to derive the public key from a PEM export of the private key (avoids passing a KeyObject directly).
  • Refresh package-lock.json (includes updates beyond @types/node).

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/testing/package.json Bumps @types/node to ^26.0.0 for the testing package.
packages/react-native/package.json Bumps @types/node to ^26.0.0 for the React Native package.
packages/create/package.json Bumps @types/node to ^26.0.0 for the create package.
packages/nodejs/test/crypto/NodeJsCryptoTest.ts Adjusts crypto test to align with updated Node typings for createPublicKey.
package-lock.json Updates lockfile to reflect the dependency changes (and additional transitive upgrades).

Comment thread packages/testing/package.json
@mergify

mergify Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@mergify mergify Bot merged commit 0db1acb into main Jun 27, 2026
37 checks passed
@mergify mergify Bot deleted the dependabot-types-node-26 branch June 27, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Set this label if the PR is ready to automatically merged after approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants