Skip to content

8.0.0

Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 13 May 15:39

The Sentry JS SDK team is proud to announce the release of version 8.0.0 of Sentry's JavaScript SDKs - it's been a
long time coming! Thanks to everyone for your patience and a special shout out to the brave souls testing preview builds
and reporting issues - we appreciate your support!


How to Upgrade to Version 8:

We recommend reading the
migration guide docs to find out
how to address any breaking changes in your code for your specific platform or framework.

To automate upgrading to v8 as much as possible, use our migration codemod @sentry/migr8:

npx @sentry/migr8@latest

All deprecations from the v7 cycle, with the exception of getCurrentHub(), have been removed and can no longer be used
in v8. If you have an advanced Sentry SDK setup, we additionally recommend reading the
in-depth migration guide in our repo which highlights all changes with additional details and
information.

The rest of this changelog highlights the most important (breaking) changes and links to more detailed information.

Version Support

With v8, we dropped support for several old runtimes and browsers

Node SDKs: The Sentry JavaScript SDK v8 now supports Node.js 14.8.0 or higher. This applies to @sentry/node
and all of our node-based server-side sdks (@sentry/nextjs, @sentry/remix, etc.). Furthermore, version 8 now ships
with full support for ESM-based node apps using Node.js 18.19.0 or higher.

Browser SDKs: The browser SDKs now require
ES2018+
compatible browsers. New minimum browser versions:

  • Chrome 63
  • Edge 79
  • Safari/iOS Safari 12
  • Firefox 58
  • Opera 50
  • Samsung Internet 8.2

For more details, please see the
version support section in our migration guide.

Initializing Server-side SDKs (Node, Bun, Deno, Serverless):

In v8, we support a lot more node-based packages than before. In order to ensure auto-instrumentation works, the SDK now
needs to be imported and initialized before any other import in your code.

We recommend creating a new file (e.g. instrumentation.js) to import and initialize the SDK. Then, import the file on
top of your entry file or detailed instructions, check our updated SDK setup docs
initializing the SDK in v8.

Performance Monitoring Changes

The API around performance monitoring and tracing has been streamlined, and we've added support for more integrations
out of the box.

Functional Integrations

Integrations are now simple functions instead of classes. Class-based integrations
have been removed:

// old (v7)
Sentry.init({
  integrations: [new Sentry.BrowserTracing()],
});

// new (v8)
Sentry.init({
  integrations: [Sentry.browserTracingIntegration()],
});

Package removal

The following packages have been removed or replaced and will no longer be published:

Changes since 8.0.0-rc.3

  • feat(nextjs): Remove transpileClientSDK (#11978)

    As we are dropping support for Internet Explorer 11 and other other older browser versions wih version 8.0.0, we are
    also removing the transpileClientSDK option from the Next.js SDK. If you need to support these browser versions,
    please configure Webpack and Next.js to down-compile the SDK.

  • feat(serverless): Do not include performance integrations by default (#11998)

    To keep Lambda bundle size reasonable, the SDK no longer ships with all performance (database) integrations by
    default. Add the Sentry integrations of the databases and other tools you're using manually to your Sentry.init call
    by following
    this guide.
    Note that this change does not apply if you use the SDK with the Sentry AWS Lambda layer.

  • feat(feedback): Simplify public css configuration for feedback (#11985)

  • fix(feedback): Check for empty user (#11993)

  • fix(replay): Fix type for replayCanvasIntegration (#11995)

  • fix(replay): Fix user activity not being updated in start() (#12001)

Bundle size 📦

Path Size
@sentry/browser 21.65 KB
@sentry/browser (incl. Tracing) 32.69 KB
@sentry/browser (incl. Tracing, Replay) 68.03 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.43 KB
@sentry/browser (incl. Tracing, Replay with Canvas) 72.07 KB
@sentry/browser (incl. Tracing, Replay, Feedback) 84.08 KB
@sentry/browser (incl. Feedback) 37.57 KB
@sentry/browser (incl. sendFeedback) 26.21 KB
@sentry/browser (incl. FeedbackAsync) 30.57 KB
@sentry/react 24.33 KB
@sentry/react (incl. Tracing) 35.64 KB
@sentry/vue 25.48 KB
@sentry/vue (incl. Tracing) 34.48 KB
@sentry/svelte 21.77 KB
CDN Bundle 24.13 KB
CDN Bundle (incl. Tracing) 34.06 KB
CDN Bundle (incl. Tracing, Replay) 67.73 KB
CDN Bundle (incl. Tracing, Replay, Feedback) 72.71 KB
CDN Bundle - uncompressed 70.98 KB
CDN Bundle (incl. Tracing) - uncompressed 101.02 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed 210.64 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 222.94 KB
@sentry/nextjs (client) 34.88 KB
@sentry/sveltekit (client) 33.25 KB
@sentry/node 147.42 KB