Releases: getsentry/sentry-javascript
Releases · getsentry/sentry-javascript
7.87.0
- feat: Add top level
getCurrentScope()
method (#9800)
- feat(replay): Bump
rrweb
to 2.5.0 (#9803)
- feat(replay): Capture hydration error breadcrumb (#9759)
- feat(types): Add profile envelope types (#9798)
- fix(astro): Avoid RegExp creation during route interpolation (#9815)
- fix(browser): Avoid importing from
./exports
(#9775)
- fix(nextjs): Catch rejecting flushes (#9811)
- fix(nextjs): Fix devserver CORS blockage when
assetPrefix
is defined (#9766)
- fix(node): Capture errors in tRPC middleware (#9782)
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) |
75.04 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
66.38 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
59.99 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.13 KB |
@sentry/browser (incl. Feedback) - Webpack (gzipped) |
29.74 KB |
@sentry/browser - Webpack (gzipped) |
21.39 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) |
71.61 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
63.33 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.67 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.72 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
199.58 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
89.94 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
64.92 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
32.34 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
66.75 KB |
@sentry/react - Webpack (gzipped) |
21.44 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
83.48 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.23 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.19 KB |
7.86.0
- feat(core): Use SDK_VERSION for hub API version (#9732)
- feat(nextjs): Emit warning if your app directory doesn't have a global-error.js file (#9753)
- feat(node): Add cloudflare pages commit sha (#9751)
- feat(remix): Bump @sentry/cli to 2.22.3 (#9741)
- fix(nextjs): Don't accidentally trigger static generation bailout (#9749)
- fix(node): Guard
process.env.NODE_ENV
access in Spotlight integration (#9748)
- fix(utils): Fix XHR instrumentation early return (#9770)
- ref(remix): Rework Error Handling (#9725)
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) |
74.66 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
66 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
59.6 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.13 KB |
@sentry/browser (incl. Feedback) - Webpack (gzipped) |
29.74 KB |
@sentry/browser - Webpack (gzipped) |
21.39 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) |
71.25 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
62.97 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.65 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.71 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
198.35 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
89.78 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
64.76 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
32.3 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
66.36 KB |
@sentry/react - Webpack (gzipped) |
21.43 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
83.09 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.23 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.19 KB |
7.85.0
- feat(core): Add
addEventProcessor
method (#9554)
- feat(crons): Add interface for heartbeat checkin (#9706)
- feat(feedback): Include Feedback package in browser SDK (#9586)
- fix(astro): Isolate request instrumentation in middleware (#9709)
- fix(replay): Capture JSON XHR response bodies (#9623)
- ref(feedback): Change form
box-shadow
to use CSS var (#9630)
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) |
74.63 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
65.99 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
59.59 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.12 KB |
@sentry/browser (incl. Feedback) - Webpack (gzipped) |
29.72 KB |
@sentry/browser - Webpack (gzipped) |
21.38 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) |
71.22 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
62.97 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.62 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.7 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
198.31 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
89.73 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
64.71 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
32.29 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
66.35 KB |
@sentry/react - Webpack (gzipped) |
21.42 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
83.07 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.21 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.17 KB |
7.84.0
Important Changes
- ref(nextjs): Set
automaticVercelMonitors
to be false
by default (#9697)
From this version onwards the default for the automaticVercelMonitors
option in the Next.js SDK is set to false.
Previously, if you made use of Vercel Crons the SDK automatically instrumented the relevant routes to create Sentry monitors.
Because this feature will soon be generally available, we are now flipping the default to avoid situations where quota is used unexpectedly.
If you want to continue using this feature, make sure to set the automaticVercelMonitors
flag to true
in your next.config.js
Sentry settings.
Other Changes
- chore(astro): Add 4.0.0 preview versions to
astro
peer dependency range (#9696)
- feat(metrics): Add interfaces for metrics (#9698)
- feat(web-vitals): Vendor in INP from web-vitals library (#9690)
- fix(astro): Avoid adding the Sentry Vite plugin in dev mode (#9688)
- fix(nextjs): Don't match files called
middleware
in node_modules (#9686)
- fix(remix): Don't capture error responses that are not 5xx on Remix v2. (#9655)
- fix(tracing): Don't attach resource size if null (#9669)
- fix(utils): Regex match port to stop accidental replace (#9676)
- fix(utils): Try catch new URL when extracting query params (#9675)
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
65.86 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
59.46 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.12 KB |
@sentry/browser - Webpack (gzipped) |
21.38 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
62.72 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.53 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.6 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
197.46 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
89.32 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
64.29 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
32.22 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
66.25 KB |
@sentry/react - Webpack (gzipped) |
21.42 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
82.96 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.21 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.19 KB |
7.83.0
- chore(astro): Allow Astro 4.0 in peer dependencies (#9683)
- feat(astro): Add
assets
option to source maps upload options (#9668)
- feat(react): Support
exactOptionalPropertyTypes
on ErrorBoundary
(#9098)
- fix: Don't depend on browser types in
types
(#9682)
- fix(astro): Configure sourcemap assets directory for Vercel adapter (#9665)
- fix(remix): Check the error data before spreading. (#9664)
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
65.86 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
59.46 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.11 KB |
@sentry/browser - Webpack (gzipped) |
21.38 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
62.71 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.52 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.6 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
197.46 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
89.32 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
64.29 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
32.21 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
66.24 KB |
@sentry/react - Webpack (gzipped) |
21.42 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
82.96 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.21 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.19 KB |
7.82.0
- feat(astro): Automatically add Sentry middleware in Astro integration (#9532)
- feat(core): Add optional
setup
hook to integrations (#9556)
- feat(core): Add top level
getClient()
method (#9638)
- feat(core): Allow to pass
mechanism
as event hint (#9590)
- feat(core): Allow to use
continueTrace
without callback (#9615)
- feat(feedback): Add onClose callback to showReportDialog (#9433) (#9550)
- feat(nextjs): Add request data to all edge-capable functionalities (#9636)
- feat(node): Add Spotlight option to Node SDK (#9629)
- feat(utils): Refactor
addInstrumentationHandler
to dedicated methods (#9542)
- fix: Make full url customizable for Spotlight (#9652)
- fix(astro): Remove Auth Token existence check (#9651)
- fix(nextjs): Fix middleware detection logic (#9637)
- fix(remix): Skip capturing aborted requests (#9659)
- fix(replay): Add
BODY_PARSE_ERROR
warning & time out fetch response load (#9622)
- fix(tracing): Filter out invalid resource sizes (#9641)
- ref: Hoist
RequestData
integration to @sentry/core
(#9597)
- ref(feedback): Rename onDialog* to onForm*, remove onActorClick (#9625)
Work in this release contributed by @arya-s. Thank you for your contribution!
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
66.02 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
56.21 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.19 KB |
@sentry/browser - Webpack (gzipped) |
21.4 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
62.65 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.47 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.55 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
197.27 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
89.15 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
64.12 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
32.13 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
66.43 KB |
@sentry/react - Webpack (gzipped) |
21.45 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
83.16 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.32 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.19 KB |
7.81.1
- fix(astro): Remove method from span op (#9603)
- fix(deno): Make sure files get published (#9611)
- fix(nextjs): Use
globalThis
instead of global
in edge runtime (#9612)
- fix(node): Improve error handling and shutdown handling for ANR (#9548)
- fix(tracing-internal): Fix case when originalURL contain query params (#9531)
Work in this release contributed by @powerfulyang, @LubomirIgonda1, @joshkel, and @alexgleason. Thank you for your contributions!
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
65.61 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
55.72 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.01 KB |
@sentry/browser - Webpack (gzipped) |
21.32 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
62.03 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.13 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.26 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
195.71 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
88.38 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
63.34 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
31.85 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
65.92 KB |
@sentry/react - Webpack (gzipped) |
21.36 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
82.66 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.15 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.12 KB |
7.81.0
Important Changes
- feat(nextjs): Add instrumentation utility for server actions (#9553)
This release adds a utility function withServerActionInstrumentation
to the @sentry/nextjs
SDK for instrumenting your Next.js server actions with error and performance monitoring.
You can optionally pass form data and headers to record them, and configure the wrapper to record the Server Action responses:
import * as Sentry from "@sentry/nextjs";
import { headers } from "next/headers";
export default function ServerComponent() {
async function myServerAction(formData: FormData) {
"use server";
return await Sentry.withServerActionInstrumentation(
"myServerAction", // The name you want to associate this Server Action with in Sentry
{
formData, // Optionally pass in the form data
headers: headers(), // Optionally pass in headers
recordResponse: true, // Optionally record the server action response
},
async () => {
// ... Your Server Action code
return { name: "John Doe" };
}
);
}
return (
<form action={myServerAction}>
<input type="text" name="some-input-value" />
<button type="submit">Run Action</button>
</form>
);
}
Other Changes
- docs(feedback): Example docs on
sendFeedback
(#9560)
- feat(feedback): Add
level
and remove breadcrumbs from feedback event (#9533)
- feat(vercel-edge): Add fetch instrumentation (#9504)
- feat(vue): Support Vue 3 lifecycle hooks in mixin options (#9578)
- fix(nextjs): Download CLI binary if it can't be found (#9584)
- ref: Deprecate
extractTraceParentData
from @sentry/core
& downstream packages (#9158)
- ref(replay): Add further logging to network body parsing (#9566)
Work in this release contributed by @snoozbuster. Thank you for your contribution!
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
65.53 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
55.67 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.01 KB |
@sentry/browser - Webpack (gzipped) |
21.32 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
61.99 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.13 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.26 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
195.53 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
88.38 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
63.34 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
31.85 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
65.84 KB |
@sentry/react - Webpack (gzipped) |
21.36 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
82.58 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.15 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.08 KB |
7.80.2-alpha.1
No longer will prioritize the component names for replays, as this will break searching by CSS selector.
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
65.47 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
55.68 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.03 KB |
@sentry/browser - Webpack (gzipped) |
21.34 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
62 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.14 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.29 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
195.54 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
88.43 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
63.41 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
31.86 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
65.79 KB |
@sentry/react - Webpack (gzipped) |
21.39 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
82.53 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.17 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.04 KB |
7.80.2-alpha.0
- feat(utils): Prioritize Component name attributes over HTML Tree String (#9496)
Bundle size 📦
Path |
Size |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) |
65.46 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) |
55.68 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) |
31.03 KB |
@sentry/browser - Webpack (gzipped) |
21.34 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) |
62 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) |
29.14 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) |
21.29 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) |
195.53 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) |
88.43 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) |
63.41 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) |
31.86 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) |
65.81 KB |
@sentry/react - Webpack (gzipped) |
21.39 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) |
82.53 KB |
@sentry/nextjs Client - Webpack (gzipped) |
48.17 KB |
@sentry-internal/feedback - Webpack (gzipped) |
16.04 KB |