@sentry/nextjs
11.12.0 · 10 Nov 2026MIT17.7M / weekRepositoryHomepagenpmAtom feed
In short
13 new14 fixed22 internal
Release note
Important Changes
browser: Report LCP and INP subparts on web vital spans
LCP spans now carry
browser.web_vital.lcp.resource_load_delay,browser.web_vital.lcp.resource_load_durationandbrowser.web_vital.lcp.element_render_delay. INP spans now carrybrowser.web_vital.inp.input_delay,browser.web_vital.inp.processing_durationandbrowser.web_vital.inp.presentation_delay. This shows which phase made an LCP or INP slow.core: Gate URL fragments behind
urlQueryParamsThe
urlQueryParamsoption now also applies to URL fragments, since OAuth redirects and hash routing can put tokens there.key=valuepairs in a fragment are filtered like query params, and the fragment is dropped whenurlQueryParamsis off. This coversurl.full,url.fragment,request.urland breadcrumbs. Plain anchors and hash route paths (#details,#/settings) are kept as-is.core: Enrich MCP SDK spans instead of duplicating them
When the MCP SDK (
@modelcontextprotocol/server) starts its own OpenTelemetry span for an MCP message and that span reaches Sentry, Sentry now adds its MCP attributes to that span instead of starting a second one. This span is a child of the surrounding span, such ashttp.server, not its own transaction. Without the MCP SDK's OpenTelemetry tracing, nothing changes.node: Add ClickHouse instrumentation
The new
clickhouseIntegrationcreates database spans for@clickhouse/clientand@clickhouse/client-web. It is exported from@sentry/node,@sentry/cloudflareand the other server SDKs.react-router, remix: Support
sourcemaps.upload,injectDebugIdsanddelete@sentry/react-routerand@sentry/remixnow accept thesourcemaps.upload,sourcemaps.injectDebugIdsandsourcemaps.deleteoptions. In React Router, source maps you turned on yourself are no longer deleted unless you setdelete: true, andrelease.create: falseis now respected.Related PRs
Other Changes
core: Add sentry.kind, url.path and url.scheme to fetch and XHR spans
core: Record integration options in
defineIntegrationcore: Report user-set integrations and their options in SDK config
deno: Align deno with node & run integration suites with @sentry/deno
nitro: Add
@sentry/nitro/importentryserver-utils: Add onSpanStart/onSpanEnd hooks to the LangChain and LangGraph integrations
server-utils: Skip Fastify hook spans on unsampled requests
solid: Support Solid 2 on Cloudflare Workers
astro: Only inject the server release in builds
bundler-plugins: Fall back to local git history when setting commits
bundler-plugins: Honor release.vcsRemote when associating commits
cloudflare: Do not load a second copy of @sentry/core in Workers
core: Create DSC locally when receiving an incoming trace without DSC
core: Exclude dist from SDK configuration reports
core: Exclude DSN from SDK configuration reports
core: Exclude release from SDK configuration reports
effect: Stop bundling all of Effect with the error reporter
react: Change resetError to a function type property
replay: Do not report dead clicks after a bfcache restore
server-utils: Keep pi-durable 1.6 runs from faulting
server-utils: Read Express mount paths from the router 2.3 layer
server-utils: Trace pi-durable tool calls made by other tools
Internal Changes
Work in this release was contributed by @adityareddy-dev, @wolfgang42, and @JonasBa. Thank you for your contributions!
Bundle size
| Path | Size |
|---|---|
| @sentry/browser | 29.83 KB |
| @sentry/browser - with treeshaking flags | 28.06 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.93 KB |
| @sentry/browser (incl. Tracing) | 52.41 KB |
| @sentry/browser (incl. Tracing Core) | 39.63 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 52.42 KB |
| @sentry/browser (incl. Tracing, Profiling) | 55.24 KB |
| @sentry/browser (incl. Tracing, Replay) | 91.35 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 80.48 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 95.64 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 108.83 KB |
| @sentry/browser (incl. Feedback) | 47.35 KB |
| @sentry/browser (incl. sendFeedback) | 30.38 KB |
| @sentry/browser (incl. FeedbackAsync) | 35.32 KB |
| @sentry/browser (incl. Metrics) | 31.11 KB |
| @sentry/browser (incl. Logs) | 31.38 KB |
| @sentry/browser (incl. Metrics & Logs) | 32.03 KB |
| @sentry/react | 31.8 KB |
| @sentry/react (incl. Tracing) | 55.06 KB |
| @sentry/vue | 37.84 KB |
| @sentry/vue (incl. Tracing) | 55.36 KB |
| @sentry/svelte | 29.85 KB |
| @sentry/effect (client) | 41.26 KB |
| @sentry/effect (client, incl. Tracing) | 48.25 KB |
| @sentry/effect (client, incl. Tracing, Logs, Metrics) | 57.91 KB |
| @sentry/remix (Remix 3 client bundle) | 58 KB |
| CDN Bundle | 31.78 KB |
| CDN Bundle (incl. Tracing) | 52.88 KB |
| CDN Bundle (incl. Logs, Metrics) | 34.45 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 55.31 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 74.38 KB |
| CDN Bundle (incl. Tracing, Replay) | 89.73 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 92.21 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 95.07 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 97.47 KB |
| CDN Bundle - uncompressed | 92.69 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 156.5 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 100.84 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 163.95 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 228.03 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 273.96 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 281.41 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 285.62 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 293.06 KB |
| @sentry/nextjs (client) | 58.68 KB |
| @sentry/sveltekit (client) | 53.74 KB |
| @sentry/core/server | 44.79 KB |
| @sentry/core/browser | 14.12 KB |
| @sentry/node | 152.6 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.49 KB |
| @sentry/node - without tracing | 87.14 KB |
| @sentry/node - without channel injection | 141.8 KB |
| @sentry/aws-serverless | 97.52 KB |
| @sentry/cloudflare (withSentry) - minified | 205.38 KB |
| @sentry/cloudflare (withSentry) | 476.84 KB |
| @sentry/cloudflare (withSentry, instrumented CommonJS package) - minified | 208.25 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 230.02 KB |
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.