File tree 4 files changed +4
-16
lines changed
4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ It will be removed in a future major version.
108
108
109
109
### ` @sentry/nestjs `
110
110
111
+ - Removed ` WithSentry ` decorator. Use ` SentryExceptionCaptured ` instead.
111
112
- Removed ` SentryService ` .
112
113
If you are using ` @sentry/nestjs ` you can safely remove any references to the ` SentryService ` .
113
114
If you are using another package migrate to ` @sentry/nestjs ` and remove the ` SentryService ` afterwards.
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ decorator will report all unexpected errors that are received by your global err
74
74
75
75
``` typescript
76
76
import { Catch , ExceptionFilter } from ' @nestjs/common' ;
77
- import { WithSentry } from ' @sentry/nestjs' ;
77
+ import { SentryExceptionCaptured } from ' @sentry/nestjs' ;
78
78
79
79
@Catch ()
80
80
export class YourCatchAllExceptionFilter implements ExceptionFilter {
Original file line number Diff line number Diff line change @@ -74,10 +74,3 @@ export function SentryExceptionCaptured() {
74
74
return descriptor ;
75
75
} ;
76
76
}
77
-
78
- /**
79
- * A decorator to wrap user-defined exception filters and add Sentry error reporting.
80
- *
81
- * @deprecated This decorator was renamed and will be removed in a future major version. Use `SentryExceptionCaptured` instead.
82
- */
83
- export const WithSentry = SentryExceptionCaptured ;
Original file line number Diff line number Diff line change @@ -2,12 +2,6 @@ export * from '@sentry/node';
2
2
3
3
export { nestIntegration } from './integrations/nest' ;
4
4
5
- export { init , getDefaultIntegrations } from './sdk' ;
5
+ export { getDefaultIntegrations , init } from './sdk' ;
6
6
7
- export {
8
- SentryTraced ,
9
- SentryCron ,
10
- // eslint-disable-next-line deprecation/deprecation
11
- WithSentry ,
12
- SentryExceptionCaptured ,
13
- } from './decorators' ;
7
+ export { SentryCron , SentryExceptionCaptured , SentryTraced } from './decorators' ;
You can’t perform that action at this time.
0 commit comments