yarn @sentry/nextjs 7.58.0

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

Important Changes

  • Performance Monitoring not required for Distributed Tracing

This release adds support for distributed tracing without requiring performance monitoring to be active on the JavaScript SDKs (browser and node). This means even if there is no sampled transaction/span, the SDK will still propagate traces to downstream services. Distributed Tracing can be configured with the tracePropagationTargets option, which controls what requests to attach the sentry-trace and baggage HTTP headers to (which is what propagates tracing information).

Sentry.init({
  tracePropagationTargets: ["third-party-site.com", /^https:\/\/yourserver\.io\/api/],
});
  • feat(tracing): Add tracing without performance to browser and client Sveltekit (#8458)

  • feat(node): Add tracing without performance to Node http integration (#8450)

  • feat(node): Add tracing without performance to Node Undici (#8449)

  • feat(node): Populate propagation context using env variables (#8422)

  • feat(core): Support AggregateErrors in LinkedErrors integration (#8463)

This release adds support for AggregateErrors. AggregateErrors are considered as Exception Groups by Sentry, and will be visualized and grouped differently. See the Exception Groups Changelog Post for more details.

Exception Group support requires Self-Hosted Sentry version 23.5.1 or newer.

  • feat(replay): Add a new option networkDetailDenyUrls (#8439)

This release adds a new option networkDetailDenyUrls to the Replay integration. This option allows you to specify a list of URLs that should not be captured by the Replay integration, which can be used alongside the existing networkDetailAllowUrls for finely grained control of which URLs should have network details captured.

Sentry.init({
  integrations: [
    new Sentry.Integrations.Replay({
      networkDetailDenyUrls: [/^http:\/\/example.com\/test$/],
    }),
  ],
});

Other Changes

  • feat(core): Add helpers to get module metadata from injected code (#8438)
  • feat(core): Add sampling decision to trace envelope header (#8483)
  • feat(node): Add trace context to checkin (#8503)
  • feat(node): Export getModule for Electron SDK (#8488)
  • feat(types): Allow user.id to be a number (#8330)
  • fix(browser): Set anonymous crossorigin attribute on report dialog (#8424)
  • fix(nextjs): Ignore tunnelRoute when doing static exports (#8471)
  • fix(nextjs): Use basePath option for tunnelRoute (#8454)
  • fix(node): Apply source context to linked errors even when it is uncached (#8453)
  • fix(node): report errorMiddleware errors as unhandled (#8048)
  • fix(react): Add support for basename option of createBrowserRouter (#8457)
  • fix(remix): Add explicit @sentry/node exports. (#8509)
  • fix(remix): Don't inject trace/baggage to redirect and catch responses (#8467)
  • fix(replay): Adjust slow/multi click handling (#8380)

Work in this release contributed by @mrdulin, @donaldxdonald & @ziyad-elabid-nw. Thank you for your contributions!

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.95 KB
@sentry/browser - ES5 CDN Bundle (minified) 69.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.28 KB
@sentry/browser - ES6 CDN Bundle (minified) 60.38 KB
@sentry/browser - Webpack (gzipped + minified) 21.9 KB
@sentry/browser - Webpack (minified) 71.51 KB
@sentry/react - Webpack (gzipped + minified) 21.92 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 50.58 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.11 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.16 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.42 KB
@sentry/replay - Webpack (gzipped + minified) 43.1 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.51 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.82 KB

Don't miss a new nextjs release

NewReleases is sending notifications on new releases.