Releases: getsentry/sentry-javascript
7.60.1
- 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 |
7.60.0
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 |
7.59.3
- 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 |
7.59.2
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 |
7.59.1
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 |
7.59.0
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 |
7.59.0-beta.1
- 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 |
7.59.0-beta.0
- 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 |
7.58.1
- fix(node): Set propagation context even when tracingOptions are not defined (#8517)
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.58 KB |
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) | 30.11 KB |
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) | 28.16 KB |
@sentry/replay ES6 CDN Bundle (gzipped + minified) | 49.42 KB |
@sentry/replay - Webpack (gzipped + minified) | 43.1 KB |
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) | 69.51 KB |
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) | 61.82 KB |
7.58.0
Important Changes
- Performance Monitoring not required for Distributed Tracing
This release adds support for distributed tracing without requiring performance monitoring to be active on the JavaScript SDKs (browser and node). This means even if there is no sampled transaction/span, the SDK will still propagate traces to downstream services. Distributed Tracing can be configured with the tracePropagationTargets
option, which controls what requests to attach the sentry-trace
and baggage
HTTP headers to (which is what propagates tracing information).
Sentry.init({
tracePropagationTargets: ["third-party-site.com", /^https:\/\/yourserver\.io\/api/],
});
-
feat(tracing): Add tracing without performance to browser and client Sveltekit (#8458)
-
feat(node): Add tracing without performance to Node http integration (#8450)
-
feat(node): Add tracing without performance to Node Undici (#8449)
-
feat(node): Populate propagation context using env variables (#8422)
-
feat(core): Support
AggregateErrors
inLinkedErrors
integration (#8463)
This release adds support for AggregateErrors
. AggregateErrors are considered as Exception Groups by Sentry, and will be visualized and grouped differently. See the Exception Groups Changelog Post for more details.
Exception Group support requires Self-Hosted Sentry version 23.5.1 or newer.
- feat(replay): Add a new option
networkDetailDenyUrls
(#8439)
This release adds a new option networkDetailDenyUrls
to the Replay
integration. This option allows you to specify a list of URLs that should not be captured by the Replay
integration, which can be used alongside the existing networkDetailAllowUrls
for finely grained control of which URLs should have network details captured.
Sentry.init({
integrations: [
new Sentry.Integrations.Replay({
networkDetailDenyUrls: [/^http:\/\/example.com\/test$/],
}),
],
});
Other Changes
- feat(core): Add helpers to get module metadata from injected code (#8438)
- feat(core): Add sampling decision to trace envelope header (#8483)
- feat(node): Add trace context to checkin (#8503)
- feat(node): Export
getModule
for Electron SDK (#8488) - feat(types): Allow
user.id
to be a number (#8330) - fix(browser): Set anonymous
crossorigin
attribute on report dialog (#8424) - fix(nextjs): Ignore
tunnelRoute
when doing static exports (#8471) - fix(nextjs): Use
basePath
option fortunnelRoute
(#8454) - fix(node): Apply source context to linked errors even when it is uncached (#8453)
- fix(node): report errorMiddleware errors as unhandled (#8048)
- fix(react): Add support for
basename
option ofcreateBrowserRouter
(#8457) - fix(remix): Add explicit
@sentry/node
exports. (#8509) - fix(remix): Don't inject trace/baggage to
redirect
andcatch
responses (#8467) - fix(replay): Adjust slow/multi click handling (#8380)
Work in this release contributed by @mrdulin, @donaldxdonald & @ziyad-elabid-nw. Thank you for your contributions!
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.58 KB |
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) | 30.11 KB |
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) | 28.16 KB |
@sentry/replay ES6 CDN Bundle (gzipped + minified) | 49.42 KB |
@sentry/replay - Webpack (gzipped + minified) | 43.1 KB |
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) | 69.51 KB |
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) | 61.82 KB |