Packages

@sentry/gatsby

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

Your version

8.12.0

25 Jun 2024Where it was published

8.55.2 is the newest release of 8.x.

In short

1 breaking1 removed4 new4 fixed1 internal

  • breaking

    This release introduces breaking changes to the @sentry/solid package (which is currently out in alpha).

  • removed

    feat(solid): Remove need to pass router hooks to solid integration (breaking)

Release note

Important Changes

  • removed

    feat(solid): Remove need to pass router hooks to solid integration (breaking)

This release introduces breaking changes to the @sentry/solid package (which is currently out in alpha).

We've made it easier to get started with the solid router integration by removing the need to pass use* hooks
explicitly to solidRouterBrowserTracingIntegration. Import solidRouterBrowserTracingIntegration from
@sentry/solid/solidrouter and add it to Sentry.init

import * as Sentry from '@sentry/solid';
import { solidRouterBrowserTracingIntegration, withSentryRouterRouting } from '@sentry/solid/solidrouter';
import { Router } from '@solidjs/router';

Sentry.init({
  dsn: '__PUBLIC_DSN__',
  integrations: [solidRouterBrowserTracingIntegration()],
  tracesSampleRate: 1.0, //  Capture 100% of the transactions
});

const SentryRouter = withSentryRouterRouting(Router);
  • core: Return client from init method

Sentry.init() now returns a client directly, so you don't need to explicitly call getClient() anymore:

const client = Sentry.init();
  • nextjs: Add deleteSourcemapsAfterUpload option

This adds an easy way to delete sourcemaps immediately after uploading them:

module.exports = withSentryConfig(nextConfig, {
  sourcemaps: {
    deleteSourcemapsAfterUpload: true,
  },
});
  • node: Allow to configure maxSpanWaitDuration

Adds configuration option for the max. duration in seconds that the SDK will wait for parent spans to be finished before
discarding a span. The SDK will automatically clean up spans that have no finished parent after this duration. This is
necessary to prevent memory leaks in case of parent spans that are never finished or otherwise dropped/missing. However,
if you have very long-running spans in your application, a shorter duration might cause spans to be discarded too early.
In this case, you can increase this duration to a value that fits your expected data.

Other Changes

  • feedback: Extra check for iPad in screenshot support

  • bundle: Ensure CDN bundles do not overwrite window.Sentry

  • feedback: Inject preact from feedbackModal into feedbackScreenshot integration

  • node: Re-throw errors from koa middleware

  • remix: Mark isRemixV2 as optional in exposed types.

Work in this release was contributed by @n4bb12. Thank you for your contribution!

Bundle size

PathSize
@sentry/browser22.22 KB
@sentry/browser (incl. Tracing)33.31 KB
@sentry/browser (incl. Tracing, Replay)69.09 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.42 KB
@sentry/browser (incl. Tracing, Replay with Canvas)73.15 KB
@sentry/browser (incl. Tracing, Replay, Feedback)85.76 KB
@sentry/browser (incl. Tracing, Replay, Feedback, metrics)87.62 KB
@sentry/browser (incl. metrics)26.5 KB
@sentry/browser (incl. Feedback)38.87 KB
@sentry/browser (incl. sendFeedback)26.85 KB
@sentry/browser (incl. FeedbackAsync)31.45 KB
@sentry/react24.97 KB
@sentry/react (incl. Tracing)36.36 KB
@sentry/vue26.33 KB
@sentry/vue (incl. Tracing)35.17 KB
@sentry/svelte22.36 KB
CDN Bundle23.42 KB
CDN Bundle (incl. Tracing)35.05 KB
CDN Bundle (incl. Tracing, Replay)69.18 KB
CDN Bundle (incl. Tracing, Replay, Feedback)74.38 KB
CDN Bundle - uncompressed68.8 KB
CDN Bundle (incl. Tracing) - uncompressed103.66 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed214.13 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed226.79 KB
@sentry/nextjs (client)36.24 KB
@sentry/sveltekit (client)33.95 KB
@sentry/node113.27 KB
@sentry/node - without tracing90.65 KB
@sentry/aws-serverless99.74 KB