Skip to content

Commit 9189c61

Browse files
committed
remove withSentry decorator
1 parent 381cd6c commit 9189c61

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

packages/nestjs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ decorator will report all unexpected errors that are received by your global err
7474

7575
```typescript
7676
import { Catch, ExceptionFilter } from '@nestjs/common';
77-
import { WithSentry } from '@sentry/nestjs';
77+
import { SentryExceptionCaptured } from '@sentry/nestjs';
7878

7979
@Catch()
8080
export class YourCatchAllExceptionFilter implements ExceptionFilter {

packages/nestjs/src/decorators.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,3 @@ export function SentryExceptionCaptured() {
7474
return descriptor;
7575
};
7676
}
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;

packages/nestjs/src/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ export * from '@sentry/node';
22

33
export { nestIntegration } from './integrations/nest';
44

5-
export { init, getDefaultIntegrations } from './sdk';
5+
export { getDefaultIntegrations, init } from './sdk';
66

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';

0 commit comments

Comments
 (0)