Packages

@sentry/gatsby

11.10.0 · 28 Oct 2026MIT17.5k / weekRepositoryHomepagenpmAtom feed

Your version

8.5.0

27 May 2024Where it was published

8.55.2 is the newest release of 8.x.

In short

8 new10 fixed1 internal

Release note

Important Changes

  • react: Add React 19 to peer deps

This release adds support for React 19 in the @sentry/react SDK package.

  • node: Add @sentry/node/preload hook

This release adds a new way to initialize @sentry/node, which allows you to use the SDK with performance
instrumentation even if you cannot call Sentry.init() at the very start of your app.

First, run the SDK like this:

node --require @sentry/node/preload ./app.js

Now, you can initialize and import the rest of the SDK later or asynchronously:

const express = require('express');
const Sentry = require('@sentry/node');

const dsn = await getSentryDsn();
Sentry.init({ dsn });

For more details, head over to the
PR Description of the new feature. Our docs will be updated
soon with a new guide.

Other Changes

  • browser: Do not include metrics in base CDN bundle

  • core: Add startNewTrace API

  • core: Allow to pass custom scope to captureFeedback()

  • core: Only allow SerializedSession in session envelope items

  • nextjs: Use Vercel's waitUntil to defer freezing of Vercel Lambdas

  • node: Ensure manual OTEL setup works

  • aws-serverless: Avoid minifying Module._resolveFilename in Lambda layer bundle

  • aws-serverless: Ensure lambda layer uses default export from ImportInTheMiddle

  • browser: Improve browser extension error message check

  • browser: Remove optional chaining in INP code

  • nextjs: Don't report React postpone errors

  • nextjs: Use global scope for generic event filters

  • node: Add origin to redis span

  • node: Change import of @prisma/instrumentation to use default import

  • node: Only import inspector asynchronously

  • replay: Update matcher for hydration error detection to new React docs

Bundle size

PathSize
@sentry/browser21.78 KB
@sentry/browser (incl. Tracing)32.79 KB
@sentry/browser (incl. Tracing, Replay)68.26 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags61.68 KB
@sentry/browser (incl. Tracing, Replay with Canvas)72.31 KB
@sentry/browser (incl. Tracing, Replay, Feedback)84.37 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)85.84 KB
@sentry/browser (incl. metrics)23.17 KB
@sentry/browser (incl. Feedback)37.8 KB
@sentry/browser (incl. sendFeedback)26.36 KB
@sentry/browser (incl. FeedbackAsync)30.79 KB
@sentry/react24.47 KB
@sentry/react (incl. Tracing)35.79 KB
@sentry/vue25.73 KB
@sentry/vue (incl. Tracing)34.59 KB
@sentry/svelte21.92 KB
CDN Bundle23.01 KB
CDN Bundle (incl. Tracing)34.27 KB
CDN Bundle (incl. Tracing, Replay)68.08 KB
CDN Bundle (incl. Tracing, Replay, Feedback)73.09 KB
CDN Bundle - uncompressed67.88 KB
CDN Bundle (incl. Tracing) - uncompressed101.68 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed211.58 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed223.96 KB
@sentry/nextjs (client)35.14 KB
@sentry/sveltekit (client)33.39 KB
@sentry/node114.65 KB
@sentry/aws-serverless103.32 KB