Skip to content

Commit d140ae6

Browse files
committed
Merge remote-tracking branch 'origin/master' into prepare-release/8.40.0
2 parents 90f958f + ec701fd commit d140ae6

File tree

1 file changed

+76
-3
lines changed

1 file changed

+76
-3
lines changed

CHANGELOG.md

+76-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,84 @@
88
99
## Unreleased
1010

11-
### Deprecated `@WithSentry` in `@sentry/nestjs`
11+
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
1212

13-
The `@WithSentry` decorator was deprecated. Use `@SentryExceptionCaptured` instead. This is a simple renaming and functionality stays identical.
13+
## 8.40.0
1414

15-
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
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))
1689

1790
## 8.39.0
1891

0 commit comments

Comments
 (0)