Packages

@sentry/serverless

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

Your version

7.112.0

23 Apr 2024Where it was published

7.120.4 is the newest release of 7.x.

In short

2 new1 fixed

Release note

Important Changes

  • Export pluggable integrations from SDK packages

Instead of installing @sentry/integrations, you can now import the pluggable integrations directly from your SDK
package:

// Before
import * as Sentry fromv '@sentry/browser';
import { dedupeIntegration } from '@sentry/integrations';

Sentry.init({
  integrations: [dedupeIntegration()],
});

// After
import * as Sentry from '@sentry/browser';

Sentry.init({
  integrations: [Sentry.dedupeIntegration()],
});

Note that only the functional integrations (e.g. xxxIntegration()) are re-exported.

Other Changes

  • replay: Add "maxCanvasSize" option for replay canvases

  • serverless: [v7] Check if cloud event callback is a function

Bundle size

PathSize
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped)80.72 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped)71.69 KB
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped)75.91 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)65.32 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped)35.62 KB
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped)35.5 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped)31.57 KB
@sentry/browser (incl. sendFeedback) - Webpack (gzipped)31.58 KB
@sentry/browser - Webpack (gzipped)22.78 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped)78.9 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped)70.27 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped)36.02 KB
@sentry/browser - ES6 CDN Bundle (gzipped)25.28 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed)221.25 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed)109.01 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed)75.79 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped)39.3 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped)72.18 KB
@sentry/react - Webpack (gzipped)22.81 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped)90.01 KB
@sentry/nextjs Client - Webpack (gzipped)54.15 KB
@sentry-internal/feedback - Webpack (gzipped)17.32 KB