8.40.0
Important Changes
-
feat(angular): Support Angular 19 (#14398)
The
@sentry/angularSDK can now be used with Angular 19. If you're upgrading to the new Angular version, you might want to migrate from the now deprecatedAPP_INITIALIZERtoken toprovideAppInitializer.
In this case, change the SentryTraceServiceinitialization inapp.config.ts:// Angular 18 export const appConfig: ApplicationConfig = { providers: [ // other providers { provide: TraceService, deps: [Router], }, { provide: APP_INITIALIZER, useFactory: () => () => {}, deps: [TraceService], multi: true, }, ], }; // Angular 19 export const appConfig: ApplicationConfig = { providers: [ // other providers { provide: TraceService, deps: [Router], }, provideAppInitializer(() => { inject(TraceService); }), ], };
-
feat(core): Deprecate
debugIntegrationandsessionTimingIntegration(#14363)The
debugIntegrationwas deprecated and will be removed in the next major version of the SDK.
To log outgoing events, use Hook Options (beforeSend,beforeSendTransaction, ...).The
sessionTimingIntegrationwas deprecated and will be removed in the next major version of the SDK.
To capture session durations alongside events, use Context (Sentry.setContext()). -
feat(nestjs): Deprecate
@WithSentryin favor of@SentryExceptionCaptured(#14323)The
@WithSentrydecorator was deprecated. Use@SentryExceptionCapturedinstead. This is a simple renaming and functionality stays identical. -
feat(nestjs): Deprecate
SentryTracingInterceptor,SentryService,SentryGlobalGenericFilter,SentryGlobalGraphQLFilter(#14371)The
SentryTracingInterceptorwas deprecated. If you are using@sentry/nestjsyou can safely remove any references to theSentryTracingInterceptor. If you are using another package migrate to@sentry/nestjsand remove theSentryTracingInterceptorafterwards.The
SentryServicewas deprecated and its functionality was added toSentry.init. If you are using@sentry/nestjsyou can safely remove any references to theSentryService. If you are using another package migrate to@sentry/nestjsand remove theSentryServiceafterwards.The
SentryGlobalGenericFilterwas deprecated. Use theSentryGlobalFilterinstead which is a drop-in replacement.The
SentryGlobalGraphQLFilterwas deprecated. Use theSentryGlobalFilterinstead which is a drop-in replacement. -
feat(node): Deprecate
nestIntegrationandsetupNestErrorHandlerin favor of using@sentry/nestjs(#14374)The
nestIntegrationandsetupNestErrorHandlerfunctions from@sentry/nodewere deprecated and will be removed in the next major version of the SDK. If you're using@sentry/nodein a NestJS application, we recommend switching to our new dedicated@sentry/nestjspackage.
Other Changes
- feat(browser): Send additional LCP timing info (#14372)
- feat(replay): Clear event buffer when full and in buffer mode (#14078)
- feat(core): Ensure
normalizedRequestonsdkProcessingMetadatais merged (#14315) - feat(core): Hoist everything from
@sentry/utilsinto@sentry/core(#14382) - fix(core): Do not throw when trying to fill readonly properties (#14402)
- fix(feedback): Fix
__selfand__sourceattributes on feedback nodes (#14356) - fix(feedback): Fix non-wrapping form title (#14355)
- fix(nextjs): Update check for not found navigation error (#14378)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 22.88 KB |
| @sentry/browser - with treeshaking flags | 21.57 KB |
| @sentry/browser (incl. Tracing) | 35.46 KB |
| @sentry/browser (incl. Tracing, Replay) | 72.22 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 62.53 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 76.52 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 89.02 KB |
| @sentry/browser (incl. Feedback) | 39.63 KB |
| @sentry/browser (incl. sendFeedback) | 27.51 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.32 KB |
| @sentry/react | 25.58 KB |
| @sentry/react (incl. Tracing) | 38.32 KB |
| @sentry/vue | 27.04 KB |
| @sentry/vue (incl. Tracing) | 37.27 KB |
| @sentry/svelte | 23.03 KB |
| CDN Bundle | 24.04 KB |
| CDN Bundle (incl. Tracing) | 37.02 KB |
| CDN Bundle (incl. Tracing, Replay) | 71.81 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 77.16 KB |
| CDN Bundle - uncompressed | 70.9 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 110.25 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 223.05 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 236.27 KB |
| @sentry/nextjs (client) | 38.42 KB |
| @sentry/sveltekit (client) | 35.97 KB |
| @sentry/node | 134.48 KB |
| @sentry/node - without tracing | 96.32 KB |
| @sentry/aws-serverless | 106.57 KB |