Packages

@sentry/utils

8.55.2 · 28 Apr 2026MIT10.5M / weekRepositoryHomepagenpmAtom feed

Your version

8.40.0

22 Nov 2024Where it was published

8.55.2 is the newest release of 8.x.

In short

4 deprecated5 new4 fixed

  • deprecated

    core: Deprecate debugIntegration and sessionTimingIntegration

  • deprecated

    nestjs: Deprecate @WithSentry in favor of @SentryExceptionCaptured

  • deprecated

    nestjs: Deprecate SentryTracingInterceptor, SentryService, SentryGlobalGenericFilter, SentryGlobalGraphQLFilter

  • deprecated

    node: Deprecate nestIntegration and setupNestErrorHandler in favor of using @sentry/nestjs

Release note

Important Changes

  • angular: Support Angular 19

    The @sentry/angular SDK can now be used with Angular 19. If you're upgrading to the new Angular version, you might want to migrate from the now deprecated APP_INITIALIZER token to provideAppInitializer.
    In this case, change the Sentry TraceService initialization in app.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);
        }),
      ],
    };
  • deprecated

    core: Deprecate debugIntegration and sessionTimingIntegration

    The debugIntegration was deprecated and will be removed in the next major version of the SDK.
    To log outgoing events, use Hook Options (beforeSend, beforeSendTransaction, ...).

    The sessionTimingIntegration was deprecated and will be removed in the next major version of the SDK.
    To capture session durations alongside events, use Context (Sentry.setContext()).

  • deprecated

    nestjs: Deprecate @WithSentry in favor of @SentryExceptionCaptured

    The @WithSentry decorator was deprecated. Use @SentryExceptionCaptured instead. This is a simple renaming and functionality stays identical.

  • deprecated

    nestjs: Deprecate SentryTracingInterceptor, SentryService, SentryGlobalGenericFilter, SentryGlobalGraphQLFilter

    The SentryTracingInterceptor was deprecated. If you are using @sentry/nestjs you can safely remove any references to the SentryTracingInterceptor. If you are using another package migrate to @sentry/nestjs and remove the SentryTracingInterceptor afterwards.

    The SentryService was deprecated and its functionality was added to Sentry.init. If you are using @sentry/nestjs you can safely remove any references to the SentryService. If you are using another package migrate to @sentry/nestjs and remove the SentryService afterwards.

    The SentryGlobalGenericFilter was deprecated. Use the SentryGlobalFilter instead which is a drop-in replacement.

    The SentryGlobalGraphQLFilter was deprecated. Use the SentryGlobalFilter instead which is a drop-in replacement.

  • deprecated

    node: Deprecate nestIntegration and setupNestErrorHandler in favor of using @sentry/nestjs

    The nestIntegration and setupNestErrorHandler functions from @sentry/node were deprecated and will be removed in the next major version of the SDK. If you're using @sentry/node in a NestJS application, we recommend switching to our new dedicated @sentry/nestjs package.

Other Changes

  • browser: Send additional LCP timing info

  • replay: Clear event buffer when full and in buffer mode

  • core: Ensure normalizedRequest on sdkProcessingMetadata is merged

  • core: Hoist everything from @sentry/utils into @sentry/core

  • core: Do not throw when trying to fill readonly properties

  • feedback: Fix __self and __source attributes on feedback nodes

  • feedback: Fix non-wrapping form title

  • nextjs: Update check for not found navigation error

Bundle size

PathSize
@sentry/browser22.88 KB
@sentry/browser - with treeshaking flags21.57 KB
@sentry/browser (incl. Tracing)35.46 KB
@sentry/browser (incl. Tracing, Replay)72.22 KB
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags62.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/react25.58 KB
@sentry/react (incl. Tracing)38.32 KB
@sentry/vue27.04 KB
@sentry/vue (incl. Tracing)37.27 KB
@sentry/svelte23.03 KB
CDN Bundle24.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 - uncompressed70.9 KB
CDN Bundle (incl. Tracing) - uncompressed110.25 KB
CDN Bundle (incl. Tracing, Replay) - uncompressed223.05 KB
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed236.27 KB
@sentry/nextjs (client)38.42 KB
@sentry/sveltekit (client)35.97 KB
@sentry/node134.48 KB
@sentry/node - without tracing96.32 KB
@sentry/aws-serverless106.57 KB