npm @sentry/angular 7.62.0

latest releases: 8.13.0, 8.12.0, 8.12.0-beta.0...
15 months ago

Important Changes

  • feat(integrations): Add ContextLines integration for html-embedded JS stack frames (#8699)

This release adds the ContextLines integration as an optional integration for the Browser SDKs to @sentry/integrations.

This integration adds source code from inline JavaScript of the current page's HTML (e.g. JS in <script> tags) to stack traces of captured errors.
It can't collect source code from assets referenced by your HTML (e.g. <script src="..." />).

The ContextLines integration is useful when you have inline JS code in HTML pages that can't be accessed by Sentry's backend, for example, due to a login-protected page.

import { ContextLines } from "@sentry/integrations";

Sentry.init({
  // ...
  integrations: [
    new ContextLines({
      // The number of lines to collect before and after each stack frame's line number
      // Defaults to 7
      frameContextLines: 7,
    }),
  ],
});

Other Changes

  • fix(nextjs): Make all wrappers isomorphic and available in all runtimes (#8743)
  • fix(replay): Cancel debounce when replay is too short/long (#8742)
  • fix(utils): dirname and basename should handle Windows paths (#8737)
  • ref: Hoist flush, close, and lastEventId into @sentry/core (#8731)
  • ref(node): Don't call JSON.stringify on prisma client when logging (#8745)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 74.96 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.11 KB
@sentry/browser - Webpack (gzipped) 21.81 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.58 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.15 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.17 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 219.29 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.67 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.83 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.02 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.16 KB
@sentry/react - Webpack (gzipped) 21.84 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 92.78 KB
@sentry/nextjs Client - Webpack (gzipped) 50.64 KB

Don't miss a new angular release

NewReleases is sending notifications on new releases.