|
10 | 10 |
|
11 | 11 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
|
12 | 12 |
|
| 13 | +## 8.40.0 |
| 14 | + |
| 15 | +### Important Changes |
| 16 | + |
| 17 | +- **feat(angular): Support Angular 19 ([#14398](https://github.com/getsentry/sentry-javascript/pull/14398))** |
| 18 | + |
| 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`. |
| 20 | + In this case, change the Sentry `TraceService` initialization in `app.config.ts`: |
| 21 | + |
| 22 | + ```ts |
| 23 | + // Angular 18 |
| 24 | + export const appConfig: ApplicationConfig = { |
| 25 | + providers: [ |
| 26 | + // other providers |
| 27 | + { |
| 28 | + provide: TraceService, |
| 29 | + deps: [Router], |
| 30 | + }, |
| 31 | + { |
| 32 | + provide: APP_INITIALIZER, |
| 33 | + useFactory: () => () => {}, |
| 34 | + deps: [TraceService], |
| 35 | + multi: true, |
| 36 | + }, |
| 37 | + ], |
| 38 | + }; |
| 39 | + |
| 40 | + // Angular 19 |
| 41 | + export const appConfig: ApplicationConfig = { |
| 42 | + providers: [ |
| 43 | + // other providers |
| 44 | + { |
| 45 | + provide: TraceService, |
| 46 | + deps: [Router], |
| 47 | + }, |
| 48 | + provideAppInitializer(() => { |
| 49 | + inject(TraceService); |
| 50 | + }), |
| 51 | + ], |
| 52 | + }; |
| 53 | + ``` |
| 54 | + |
| 55 | +- **feat(core): Deprecate `debugIntegration` and `sessionTimingIntegration` ([#14363](https://github.com/getsentry/sentry-javascript/pull/14363))** |
| 56 | + |
| 57 | + The `debugIntegration` was deprecated and will be removed in the next major version of the SDK. |
| 58 | + To log outgoing events, use [Hook Options](https://docs.sentry.io/platforms/javascript/configuration/options/#hooks) (`beforeSend`, `beforeSendTransaction`, ...). |
| 59 | + |
| 60 | + The `sessionTimingIntegration` was deprecated and will be removed in the next major version of the SDK. |
| 61 | + To capture session durations alongside events, use [Context](https://docs.sentry.io/platforms/javascript/enriching-events/context/) (`Sentry.setContext()`). |
| 62 | + |
| 63 | +- **feat(nestjs): Deprecate `@WithSentry` in favor of `@SentryExceptionCaptured` ([#14323](https://github.com/getsentry/sentry-javascript/pull/14323))** |
| 64 | + |
| 65 | + The `@WithSentry` decorator was deprecated. Use `@SentryExceptionCaptured` instead. This is a simple renaming and functionality stays identical. |
| 66 | + |
| 67 | +- **feat(nestjs): Deprecate `SentryTracingInterceptor`, `SentryService`, `SentryGlobalGenericFilter`, `SentryGlobalGraphQLFilter` ([#14371](https://github.com/getsentry/sentry-javascript/pull/14371))** |
| 68 | + |
| 69 | + 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. |
| 70 | + |
| 71 | + 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. |
| 72 | + |
| 73 | + The `SentryGlobalGenericFilter` was deprecated. Use the `SentryGlobalFilter` instead which is a drop-in replacement. |
| 74 | + |
| 75 | + The `SentryGlobalGraphQLFilter` was deprecated. Use the `SentryGlobalFilter` instead which is a drop-in replacement. |
| 76 | + |
| 77 | +- **feat(node): Deprecate `nestIntegration` and `setupNestErrorHandler` in favor of using `@sentry/nestjs` ([#14374](https://github.com/getsentry/sentry-javascript/pull/14374))** |
| 78 | + |
| 79 | + 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. |
| 80 | + |
| 81 | +### Other Changes |
| 82 | + |
| 83 | +- feat(browser): Send additional LCP timing info ([#14372](https://github.com/getsentry/sentry-javascript/pull/14372)) |
| 84 | +- feat(core): Ensure `normalizedRequest` on `sdkProcessingMetadata` is merged ([#14315](https://github.com/getsentry/sentry-javascript/pull/14315)) |
| 85 | +- feat(core): Hoist everything from `@sentry/utils` into `@sentry/core` ([#14382](https://github.com/getsentry/sentry-javascript/pull/14382)) |
| 86 | +- fix(core): Do not throw when trying to fill readonly properties ([#14402](https://github.com/getsentry/sentry-javascript/pull/14402)) |
| 87 | +- fix(feedback): Fix `__self` and `__source` attributes on feedback nodes ([#14356](https://github.com/getsentry/sentry-javascript/pull/14356)) |
| 88 | +- fix(nextjs): Update check for not found navigation error ([#14378](https://github.com/getsentry/sentry-javascript/pull/14378)) |
| 89 | + |
13 | 90 | ## 8.39.0
|
14 | 91 |
|
15 | 92 | ### Important Changes
|
|
0 commit comments