sentry-javascript

Official Sentry SDKs for JavaScript

MIT License

Downloads
373.3M
Stars
7.9K
Committers
546

Bot releases are visible (Hide)

sentry-javascript - 7.67.0

Published by getsentry-bot about 1 year ago

Important Changes

  • feat: Mark errors caught by the SDK as unhandled
    • feat(browser): Mark errors caught from TryCatch integration as unhandled (#8890)
    • feat(integrations): Mark errors caught from HttpClient and CaptureConsole integrations as unhandled (#8891)
    • feat(nextjs): Mark errors caught from NextJS wrappers as unhandled (#8893)
    • feat(react): Mark errors captured from ErrorBoundary as unhandled (#8914)
    • feat(remix): Mark errors caught from Remix instrumentation as unhandled (#8894)
    • feat(serverless): Mark errors caught in Serverless handlers as unhandled (#8907)
    • feat(vue): Mark errors caught by Vue wrappers as unhandled (#8905)

This release fixes inconsistent behaviour of when our SDKs classify captured errors as unhandled.
Previously, some of our instrumentations correctly set unhandled, while others set handled.
Going forward, all errors caught automatically from our SDKs will be marked as unhandled.
If you manually capture errors (e.g. by calling Sentry.captureException), your errors will continue to be reported as handled.

This change might lead to a decrease in reported crash-free sessions and consequently in your release health score.
If you have concerns about this, feel free to open an issue.

Other Changes

  • feat(node-experimental): Implement new performance APIs (#8911)
  • feat(node-experimental): Sync OTEL context with Sentry AsyncContext (#8797)
  • feat(replay): Allow to configure maxReplayDuration (#8769)
  • feat(remix): Add debugid injection and map deletion to sourcemaps script (#8814)
  • fix(browser): Add replay and profiling options to BrowserClientOptions (#8921)
  • fix(browser): Check for existence of instrumentation targets (#8939)
  • fix(nextjs): Don't re-export default in route handlers (#8924)
  • fix(node): Improve mysql integration (#8923)
  • fix(remix): Guard against missing default export for server instrument (#8909)
  • ref(browser): Deprecate top-level wrap function (#8927)
  • ref(node-otel): Avoid exporting internals & refactor attribute adding (#8920)

Work in this release contributed by @SorsOps. Thank you for your contribution!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.32 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.21 KB
@sentry/browser - Webpack (gzipped) 21.83 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.83 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.16 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.15 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 220.71 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.99 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.7 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.05 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 75.34 KB
@sentry/react - Webpack (gzipped) 21.86 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 93.2 KB
@sentry/nextjs Client - Webpack (gzipped) 50.78 KB
sentry-javascript - 7.67.0-beta.0

Published by getsentry-bot about 1 year ago

Important Changes

  • feat(replay): Upgrade to rrweb2.0

This should be fully backwards compatible with previously recorded replays. Only breaking change is that we will not be masking aria-label by default. This is to better support searching by clicks. Another issue is there is about a 13% bundle size increase, however this comes with improved performance and improved replay fidelity especially in regards to web components.

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 83.83 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.22 KB
@sentry/browser - Webpack (gzipped) 21.84 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 78.11 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.17 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.16 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 251.58 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 85.02 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.72 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.07 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 83.86 KB
@sentry/react - Webpack (gzipped) 21.87 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 101.75 KB
@sentry/nextjs Client - Webpack (gzipped) 50.79 KB
sentry-javascript - 7.66.0

Published by getsentry-bot about 1 year ago

  • fix: Defer tracing decision to downstream SDKs when using SDK without performance (#8839)
  • fix(nextjs): Fix package.json exports (#8895)
  • fix(sveltekit): Ensure target file exists before applying auto instrumentation (#8881)
  • ref: Use consistent console instrumentation (#8879)
  • ref(browser): Refactor sentry breadcrumb to use hook (#8892)
  • ref(tracing): Add origin to spans (#8765)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.27 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.25 KB
@sentry/browser - Webpack (gzipped) 21.86 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.79 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.2 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.19 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 220.3 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 85.13 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.84 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.1 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 75.29 KB
@sentry/react - Webpack (gzipped) 21.89 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 93.13 KB
@sentry/nextjs Client - Webpack (gzipped) 50.8 KB
sentry-javascript - 7.66.0-alpha.0

Published by getsentry-bot about 1 year ago

Important Changes

  • feat(replay): Upgrade to rrweb2.0

This should be fully backwards compatible with previously recorded replays. Only breaking change is that we will not be masking aria-label by default. This is to better support searching by clicks. Another issue is there is about a 13% bundle size increase, however this comes with improved performance and improved replay fidelity especially in regards to web components.

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 83.79 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.2 KB
@sentry/browser - Webpack (gzipped) 21.85 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 78.09 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.22 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.18 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 251.41 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.88 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.86 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.11 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 83.81 KB
@sentry/react - Webpack (gzipped) 21.88 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 101.65 KB
@sentry/nextjs Client - Webpack (gzipped) 50.74 KB
sentry-javascript - 7.65.0

Published by getsentry-bot about 1 year ago

  • build: Remove build-specific polyfills (#8809)
  • build(deps): bump protobufjs from 6.11.3 to 6.11.4 (#8822)
  • deps(sveltekit): Bump @sentry/vite-plugin (#8877)
  • feat(core): Introduce Sentry.startActiveSpan and Sentry.startSpan (#8803)
  • fix: Memoize AsyncLocalStorage instance (#8831)
  • fix(nextjs): Check for validity of API route handler signature (#8811)
  • fix(nextjs): Fix requestAsyncStorageShim path resolution on windows (#8875)
  • fix(node): Log entire error object in OnUncaughtException (#8876)
  • fix(node): More relevant warning message when tracing extensions are missing (#8820)
  • fix(replay): Streamline session creation/refresh (#8813)
  • fix(sveltekit): Avoid invalidating data on route changes in wrapServerLoadWithSentry (#8801)
  • fix(tracing): Better guarding for performance observer (#8872)
  • ref(sveltekit): Remove custom client fetch instrumentation and use default instrumentation (#8802)
  • ref(tracing-internal): Deprecate tracePropagationTargets in BrowserTracing (#8874)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.22 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.2 KB
@sentry/browser - Webpack (gzipped) 21.85 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.75 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.21 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.18 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 220.06 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.89 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.86 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.1 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 75.24 KB
@sentry/react - Webpack (gzipped) 21.88 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 93.04 KB
@sentry/nextjs Client - Webpack (gzipped) 50.73 KB
sentry-javascript - 7.65.0-alpha.0

Published by getsentry-bot about 1 year ago

Important Changes

  • feat(replay): Upgrade to rrweb2.0

This should be fully backwards compatible with previously recorded replays. Only breaking change is that we will not be masking aria-label by default. This is to better support searching by clicks. Another issue is there is about a 13% bundle size increase, however this comes with improved performance and improved replay fidelity especially in regards to web components.

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 83.73 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.15 KB
@sentry/browser - Webpack (gzipped) 21.82 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 78.12 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.2 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.19 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 251.54 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.79 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.87 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.06 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 73.92 KB
@sentry/react - Webpack (gzipped) 21.85 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 101.61 KB
@sentry/nextjs Client - Webpack (gzipped) 50.66 KB
sentry-javascript - 7.64.0

Published by getsentry-bot about 1 year ago

  • feat(core): Add setMeasurement export (#8791)
  • fix(nextjs): Check for existence of default export when wrapping pages (#8794)
  • fix(nextjs): Ensure imports are valid relative paths (#8799)
  • fix(nextjs): Only re-export default export if it exists (#8800)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.12 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.14 KB
@sentry/browser - Webpack (gzipped) 21.81 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.73 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.18 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.18 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 219.89 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.78 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.86 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.04 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.3 KB
@sentry/react - Webpack (gzipped) 21.84 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 92.93 KB
@sentry/nextjs Client - Webpack (gzipped) 50.66 KB
sentry-javascript - 7.64.0-alpha.0

Published by getsentry-bot about 1 year ago

Important Changes

  • feat(replay): Upgrade to rrweb2.0

This should be fully backwards compatible with previously recorded replays. Only breaking change is that we will not be masking aria-label by default. This is to better support searching by clicks. Another issue is there is about a 13% bundle size increase, however this comes with improved performance and improved replay fidelity especially in regards to web components.

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 83.73 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.15 KB
@sentry/browser - Webpack (gzipped) 21.82 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 78.12 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.2 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.19 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 251.54 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.79 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.87 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.06 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 73.92 KB
@sentry/react - Webpack (gzipped) 21.85 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 101.61 KB
@sentry/nextjs Client - Webpack (gzipped) 50.66 KB
sentry-javascript - 7.63.0

Published by getsentry-bot about 1 year ago

  • build(deps): bump @opentelemetry/instrumentation from 0.41.0 to 0.41.2
  • feat(eventbuilder): Export exceptionFromError for use in hybrid SDKs (#8766)
  • feat(node-experimental): Re-export from node (#8786)
  • feat(tracing): Add db connection attributes for mysql spans (#8775)
  • feat(tracing): Add db connection attributes for postgres spans (#8778)
  • feat(tracing): Improve data collection for mongodb spans (#8774)
  • fix(nextjs): Execute sentry config independently of autoInstrumentServerFunctions and autoInstrumentAppDirectory (#8781)
  • fix(replay): Ensure we do not flush if flush took too long (#8784)
  • fix(replay): Ensure we do not try to flush when we force stop replay (#8783)
  • fix(replay): Fix hasCheckout handling (#8782)
  • fix(replay): Handle multiple clicks in a short time (#8773)
  • ref(replay): Skip events being added too long after initial segment (#8768)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.1 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.71 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.16 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.18 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 219.8 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.69 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.86 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.03 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.3 KB
@sentry/react - Webpack (gzipped) 21.84 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 92.92 KB
@sentry/nextjs Client - Webpack (gzipped) 50.64 KB
sentry-javascript - 7.62.0

Published by getsentry-bot about 1 year 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
sentry-javascript - 7.61.1

Published by getsentry-bot about 1 year ago

  • feat(nextjs): Add AsyncLocalStorage async context strategy to edge SDK (#8720)
  • fix(core): Filter internal API frames for synthetic frames (#8710)
  • fix(integrations): Capture exception if any arg to console method is an error (#8671)
  • fix(node-experimental): Update auto integration lookup & readme (#8690)
  • fix(node): Add availablility check on current hub to Node ContextLines integration (#8715)
  • fix(replay): Ensure buffer sessions end after capturing an error (#8713)
  • fix(replay): Ensure buffer->session switch is reliable (#8712)
  • fix(replay): Ensure we debounce flush if replay too short (#8716)
  • fix(replay): Improve capture of errorIds/traceIds (#8678)
  • fix(tracing): Set correct parent span id on fetch sentry-trace header (#8687)
  • fix(utils): Avoid pre_context and context_line overlap if frame lineno is out of bounds (#8722)
  • ref(replay): Improve status logging (#8709)
  • ref(nextjs): Allow withSentryConfig to accept async config function (#8721)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 74.85 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.53 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.14 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.15 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 219.03 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 84.63 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.8 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 30.43 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.06 KB
@sentry/react - Webpack (gzipped) 21.84 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 92.65 KB
@sentry/nextjs Client - Webpack (gzipped) 50.61 KB
sentry-javascript - 7.61.0

Published by getsentry-bot about 1 year ago

Important Changes

  • feat(node-experimental): Add @sentry/node-experimental package as MVP for POTEL (#8609)

This introduces a new, experimental package, @sentry/node-experimental.
This is a variant of the Node SDK which uses OpenTelemetry under the hood for performance instrumentation.

Note that this package is very much WIP, considered unstable and may change at any time.
No SemVer guarantees apply whatsoever. Still, if you're brave enough you can give it a try.
Read more about @sentry/node-experimental

Other Changes

  • fix(node): Don't set extra baggage headers (#8657)
  • fix(tracing): Trim idle transaction spans if they exceed final timeout (#8653)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.07 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.4 KB
@sentry/browser - Webpack (gzipped) 21.95 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.79 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.28 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.33 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 220.89 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 85.99 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 60.48 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 30.41 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.14 KB
@sentry/react - Webpack (gzipped) 21.96 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 92.91 KB
@sentry/nextjs Client - Webpack (gzipped) 50.89 KB
sentry-javascript - 7.60.1

Published by getsentry-bot about 1 year ago

  • fix(nextjs): Match folder paths with trailing separator (#8615)
  • fix(replay): Ignore clicks with shift pressed (#8648)
  • fix(replay): Use session.started for min/max duration check (#8617)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.35 KB
@sentry/browser - Webpack (gzipped) 21.95 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.76 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.25 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 20.33 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 220.8 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 85.9 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 60.48 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 30.37 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.14 KB
@sentry/react - Webpack (gzipped) 21.96 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 92.85 KB
@sentry/nextjs Client - Webpack (gzipped) 50.83 KB
sentry-javascript - 7.60.0

Published by getsentry-bot about 1 year ago

Important Changes

  • feat(replay): Ensure min/max duration when flushing (#8596)

We will not send replays that are <5s long anymore. Additionally, we also added further safeguards to avoid overly long (>1h) replays.
You can optionally configure the min. replay duration (defaults to 5s):

new Replay({
  minReplayDuration: 10000 // in ms - note that this is capped at 15s max!
})

Other Changes

  • fix(profiling): Align to SDK selected time origin (#8599)
  • fix(replay): Ensure multi click has correct timestamps (#8591)
  • fix(utils): Truncate aggregate exception values (LinkedErrors) (#8593)

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.99 KB
@sentry/browser - ES5 CDN Bundle (minified) 69.25 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.33 KB
@sentry/browser - ES6 CDN Bundle (minified) 60.48 KB
@sentry/browser - Webpack (gzipped + minified) 21.95 KB
@sentry/browser - Webpack (minified) 71.63 KB
@sentry/react - Webpack (gzipped + minified) 21.96 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 50.83 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.37 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.25 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.56 KB
@sentry/replay - Webpack (gzipped + minified) 43.33 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.73 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 62 KB
sentry-javascript - 7.59.3

Published by getsentry-bot over 1 year ago

  • fix(browser): 0 is a valid index (#8581)
  • fix(nextjs): Ensure Webpack plugin is available after dynamic require (#8584)
  • types(browser): Add browser profiling client options (#8565)

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.95 KB
@sentry/browser - ES5 CDN Bundle (minified) 69.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.28 KB
@sentry/browser - ES6 CDN Bundle (minified) 60.38 KB
@sentry/browser - Webpack (gzipped + minified) 21.91 KB
@sentry/browser - Webpack (minified) 71.51 KB
@sentry/react - Webpack (gzipped + minified) 21.92 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 50.76 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.33 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.19 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.44 KB
@sentry/replay - Webpack (gzipped + minified) 43.16 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.56 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.83 KB
sentry-javascript - 7.59.2

Published by getsentry-bot over 1 year ago

No changes. This release was published to fix publishing issues with 7.59.0 and 7.59.1.
Please see 7.59.0 for the changes in that release.

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.95 KB
@sentry/browser - ES5 CDN Bundle (minified) 69.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.28 KB
@sentry/browser - ES6 CDN Bundle (minified) 60.38 KB
@sentry/browser - Webpack (gzipped + minified) 21.9 KB
@sentry/browser - Webpack (minified) 71.51 KB
@sentry/react - Webpack (gzipped + minified) 21.92 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 50.76 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.33 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.19 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.44 KB
@sentry/replay - Webpack (gzipped + minified) 43.16 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.56 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.83 KB
sentry-javascript - 7.59.1

Published by getsentry-bot over 1 year ago

No changes. This release was published to fix a publishing issue with 7.59.0. Please see 7.59.0 for the changes in that release.

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.95 KB
@sentry/browser - ES5 CDN Bundle (minified) 69.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.29 KB
@sentry/browser - ES6 CDN Bundle (minified) 60.38 KB
@sentry/browser - Webpack (gzipped + minified) 21.9 KB
@sentry/browser - Webpack (minified) 71.51 KB
@sentry/react - Webpack (gzipped + minified) 21.92 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 50.76 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.33 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.2 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.44 KB
@sentry/replay - Webpack (gzipped + minified) 43.16 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.56 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.84 KB
sentry-javascript - 7.59.0

Published by getsentry-bot over 1 year ago

Important Changes

  • feat(remix): Add Remix v2 support (#8415)

This release adds support for Remix v2 future flags, in particular for the new error handling utilities of Remix v2. We recommend you switch to using v2_errorBoundary future flag to get the best error handling experience with Sentry.

To capture errors from v2 client-side ErrorBoundary, you should define your own ErrorBoundary in root.tsx and use Sentry.captureRemixErrorBoundaryError helper to capture the error.

// root.tsx
import { captureRemixErrorBoundaryError } from "@sentry/remix";

export const ErrorBoundary: V2_ErrorBoundaryComponent = () => {
  const error = useRouteError();

  captureRemixErrorBoundaryError(error);

  return <div> ... </div>;
};

For server-side errors, define a handleError function in your server entry point and use the Sentry.captureRemixServerException helper to capture the error.

// entry.server.tsx
export function handleError(
  error: unknown,
  { request }: DataFunctionArgs
): void {
  if (error instanceof Error) {
    Sentry.captureRemixServerException(error, "remix.server", request);
  } else {
    // Optionally capture non-Error objects
    Sentry.captureException(error);
  }
}

For more details, see the Sentry Remix SDK documentation.

Other Changes

  • feat(core): Add ModuleMetadata integration (#8475)
  • feat(core): Allow multiplexed transport to send to multiple releases (#8559)
  • feat(tracing): Add more network timings to http calls (#8540)
  • feat(tracing): Bring http timings out of experiment (#8563)
  • fix(nextjs): Avoid importing SentryWebpackPlugin in dev mode (#8557)
  • fix(otel): Use HTTP_URL attribute for client requests (#8539)
  • fix(replay): Better session storage check (#8547)
  • fix(replay): Handle errors in beforeAddRecordingEvent callback (#8548)
  • fix(tracing): Improve network.protocol.version (#8502)

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.95 KB
@sentry/browser - ES5 CDN Bundle (minified) 69.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.28 KB
@sentry/browser - ES6 CDN Bundle (minified) 60.38 KB
@sentry/browser - Webpack (gzipped + minified) 21.9 KB
@sentry/browser - Webpack (minified) 71.51 KB
@sentry/react - Webpack (gzipped + minified) 21.92 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 50.76 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.33 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.2 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.44 KB
@sentry/replay - Webpack (gzipped + minified) 43.16 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.56 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.83 KB
sentry-javascript - 7.59.0-beta.1

Published by getsentry-bot over 1 year ago

  • fix(nextjs): Avoid importing SentryWebpackPlugin in dev mode (#8543)

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.97 KB
@sentry/browser - ES5 CDN Bundle (minified) 69.14 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.3 KB
@sentry/browser - ES6 CDN Bundle (minified) 60.39 KB
@sentry/browser - Webpack (gzipped + minified) 21.91 KB
@sentry/browser - Webpack (minified) 71.53 KB
@sentry/react - Webpack (gzipped + minified) 21.93 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 50.58 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.12 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.17 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.29 KB
@sentry/replay - Webpack (gzipped + minified) 42.88 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.37 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.69 KB
sentry-javascript - 7.59.0-beta.0

Published by getsentry-bot over 1 year ago

  • feat(replay): Re-sample sessions after they expire #8407

This pre-release contains a revamped replay session expiration handling.
Now, when a session expires (because it ran for too long), we will always
re-sample the session, and may start another one (or start buffering) based on the sample rates.

Bundle size 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.96 KB
@sentry/browser - ES5 CDN Bundle (minified) 69.14 KB
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.29 KB
@sentry/browser - ES6 CDN Bundle (minified) 60.39 KB
@sentry/browser - Webpack (gzipped + minified) 21.91 KB
@sentry/browser - Webpack (minified) 71.53 KB
@sentry/react - Webpack (gzipped + minified) 21.93 KB
@sentry/nextjs Client - Webpack (gzipped + minified) 50.58 KB
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.12 KB
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.17 KB
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.29 KB
@sentry/replay - Webpack (gzipped + minified) 42.88 KB
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.37 KB
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.69 KB