Skip to content

7.0.0

Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 30 May 12:26

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

Internal

Other Changes

Features

  • feat(tracing): Add Prisma ORM integration. (#4931)
  • feat(react): Add react-router-v6 integration (#5042)
  • feat: Add attachments API (#5004)
  • feat: Add name field to EventProcessor (#4932)
  • feat: Expose configurable stack parser (#4902)
  • feat(tracing): Make setMeasurement public API (#4933)
  • feat(tracing): Add GB unit to device memory tag value (#4935)
  • feat: Export browser integrations individually (#5028)
  • feat(core): Send Baggage in Envelope Header (#5104)

Fixes

  • fix(browser): Fix memory leak in addEventListener instrumentation (#5147)
  • fix(build): Fix express import in gcpfunction (#5097)
  • fix(ember): Export sha hashes of injected scripts (#5089)
  • fix(hub): Add missing parameter to captureException docstring (#5001)
  • fix(integrations): Mark ExtraErrorData as already normalized (#5053)
  • fix(serverless): Adjust v6 Lambda layer hotfix for v7 (#5006)
  • fix(tracing): Adjust sideEffects package.json entry for v7 (#4987)
  • fix(tracing): Remove isInstanceOf check in Hub constructor (#5046)
  • fix(tracing): Don't use querySelector when not available (#5160)
  • fix(nextjs): Update webpack-plugin and change how cli binary is detected. This should reduce bundle size of NextJS applications. (#4988)
  • fix(utils): Fix infinite recursion in dropUndefinedKeys (#5163)

Misc

  • feat(build): Vendor polyfills injected during build (#5051)
  • ref(build): Use rollup to build AWS lambda layer (#5146)
  • ref(core): Make event processing log warnings instead of errors (#5010)
  • ref(node): Allow node stack parser to work in browser context (#5135)
  • ref(serverless): Point DSN to relay in lambda extension (#5126)
  • ref(serverless): Do not throw on flush error (#5090)
  • ref(utils): Clean up dangerous type casts in object helper file (#5047)
  • ref(utils): Add logic to enable skipping of normalization (#5052)