Skip to content

chore(deps-dev): bump @types/node from 22.15.31 to 25.5.2#649

Open
dependabot[bot] wants to merge 5 commits intomainfrom
dependabot/npm_and_yarn/types/node-25.5.2
Open

chore(deps-dev): bump @types/node from 22.15.31 to 25.5.2#649
dependabot[bot] wants to merge 5 commits intomainfrom
dependabot/npm_and_yarn/types/node-25.5.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 16, 2026

Bumps @types/node from 22.15.31 to 25.5.2.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.15.31 to 25.5.2.
- [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: 25.5.2
  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 Apr 16, 2026
@nirinchev
Copy link
Copy Markdown
Collaborator

@copilot resolve the upgrade issue

…for @types/node v25 compatibility

Agent-Logs-Url: https://github.com/mongodb-js/devtools-shared/sessions/22b8fb15-2b45-4f11-a3f0-2d5cdf963473

Co-authored-by: nirinchev <2315687+nirinchev@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

@copilot resolve the upgrade issue

Fixed in f33820a. The upgrade to @types/node v25 removed the KeyPairKeyObjectResult interface from the crypto module. Replaced the import and type annotation in oidc-mock-provider/src/index.ts with an equivalent inline type { publicKey: crypto.KeyObject; privateKey: crypto.KeyObject }.

Copilot AI requested a review from nirinchev April 16, 2026 12:16
@nirinchev
Copy link
Copy Markdown
Collaborator

@copilot this is still failing build

…pes/node v25 compatibility

Agent-Logs-Url: https://github.com/mongodb-js/devtools-shared/sessions/2ea462cf-abbd-4a3c-a49c-0a29c28ee9c1

Co-authored-by: nirinchev <2315687+nirinchev@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

@copilot this is still failing build

Fixed in b9c8f44. The remaining failure was in mongodb-runner/src/tls-helpers.ts@types/node v25 extended webcrypto.KeyUsage with new post-quantum crypto operations ("decapsulateBits", "encapsulateBits", etc.), making webcrypto.CryptoKeyPair incompatible with the global CryptoKeyPair expected by @peculiar/x509. Added a as CryptoKeyPair cast on the generateKey call result to resolve the type mismatch.

@nirinchev
Copy link
Copy Markdown
Collaborator

@copilot build succeeds now, but there's one failing test

…de v25 new files

Agent-Logs-Url: https://github.com/mongodb-js/devtools-shared/sessions/545d8647-a313-49df-a04a-05dde5909def

Co-authored-by: nirinchev <2315687+nirinchev@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

@copilot build succeeds now, but there's one failing test

Fixed in d81a93a. The @mongodb-js/mongodb-ts-autocomplete test asserts that all @types/node files needed by the TypeScript language service are pre-bundled in autocomplete-types.ts (so no fallback disk reads via getScriptSnapshot are needed). @types/node v25 introduced new files that weren't in the deps list in extract-types.ts. Updated the list to add the new files (inspector.generated.d.ts, quic.d.ts, inspector/promises.d.ts, path/posix.d.ts, path/win32.d.ts, test/reporters.d.ts, util/types.d.ts, all 13 web-globals/*.d.ts files) and two new TypeScript lib files (lib.esnext.disposable.d.ts, lib.esnext.float16.d.ts), and removed dom-events.d.ts which was dropped in v25.

@nirinchev
Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts in this pull request

…rn/types/node-25.5.2

# Conflicts:
#	package-lock.json

Co-authored-by: nirinchev <2315687+nirinchev@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 16, 2026

@copilot resolve the merge conflicts in this pull request

Resolved in 74dffe1. Merged origin/main into the branch and resolved 10 conflicts in package-lock.json — all caused by non-overlapping insertions between both sides (@types/node v25 entries from our branch, and new packages from main like ajv, ansi-regex, string-width, etc.).

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Apr 22, 2026

A newer version of @​types/node exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@nirinchev
Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts

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 javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants