NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2020 most downloaded on npm
Browser Utilities for all Sentry JavaScript SDKs
Last release 6 days ago
29 Sep 2026
Ships unpredictably
gaps range from 8 days to 4 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
232 releases · first in 2024
feat(browser): Add INP support for v8
INP web vital support was now forward-ported to version 8. Recording of INP data is enabled by default.
The default limit of queued events to be sent was increased from 30 to 64 events. You may observe a higher memory
footprint of the SDK. You can override this limit by setting the transportOptions.bufferSize option in
Sentry.init().
A maxCanvasSize option was added to the replayCanvasIntegration to disallow capturing of canvases larger than a
certain size. This value defaults to 1280 which will not capture canvases bigger than 1280x1280 pixels.
@opentelemetry/instrumentation-http to 0.48.0 (#11745)@opentelemetry/api dependency from Next.js package (#11717)lazyLoadIntegration works in NPM mode (#11673)| Path | Size |
|---|---|
| @sentry/browser | 21.65 KB |
| @sentry/browser (incl. Tracing) | 32.63 KB |
| @sentry/browser (incl. Tracing, Replay) | 67.98 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.37 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 72.02 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 84.21 KB |
| @sentry/browser (incl. Feedback) | 37.76 KB |
| @sentry/browser (incl. sendFeedback) | 26.43 KB |
| @sentry/browser (incl. FeedbackAsync) | 30.91 KB |
| @sentry/react | 24.33 KB |
| @sentry/react (incl. Tracing) | 35.53 KB |
| @sentry/vue | 25.27 KB |
| @sentry/vue (incl. Tracing) | 34.38 KB |
| @sentry/svelte | 21.77 KB |
| CDN Bundle | 23.95 KB |
| CDN Bundle (incl. Tracing) | 33.89 KB |
| CDN Bundle (incl. Tracing, Replay) | 67.61 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.44 KB |
| CDN Bundle - uncompressed | 70.56 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 100.57 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.18 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 256.49 KB |
| @sentry/nextjs (client) | 34.75 KB |
| @sentry/sveltekit (client) | 33.13 KB |
| @sentry/node | 152.88 KB |
One column per month.
feat(opentelemetry): Add `addOpenTelemetryInstrumentation`
addOpenTelemetryInstrumentation (#11667)A utility function addOpenTelemetryInstrumentation was added that allows for the registration of instrumentations that
conform to the OpenTelemetry JS API without having to specify @opentelemetry/instrumentation as a dependency.
Going forward, the Sentry trpcMiddleware will only create spans. Previously it used to always create a transaction.
This change was made to integrate more nicely with the HTTP instrumentation added in earlier versions to avoid creating
unnecessary transactions.
| Path | Size |
|---|---|
| @sentry/browser | 21.67 KB |
| @sentry/browser (incl. Tracing) | 31.4 KB |
| @sentry/browser (incl. Tracing, Replay) | 66.73 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 60.14 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 70.57 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 80.44 KB |
| @sentry/browser (incl. Feedback) | 35.25 KB |
| @sentry/browser (incl. Feedback, Feedback Modal) | 35.25 KB |
| @sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) | 37.28 KB |
| @sentry/browser (incl. sendFeedback) | 26.46 KB |
| @sentry/react | 24.35 KB |
| @sentry/react (incl. Tracing) | 34.31 KB |
| @sentry/vue | 25.2 KB |
| @sentry/vue (incl. Tracing) | 33.12 KB |
| @sentry/svelte | 21.79 KB |
| CDN Bundle | 24.03 KB |
| CDN Bundle (incl. Tracing) | 32.71 KB |
| CDN Bundle (incl. Tracing, Replay) | 66.37 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.57 KB |
| CDN Bundle - uncompressed | 70.85 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 97.5 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 207.16 KB |
| @sentry/nextjs (client) | 33.64 KB |
| @sentry/sveltekit (client) | 31.9 KB |
| @sentry/node | 160.37 KB |
feat(browser): Update `propagationContext` on `spanEnd` to keep trace consistent
propagationContext on spanEnd to keep trace consistentTo ensure consistency throughout a route's duration, we update the scope's propagation context when the initial page load or navigation span ends. This keeps span-specific attributes like the sampled decision and dynamic sampling context on the scope, even after the transaction has ended.
We won't assume window.dodument is available in the browser SDKs anymore. This should prevent errors in environments
where window.document is not available (such as web workers).
server.address to browser http.client spans (#11634)NodeClient without calling init (#11585)| Path | Size |
|---|---|
| @sentry/browser | 21.67 KB |
| @sentry/browser (incl. Tracing) | 31.46 KB |
| @sentry/browser (incl. Tracing, Replay) | 66.79 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 60.19 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 70.62 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 80.5 KB |
| @sentry/browser (incl. Feedback) | 35.25 KB |
| @sentry/browser (incl. Feedback, Feedback Modal) | 35.25 KB |
| @sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) | 37.28 KB |
| @sentry/browser (incl. sendFeedback) | 26.46 KB |
| @sentry/react | 24.35 KB |
| @sentry/react (incl. Tracing) | 34.37 KB |
| @sentry/vue | 25.2 KB |
| @sentry/vue (incl. Tracing) | 33.18 KB |
| @sentry/svelte | 21.79 KB |
| CDN Bundle | 24.03 KB |
| CDN Bundle (incl. Tracing) | 32.76 KB |
| CDN Bundle (incl. Tracing, Replay) | 66.4 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.6 KB |
| CDN Bundle - uncompressed | 70.86 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 97.59 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 207.25 KB |
| @sentry/nextjs (client) | 33.7 KB |
| @sentry/sveltekit (client) | 31.96 KB |
| @sentry/node | 153.46 KB |
This is the first beta release of Sentry JavaScript SDK v8. With this release, there are no more planned breaking changes for the v8 cycle.
This is the first beta release of Sentry JavaScript SDK v8. With this release, there are no more planned breaking changes for the v8 cycle.
Read the in-depth migration guide to find out how to address any breaking changes in your code. All
deprecations from the v7 cycle, with the exception of getCurrentHub(), have been removed and can no longer be used in v8.
The Sentry JavaScript SDK v8 now supports Node.js 14.8.0 or higher. This applies to @sentry/node and all of our
node-based server-side sdks (@sentry/nextjs, @sentry/remix, etc.).
The browser SDKs now require ES2018+ compatible browsers. New minimum browser versions:
For more details, please see the version support section in migration guide.
The following packages will no longer be published
Initializing the SDKs on the server-side has been simplified. See more details in our migration docs about initializing the SDK in v8.
The API around performance monitoring and tracing has been vastly improved, and we've added support for more integrations out of the box.
Because execution context isolation in browser environments does not work reliably, we deciced to keep a flat span hierarchy by default in v8.
addTracingExtensions (#11579)Instead of calling Sentry.addTracingExtensions() if you want to use performance in a browser SDK without using
browserTracingIntegration(), you should now call Sentry.registerSpanErrorInstrumentation().
suppressTracing (#11468)You can use the new suppressTracing API to ensure a given callback will not generate any spans:
return Sentry.suppressTracing(() => {
// Ensure this fetch call does not generate a span
return fetch('/my-url');
});
import and loader (#11498)We renamed the loader hooks for better clarity:
# For Node.js <= 18.18.2
node --loader=@sentry/node/loader app.js
# For Node.js >= 18.19.0
node --import=@sentry/node/import app.js
onUncaughtException handlers are registered in
onUncaughtExceptionIntegration (#11532)In v8, we will no longer exit the node process by default if other uncaught exception handlers have been registered by the user.
We improved the way we keep the transaction name for error events, even when spans are not sampled or performance is disabled.
transactionName when handling request (#11447)transactionName when handling request (#11448)transactionName when creating router span (#11476)getCurrentHub from AsyncContextStrategy (#11581)getGlobalHub export (#11565)Hub class export (#11560)getCurrentHub shim to core as getCurrentHubShim (#11537)rewriteFramesIntegration in browser (#11535)getRequestSpanData (#11508)OPTIONS and HEAD requests. (#11149)tunnelRoute matching logic for hybrid cloud (#11576)| Path | Size |
|---|---|
| @sentry/browser | 22.16 KB |
| @sentry/browser (incl. Tracing) | 31.74 KB |
| @sentry/browser (incl. Tracing, Replay) | 67.05 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 60.47 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 70.88 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 80.78 KB |
| @sentry/browser (incl. Feedback) | 35.71 KB |
| @sentry/browser (incl. Feedback, Feedback Modal) | 35.71 KB |
| @sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) | 37.74 KB |
| @sentry/browser (incl. sendFeedback) | 26.95 KB |
| @sentry/react | 24.84 KB |
| @sentry/react (incl. Tracing) | 34.64 KB |
| @sentry/vue | 25.72 KB |
| @sentry/vue (incl. Tracing) | 33.45 KB |
| @sentry/svelte | 22.28 KB |
| CDN Bundle | 24.47 KB |
| CDN Bundle (incl. Tracing) | 32.97 KB |
| CDN Bundle (incl. Tracing, Replay) | 66.59 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 82.8 KB |
| CDN Bundle - uncompressed | 72.9 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 98.89 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 208.55 KB |
| @sentry/nextjs (client) | 34.01 KB |
| @sentry/sveltekit (client) | 32.25 KB |
| @sentry/node | 120.17 KB |
This is the eighth alpha release of Sentry JavaScript SDK v8, which includes a variety of breaking changes.
This is the eighth alpha release of Sentry JavaScript SDK v8, which includes a variety of breaking changes.
Read the in-depth migration guide to find out how to address any breaking changes in your code.
A big part of the browser-runtime specific exports of the internal @sentry/utils package were moved into a new package
@sentry-internal/browser-utils. If you imported any API from @sentry/utils (which is generally not recommended but
necessary for some workarounds), please check that your import statements still point to existing exports after
upgrading.
When using ESM, it is necessary to use a "loader" to be able to instrument certain third-party packages and Node.js API. The server-side SDKs now ship with a set of ESM loader hooks, that should be used when using ESM. Use them as follows:
# For Node.js <= 18.18.2
node --experimental-loader=@sentry/node/hook your-app.js
# For Node.js >= 18.19.0
node --import=@sentry/node/register your-app.js
Please note that due to an upstream bug, these loader hooks will currently crash or simply not work. We are planning to fix this in upcoming versions of the SDK - definitely before a stable version 8 release.
The Sentry SDK now exports integrations and error middlewares for Koa (koaIntegration(), setupKoaErrorHandler()) and
NestJS (setupNestErrorHandler()) that can be used to instrument your Koa and NestJS applications with error
monitoring.
beforeSend and beforeSendTransaction breaking changes (#11354)node package (#11322)span.startChild() (#11376)addRequestDataToTransaction util (#11369)args on HandlerDataXhr (#11373)getGlobalObject utility method (#11372)metadata on transaction (#11397)pushScope, popScope, isOlderThan, shouldSendDefaultPii from hub (#11404)shouldCreateSpanForRequest from vercel edge options (#11371)_reportAllChanges option (#11393)scope.getTransaction() (#11365)trpcMiddleware back to serverside SDKs (#11374)transaction.measurements (#11398)getFeedback utility to get typed feedback instance (#11331)options and head requests (#11467)transactionName when resolving route (#11420)rrweb to 2.12.0 (#11314)transactionName when pageload route name is updated (#11406)globalThis (#11351)transactionName when resolving a route (#11423).__sentry_transaction (#11346)| Path | Size |
|---|---|
| @sentry/browser (incl. Tracing, Replay, Feedback) | 75.65 KB |
| @sentry/browser (incl. Tracing, Replay) | 66.86 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 70.73 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 60.44 KB |
| @sentry/browser (incl. Tracing) | 31.75 KB |
| @sentry/browser (incl. browserTracingIntegration) | 31.75 KB |
| @sentry/browser (incl. feedbackIntegration) | 30.88 KB |
| @sentry/browser (incl. feedbackModalIntegration) | 30.9 KB |
| @sentry/browser (incl. feedbackScreenshotIntegration) | 30.9 KB |
| @sentry/browser (incl. sendFeedback) | 26.89 KB |
| @sentry/browser | 22.1 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 71.27 KB |
| CDN Bundle (incl. Tracing, Replay) | 66.03 KB |
| CDN Bundle (incl. Tracing) | 32.33 KB |
| CDN Bundle | 23.76 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 205.79 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 96.4 KB |
| CDN Bundle - uncompressed | 70.17 KB |
| @sentry/react (incl. Tracing, Replay) | 66.99 KB |
| @sentry/react | 22.12 KB |
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →