Repository navigation
chore(deps): Bump @types/node to 20 - #25501
Merged
Merged
Conversation
s1gr1d
approved these changes
Oct 19, 2026
JPeer264
force-pushed
the
jp/types-node-20
branch
from
October 19, 2026 09:17
7d4bf53 to
7c2d8c7
Compare
The SDK supports Node 20.19 and newer, but most packages still used the types of Node 18. Use `^20.19.0` in the root and in every package that declared `^18.19.1`, so that the type checks know the Node 20 APIs. The lockfile gets no new versions, and `@types/node` 18 and its `undici-types` 5 leave it. The built type declarations do not change. - `@sentry/node` no longer declares `process.availableMemory()` itself, because the Node 20 types have it. The runtime check stays, because Bun and Deno also run this code. - `@sentry/nextjs` drops a type assertion that the Node 20 types of `process.getBuiltinModule()` make unnecessary. - The `no-deprecated` lint rule allows `channel.subscribe()` and `channel.unsubscribe()` of `diagnostics_channel`. The Node 20 types mark them as deprecated, but Node revoked this deprecation (DEP0163) in v22.20.0 and v24.8.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JPeer264
force-pushed
the
jp/types-node-20
branch
from
October 19, 2026 09:34
7c2d8c7 to
acd0d68
Compare
JPeer264
enabled auto-merge (squash)
October 19, 2026 09:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes
@types/nodefrom^18.19.1to^20.19.0in the root and in the 11 packages that used version 18. The SDK supports only Node 20.19 and newer, so the type checks now know the Node 20 APIs. The lockfile gets no new versions, and the built type declarations stay the same.@sentry/nodeno longer declaresprocess.availableMemory()itself, because the Node 20 types have it.@sentry/nextjsdrops a type assertion that is now unnecessary.Lint decisions
The Node 20 types mark
channel.subscribe()andchannel.unsubscribe()as deprecated, but Node revoked this deprecation (DEP0163) in v22.20.0 and v24.8.0..oxlintrc.base.jsonallows these two methods inno-deprecated. The alternative is a move todiagnostics_channel.subscribe(name, onMessage)in 34 places.