Packages

@sentry/serverless

7.120.4 · 29 Jul 2025MIT226.6k / weekRepositoryHomepagenpmAtom feed

Your version

7.89.0

19 Dec 2023Where it was published

7.120.4 is the newest release of 7.x.

In short

2 deprecated8 new7 fixed2 internal

  • deprecated

    core: Deprecate configureScope

  • deprecated

    core: Deprecate pushScope & popScope

Release note

Important Changes

Deprecations

  • deprecated

    core: Deprecate configureScope

  • deprecated

    core: Deprecate pushScope & popScope

This release deprecates configureScope, pushScope, and popScope, which will be removed in the upcoming v8 major release.

Hapi Integration

  • node: Add Hapi Integration

This release adds an integration for Hapi. It can be used as follows:

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

const init = async () => {
    const server = Hapi.server({
      // your server configuration ...
    });

    Sentry.init({
      dsn: '__DSN__',
      tracesSampleRate: 1.0,
      integrations: [
        new Sentry.Integrations.Hapi({ server }),
      ],
    });

    server.route({
      // your route configuration ...
    });

    await server.start();
};

SvelteKit 2.0

This release adds support for SvelteKit 2.0 in the @sentry/sveltekit package. If you're upgrading from SvelteKit 1.x to 2.x and already use the Sentry SvelteKit SDK, no changes apart from upgrading to this (or a newer) version are necessary.

Other Changes

  • core: Add type & utility for function-based integrations

  • core: Update withScope to return callback return value

  • deno: Support Deno.CronSchedule for cron jobs

  • nextjs: Auto instrument generation functions

  • nextjs: Connect server component transactions if there is no incoming trace

  • node-experimental: Update to new Scope APIs

  • replay: Add canvas.type setting

  • nextjs: Export createReduxEnhancer

  • remix: Do not capture thrown redirect responses.

  • sveltekit: Add conditional exports

  • sveltekit: Avoid capturing 404 errors on client side

  • utils: Do not use Event type in worldwide

  • utils: Support crypto.getRandomValues in old Chromium versions

  • utils: Update eventFromUnknownInput to avoid scope pollution & getCurrentHub

Work in this release contributed by @adam187, and @jghinestrosa. Thank you for your contributions!

Bundle size

PathSize
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped)75.14 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped)66.57 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)60.16 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped)31.23 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped)29.85 KB
@sentry/browser - Webpack (gzipped)21.53 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped)72.57 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped)64.28 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped)30.54 KB
@sentry/browser - ES6 CDN Bundle (gzipped)22.59 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed)202.16 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed)92.26 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed)67.31 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped)33.4 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped)66.92 KB
@sentry/react - Webpack (gzipped)21.57 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped)83.71 KB
@sentry/nextjs Client - Webpack (gzipped)48.38 KB
@sentry-internal/feedback - Webpack (gzipped)16.18 KB