yarn @sentry/nextjs 7.46.0

latest releases: 8.19.0, 8.18.0, 8.17.0...
15 months ago

Important Changes

  • feat(sveltekit): Add Performance Monitoring for SvelteKit
    • feat(sveltekit): Add meta tag for backend -> frontend (#7574)
    • fix(sveltekit): Explicitly export Node SDK exports (#7644)
    • fix(sveltekit): Handle nested server calls in sentryHandle (#7598)
    • ref(sveltekit): Split up universal and server load wrappers (#7652)

This release adds support for Performance Monitoring in our SvelteKit SDK for the client/server. We've also changed how you should initialize your SDK. Please read our updated SvelteKit README instructions for more details.

  • feat(core): Add ignoreTransactions option (#7594)

You can now easily filter out certain transactions from being sent to Sentry based on their name.

  ignoreTransactions: ['/api/healthcheck', '/ping'],
  • feat(node): Undici integration (#7582)
    • feat(nextjs): Add Undici integration automatically (#7648)
    • feat(sveltekit): Add Undici integration by default (#7650)

We've added an integration that automatically instruments Undici and Node server side fetch. This supports Undici v4.7.0 or higher and requires Node v16.7.0 or higher. After adding the integration outgoing requests made by Undici will have associated spans and breadcrumbs in Sentry.

  integrations: [new Sentry.Integrations.Undici()],

In our Next.js and SvelteKit SDKs, this integration is automatically added.

  • feat(node): Add Sentry tRPC middleware (#7511)

We've added a new middleware for trpc that automatically adds TRPC information to Sentry transactions. This middleware is meant to be used in combination with a Sentry server integration (Next.js, Express, etc).

import { initTRPC } from '@trpc/server';
import * as Sentry from '@sentry/node';

const t = initTRPC.context().create();
const sentryMiddleware = t.middleware(
    attachRpcInput: true,

const sentrifiedProcedure = t.procedure.use(sentryMiddleware);
  • feat(tracing): Remove requirement for @sentry/tracing package

With 7.46.0 you no longer require the @sentry/tracing package to use tracing and performance monitoring with the Sentry JavaScript SDKs. The @sentry/tracing package will be removed in a future major release, but can still be used with no changes.

Please see the Migration docs for more details.

  • fix(node): Convert debugging code to callbacks to fix memory leak in LocalVariables integration (#7637)

This fixes a memory leak in the opt-in LocalVariables integration, which adds local variables to the stacktraces sent to Sentry. The minimum recommended version to use the LocalVariables is now 7.46.0.

Additional Features and Fixes

  • feat(node): Auto discovery only returns integrations where dependency loads (#7603)
  • feat(node): Sanitize URLs in Span descriptions and breadcrumbs (PII) (#7667)
  • feat(replay): Add responseStatus, decodedBodySize to perf entries (#7613)
  • feat(replay): Add experiment to capture request/response bodies (#7589)
  • feat(replay): Capture replay mutation breadcrumbs & add experiment (#7568)
  • feat(tracing): Ensure pageload transaction starts at timeOrigin (#7632)
  • fix(core): Remove abs_path from stack trace (reverting #7167) (#7623)
  • fix(nextjs): Add loading component type to server component wrapping (#7639)
  • fix(nextjs): Don't report NEXT_NOT_FOUND and NEXT_REDIRECT errors (#7642)
  • fix(nextjs): Rewrite abs_path frames (#7619)
  • fix(nextjs): Show errors and warnings only once during build (#7651)
  • fix(nextjs): Use Next.js internal AsyncStorage (#7630)
  • fix(nextjs): Gracefully handle undefined beforeFiles in rewrites (#7649)

Work in this release contributed by @aldenquimby and @bertho-zero. Thank you for your contributions!

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.62 KB
@sentry/browser - ES5 CDN Bundle (minified) 64.4 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.15 KB
@sentry/browser - ES6 CDN Bundle (minified) 56.78 KB
@sentry/browser - Webpack (gzipped + minified) 21.53 KB
@sentry/browser - Webpack (minified) 72 KB
@sentry/react - Webpack (gzipped + minified) 21.55 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 52.05 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.21 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.41 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 44.74 KB
@sentry/replay - Webpack (gzipped + minified) 38.86 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 63.46 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 56.49 KB

Don't miss a new nextjs release

NewReleases is sending notifications on new releases.