Releases: getsentry/sentry-javascript
7.114.0
Important Changes
- fix(browser/v7): Continuously record CLS (#11935)
This release fixes a bug that caused the cumulative layout shift (CLS) web vital not to be reported in a majority of the
cases where it should have been reported. With this change, the CLS web vital should now always be reported for
pageloads with layout shift. If a pageload did not have layout shift, no CLS web vital should be reported.
Please note that upgrading the SDK to this version may cause data in your dashboards to drastically change.
Other Changes
8.0.0-rc.1
This release contains no changes and was done for technical purposes. This version is considered stable.
For the sake of completeness this changelog entry includes the changes from the previous release candidate:
We recommend to read the detailed migration guide in
the docs.
Important Changes
- feat(node): Support hapi v21 & fix E2E test (#11906)
We now support hapi v21 and added tests for it.
- feat(node): Warn if ESM mode is detected (#11914)
When running Sentry in ESM mode, we will now warn you that this is not supported as of now. We are working on ensuring
support with ESM builds.
Other Changes
- feat(feedback): Iterate on css for better scrolling & resizing when browser is small (#11893)
- fix(node): Ensure prisma integration creates valid DB spans (#11908)
- fix(node): Include loader hook files in package.json (#11911)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.65 KB |
@sentry/browser (incl. Tracing) | 32.67 KB |
@sentry/browser (incl. Tracing, Replay) | 68.01 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.41 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.05 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.15 KB |
@sentry/browser (incl. Feedback) | 37.66 KB |
@sentry/browser (incl. sendFeedback) | 26.21 KB |
@sentry/browser (incl. FeedbackAsync) | 30.84 KB |
@sentry/react | 24.33 KB |
@sentry/react (incl. Tracing) | 35.63 KB |
@sentry/vue | 25.48 KB |
@sentry/vue (incl. Tracing) | 34.46 KB |
@sentry/svelte | 21.78 KB |
CDN Bundle | 24.13 KB |
CDN Bundle (incl. Tracing) | 34.04 KB |
CDN Bundle (incl. Tracing, Replay) | 67.71 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 72.92 KB |
CDN Bundle - uncompressed | 70.99 KB |
CDN Bundle (incl. Tracing) - uncompressed | 100.98 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.58 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 223.87 KB |
@sentry/nextjs (client) | 34.86 KB |
@sentry/sveltekit (client) | 33.23 KB |
@sentry/node | 146.27 KB |
8.0.0-beta.6
This beta release contains various bugfixes and improvements for the v8 beta cycle.
- feat: Add
tunnel
support to multiplexed transport (#11806) - feat: Export
spanToBaggageHeader
utility (#11881) - feat(browser): Disable standalone
http.client
spans (#11879) - feat(ember): Update ember dependencies (#11753)
- feat(fedback): Convert CDN bundles to use async feedback for lower bundle sizes (#11791)
- feat(feedback): Add
captureFeedback
method (#11428) - feat(feedback): Have screenshot by default (#11839)
- feat(integrations): Add zod integration (#11144)
- feat(ioredis): Add integration for
ioredis
(#11856) - feat(nextjs): Add transaction name to scope of server component (#11850)
- feat(nextjs): Be smarter in warning about old ways of init configuration (#11882)
- feat(nextjs): Set transaction names on scope for route handlers and generation functions (#11869)
- feat(node): Support Node 22 (#11871)
- fix(angular): Run tracing calls outside Angular (#11748)
- fix(feedback): Be consistent about whether screenshot should and can render (#11859)
- fix(nestjs): Ensure Nest.js interceptor works with non-http context (#11880)
- fix(node): Fix nest.js error handler (#11874)
- fix(react): Fix react router v4/v5 instrumentation (#11855)
- ref: Add geo location types (#11847)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.65 KB |
@sentry/browser (incl. Tracing) | 32.67 KB |
@sentry/browser (incl. Tracing, Replay) | 68.01 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.41 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.05 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.18 KB |
@sentry/browser (incl. Feedback) | 37.69 KB |
@sentry/browser (incl. sendFeedback) | 26.21 KB |
@sentry/browser (incl. FeedbackAsync) | 30.77 KB |
@sentry/react | 24.33 KB |
@sentry/react (incl. Tracing) | 35.63 KB |
@sentry/vue | 25.48 KB |
@sentry/vue (incl. Tracing) | 34.46 KB |
@sentry/svelte | 21.78 KB |
CDN Bundle | 24.14 KB |
CDN Bundle (incl. Tracing) | 34.04 KB |
CDN Bundle (incl. Tracing, Replay) | 67.71 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 72.83 KB |
CDN Bundle - uncompressed | 70.99 KB |
CDN Bundle (incl. Tracing) - uncompressed | 100.98 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.59 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 223.64 KB |
@sentry/nextjs (client) | 34.86 KB |
@sentry/sveltekit (client) | 33.23 KB |
@sentry/node | 145.71 KB |
7.113.0
Important Changes
- feat(node): Support Node 22 (#11754)
This release adds support for Node 22! 🎉
It also adds prebuilt-binaries for Node 22 to @sentry/profiling-node
.
Other Changes
8.0.0-beta.5
This beta release contains various bugfixes and improvements for the v8 beta cycle.
Important Changes
- feat(svelte): Add Svelte 5 support (#11807)
We now officially support Svelte 5.
- feat(browser): Send standalone fetch and XHR spans if there's no active parent span (#11783)
Starting with this version, spans for outgoing fetch/xhr requests will be captured even if no pageload/navigation span
is ongoing. This means that you will be able to have a more complete trace, especially for web applications that make a
lot of HTTP requests on longer lived pages.
Other Changes
- feat(astro): Add
transactionName
to isolation scope for requests (#11786) - feat(browser): Create standalone INP spans via
startInactiveSpan
(#11788) - feat(core): Add
trace
envelope header to span envelope (#11699) - feat(core): Add options to start standalone (segment) spans via
start*Span
APIs (#11696) - feat(core): Set default scope for BaseClient methods (#11775)
- feat(core): Wrap cron
withMonitor
callback inwithIsolationScope
(#11797) - feat(feedback): New feedback button design (#11641)
- feat(nextjs): Add
transactionName
to isolation scope for Next.js server side features (#11782) - feat(nextjs): Mute webpack warnings about critical dependencies inside
@opentelemetry/instrumentation
(#11810) - feat(node): Upgrade @prisma/instrumentation to 5.13.0 (#11779)
- feat(react): type error as unknown in ErrorBoundary (#11819)
- feat(remix): Add
wrapHandleErrorWithSentry
(#10370) - feat(remix): Set
formData
asaction
span data. (#10836) - feat(remix): Update scope
transactionName
for Remix server features (#11784) - fix(angular): Call
showReportDialog
in root context (#11703) - fix(core): Capture only failed console.assert calls (#11799)
- fix(ember): Ensure unnecessary spans are avoided (#11846)
- fix(feedback): Clarify the difference between createWidget and create Form in the feedback public api (#11838)
- fix(feedback): Fix feedback type (#11787)
- fix(feedback): Vendor preact into bundle (#11845)
- fix(remix): Rethrow
loader
,action
anddocumentRequest
errors (#11793) - ref: Always return an immediately generated event ID from
captureException()
,captureMessage()
, and
captureEvent()
(#11805) - ref(core): Remove transaction name extraction from
requestDataIntegration
(#11513) - ref(svelte): Use
onlyIfParent
for recording component update spans (#11809)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.64 KB |
@sentry/browser (incl. Tracing) | 32.68 KB |
@sentry/browser (incl. Tracing, Replay) | 68.03 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.43 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.07 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.21 KB |
@sentry/browser (incl. Feedback) | 37.77 KB |
@sentry/browser (incl. sendFeedback) | 26.43 KB |
@sentry/browser (incl. FeedbackAsync) | 30.9 KB |
@sentry/react | 24.33 KB |
@sentry/react (incl. Tracing) | 35.64 KB |
@sentry/vue | 25.47 KB |
@sentry/vue (incl. Tracing) | 34.47 KB |
@sentry/svelte | 21.77 KB |
CDN Bundle | 23.95 KB |
CDN Bundle (incl. Tracing) | 33.98 KB |
CDN Bundle (incl. Tracing, Replay) | 67.67 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 83.58 KB |
CDN Bundle - uncompressed | 70.58 KB |
CDN Bundle (incl. Tracing) - uncompressed | 100.94 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.55 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 257.02 KB |
@sentry/nextjs (client) | 34.86 KB |
@sentry/sveltekit (client) | 33.24 KB |
@sentry/node | 138.47 KB |
8.0.0-beta.4
Important Changes
- feat(browser): Add INP support for v8 (#11650)
INP web vital support was now forward-ported to version 8. Recording of INP data is enabled by default.
- feat(core): Increase default transport buffer size from 30 to 64 (#11764)
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()
.
- feat(replay): Add "maxCanvasSize" option for replay canvases (#11617)
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.
Other Changes
- deps: Downgrade
@opentelemetry/instrumentation-http
to0.48.0
(#11745) - deps(nextjs): Remove unnecessary and faulty
@opentelemetry/api
dependency from Next.js package (#11717) - feat(aws): Add OTEL based integrations (#11548)
- feat(core): Ensure trace context only includes relevant data (#11713)
- feat(deps): Bump @opentelemetry/instrumentation-fastify from 0.33.0 to 0.35.0 (#11690)
- feat(deps): Bump @opentelemetry/instrumentation-graphql from 0.37.0 to 0.39.0 (#11692)
- feat(deps): Bump @opentelemetry/instrumentation-http from 0.48.0 to 0.50.0 (#11725)
- feat(deps): Bump @opentelemetry/instrumentation-mongoose from 0.35.0 to 0.37.0 (#11693)
- feat(deps): Bump @opentelemetry/instrumentation-mysql2 from 0.35.0 to 0.37.0 (#11726)
- feat(deps): Bump @opentelemetry/instrumentation-nestjs-core from 0.34.0 to 0.36.0 (#11727)
- feat(deps): Bump @opentelemetry/sdk-metrics from 1.21.0 to 1.23.0 (#11695)
- feat(deps): Bump @prisma/instrumentation from 5.9.0 to 5.12.1 (#11724)
- feat(feedback): Create async bundles and code to resolve helper integrations (#11621)
- feat(nextjs): Sample out low-quality spans on older Next.js versions (#11722)
- feat(opentelemetry): Support new http method attribute (#11756)
- feat(opentelemetry): Use rest args for addOpenTelemetryInstrumentation (#11721)
- feat(replay): Upgrade rrweb packages to 2.15.0 (#11736)
- fix(browser): Ensure
lazyLoadIntegration
works in NPM mode (#11673) - fix(browser): Set custom sentry source correctly (#11735)
- fix(ember): Do not create rendering spans without transaction (#11749)
- fix(serverless): Check if cloud event callback is a function (#9044) (#11701)
- ref(nextjs): Remove unnecessary logic to filter symbolification/sentry spans (#11714)
Bundle size 📦
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 |
7.112.2
7.112.1
7.112.0
Important Changes
- feat: Export pluggable integrations from SDK packages (#11723)
Instead of installing @sentry/integrations
, you can now import the pluggable integrations directly from your SDK
package:
// Before
import * as Sentry fromv '@sentry/browser';
import { dedupeIntegration } from '@sentry/integrations';
Sentry.init({
integrations: [dedupeIntegration()],
});
// After
import * as Sentry from '@sentry/browser';
Sentry.init({
integrations: [Sentry.dedupeIntegration()],
});
Note that only the functional integrations (e.g. xxxIntegration()
) are re-exported.
Other Changes
- feat(replay): Add "maxCanvasSize" option for replay canvases (#11732)
- fix(serverless): [v7] Check if cloud event callback is a function (#11734)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.72 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 71.69 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 75.91 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 65.32 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 35.62 KB |
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) | 35.5 KB |
@sentry/browser (incl. Feedback) - Webpack (gzipped) | 31.57 KB |
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) | 31.58 KB |
@sentry/browser - Webpack (gzipped) | 22.78 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 78.9 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.27 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.02 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 25.28 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 221.25 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.01 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 75.79 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.3 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 72.18 KB |
@sentry/react - Webpack (gzipped) | 22.81 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.01 KB |
@sentry/nextjs Client - Webpack (gzipped) | 54.15 KB |
@sentry-internal/feedback - Webpack (gzipped) | 17.32 KB |
8.0.0-beta.3
Important Changes
- feat(opentelemetry): Add
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.
- ref(core): Don't start transaction for trpc middleware (#11697)
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.
Other Changes
- feat(nextjs): Instrument outgoing http requests (#11685)
- feat(opentelemetry): Remove setupGlobalHub (#11668)
- fix: Missing ErrorEvent export are added to node, browser, bun, deno, vercel-edge sub-packages (#11649)
- fix(nextjs): Do not sample next spans if they have remote parent (#11680)
- fix(nextjs): Re-enable OTEL fetch instrumentation and disable Next.js fetch instrumentation (#11686)
- fix(node): Ensure DSC on envelope header uses root span (#11683)
- ref(browser): Streamline pageload span creation and scope handling (#11679)
- ref(core): Directly use endSession (#11669)
Bundle size 📦
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 |