npm @sentry/nextjs 11.17.0

2 hours ago

Important Changes

  • feat(browser): Report LCP and INP subparts on web vital spans (#25914)

    LCP spans now carry browser.web_vital.lcp.resource_load_delay, browser.web_vital.lcp.resource_load_duration and browser.web_vital.lcp.element_render_delay. INP spans now carry browser.web_vital.inp.input_delay, browser.web_vital.inp.processing_duration and browser.web_vital.inp.presentation_delay. This shows which phase made an LCP or INP slow.

  • feat(core): Gate URL fragments behind urlQueryParams (#26753)

    The urlQueryParams option now also applies to URL fragments, since OAuth redirects and hash routing can put tokens there. key=value pairs in a fragment are filtered like query params, and the fragment is dropped when urlQueryParams is off. This covers url.full, url.fragment, request.url and breadcrumbs. Plain anchors and hash route paths (#details, #/settings) are kept as-is.

  • feat(core): Enrich MCP SDK spans instead of duplicating them (#26309)

    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 as http.server, not its own transaction. Without the MCP SDK's OpenTelemetry tracing, nothing changes.

  • feat(node): Add ClickHouse instrumentation (#26211)

    The new clickhouseIntegration creates database spans for @clickhouse/client and @clickhouse/client-web. It is exported from @sentry/node, @sentry/cloudflare and the other server SDKs.

  • feat(react-router, remix): Support sourcemaps.upload, injectDebugIds and delete

    @sentry/react-router and @sentry/remix now accept the sourcemaps.upload, sourcemaps.injectDebugIds and sourcemaps.delete options. In React Router, source maps you turned on yourself are no longer deleted unless you set delete: true, and release.create: false is now respected.

    Related PRs: #26607, #26332

Other Changes

  • feat(core): Add sentry.kind, url.path and url.scheme to fetch and XHR spans (#26638)
  • feat(core): Record integration options in defineIntegration (#26779)
  • feat(core): Report user-set integrations and their options in SDK config (#26708)
  • feat(deno): Align deno with node & run integration suites with @sentry/deno (#26595)
  • feat(nitro): Add @sentry/nitro/import entry (#26757)
  • feat(server-utils): Add onSpanStart/onSpanEnd hooks to the LangChain and LangGraph integrations (#26629)
  • feat(server-utils): Skip Fastify hook spans on unsampled requests (#26711)
  • feat(solid): Support Solid 2 on Cloudflare Workers (#26741)
  • fix(astro): Only inject the server release in builds (#26725)
  • fix(bundler-plugins): Fall back to local git history when setting commits (#26760)
  • fix(bundler-plugins): Honor release.vcsRemote when associating commits (#26748)
  • fix(cloudflare): Do not load a second copy of @sentry/core in Workers (#26568)
  • fix(core): Create DSC locally when receiving an incoming trace without DSC (#25934)
  • fix(core): Exclude dist from SDK configuration reports (#26702)
  • fix(core): Exclude DSN from SDK configuration reports (#26677)
  • fix(core): Exclude release from SDK configuration reports (#26701)
  • fix(effect): Stop bundling all of Effect with the error reporter (#26730)
  • fix(react): Change resetError to a function type property (#26717)
  • fix(replay): Do not report dead clicks after a bfcache restore (#26704)
  • fix(server-utils): Keep pi-durable 1.6 runs from faulting (#26718)
  • fix(server-utils): Read Express mount paths from the router 2.3 layer (#26729)
  • fix(server-utils): Trace pi-durable tool calls made by other tools (#26719)
  • ref(core): Make isClientClosed and warnIfClientIsActive public, drop getActiveClient (#26745)
Internal Changes
  • chore(deps): Bump @sentry/conventions to 0.35.0 (#26721)
  • chore(size-limit): Add @sentry/effect entries (#26716)
  • ci: Remove the Validate PR workflow (#26722)
  • perf(ci): Move Bun canary integration tests to nightly CI (#26737)
  • perf(ci): Reuse integration dependency installs within test workers (#26720)
  • perf(ci): Run focused tests for Next.js release injection (#26735)
  • perf(ci): Shard Next.js development E2E tests (#26728)
  • perf(ci): Split React Router lazy-route E2E tests (#26769)
  • perf(ci): Use four workers for Nuxt E2E tests (#26765)
  • perf(ci): Use four workers for React Router E2E tests (#26772)
  • perf(ci): Use four workers for SvelteKit E2E tests (#26770)
  • test(browser-integration-tests): Fix flaky replay errorsInSession and bfcache tests (#26750)
  • test(deno): Remove orchestrion suites that the Node suites cover (#26640)
  • test(deno): Run more Node suites on Deno with runtime-aware expectations (#26643)
  • test(e2e): Expect gen_ai message parts for image decisions in node-openai-decisions (#26752)
  • test(e2e): Run express-5 on Bun, Deno and Cloudflare (#26561)
  • test(e2e): Use a Workers AI model that still exists in cloudflare-workers-send-to-sentry (#26751)
  • test(hono): Check the SDK info of each entry in its real runtime (#26712)
  • test(nextjs): Split navigation E2E tests for better shard distribution (#26727)
  • test(node): Reuse filesystem integration test servers (#26492)
  • test(node): Reuse Hono, Hapi, Koa and Fastify test servers (#26491)

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

Don't miss a new nextjs release

NewReleases is sending notifications on new releases.