Packages

@sentry/serverless

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

Your version

7.0.0

major30 May 2022Where it was published

7.120.4 is the newest release of 7.x.

In short

35 breaking1 deprecated10 new11 fixed18 internal

  • breaking

    The internal breaking changes are aimed at libraries that build on top of and extend the JavaScript SDK (like @sentry/electron or @sentry/react-native).

  • breaking

    Updated CommonJS distributions to use ES6 by default. If you need to support Internet Explorer 11 or old Node.js versions, we recommend using a preprocessing tool like Babel to convert Sentry packages to ES5.

  • breaking

    Default bundle.min.js to ES6 instead of ES5. ES5 bundles are still available at bundle.es5.min.js.

  • breaking

    Updated build system to use TypeScript 3.8.3

  • breaking

    Removed critical Severity level.

  • breaking

    whitelistUrls and blacklistUrls have been renamed to allowUrls and denyUrls in the Sentry.init() options.

  • breaking

    BaseClient and it's child classes now require transport, stackParser, and integrations to be explicitly passed in. This was done to improve tree-shakability.

  • breaking

    Updated package distribution structure and stopped distributing CDN bundles through @sentry/* npm packages. See details in our migration docs.

Release note

Version 7 of the Sentry JavaScript SDK brings a variety of features and fixes including bundle size and performance improvements, brand new integrations, support for the attachments API, and key bug fixes.

This release does not change or remove any top level public API methods (captureException, captureMessage), and only requires changes to certain configuration options or custom clients/integrations/transports.

Note: The v7 version of the JavaScript SDK requires a self-hosted version of Sentry 20.6.0 or higher. If you are using a version of self-hosted Sentry (aka onpremise) older than 20.6.0 then you will need to upgrade.

For detailed overview of all the changes, please see our v7 migration guide.

Breaking Changes

If you are a regular consumer of the Sentry JavaScript SDK you only need to focus on the general items. The internal breaking changes are aimed at libraries that build on top of and extend the JavaScript SDK (like @sentry/electron or @sentry/react-native).

General

Other Changes

Features

  • tracing: Add Prisma ORM integration.

  • react: Add react-router-v6 integration

  • Add attachments API

  • Add name field to EventProcessor

  • Expose configurable stack parser

  • tracing: Make setMeasurement public API

  • tracing: Add GB unit to device memory tag value

  • Export browser integrations individually

  • core: Send Baggage in Envelope Header

Fixes

  • browser: Fix memory leak in addEventListener instrumentation

  • build: Fix express import in gcpfunction

  • ember: Export sha hashes of injected scripts

  • hub: Add missing parameter to captureException docstring

  • integrations: Mark ExtraErrorData as already normalized

  • serverless: Adjust v6 Lambda layer hotfix for v7

  • tracing: Adjust sideEffects package.json entry for v7

  • tracing: Remove isInstanceOf check in Hub constructor

  • tracing: Don't use querySelector when not available

  • nextjs: Update webpack-plugin and change how cli binary is detected. This should reduce bundle size of NextJS applications.

  • utils: Fix infinite recursion in dropUndefinedKeys

Misc

  • build: Vendor polyfills injected during build