Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

## Unreleased

### Deprecated `@WithSentry` in `@sentry/nestjs`

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

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

## 8.38.0
Expand Down
4 changes: 4 additions & 0 deletions docs/migration/draft-v9-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

- Deprecated `transactionNamingScheme` option in `requestDataIntegration`.

## `@sentry/nestjs`

- Deprecated `@WithSentry`. Use `@SentryExceptionCaptured` instead.

## `@sentry/types``

- Deprecated `Request` in favor of `RequestEventData`.
2 changes: 2 additions & 0 deletions packages/nestjs/src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,7 @@ export function SentryExceptionCaptured() {

/**
* A decorator to wrap user-defined exception filters and add Sentry error reporting.
*
* @deprecated This decorator was renamed and will be removed in a future major version. Use `SentryExceptionCaptured` instead.
*/
export const WithSentry = SentryExceptionCaptured;
1 change: 1 addition & 0 deletions packages/nestjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { init } from './sdk';
export {
SentryTraced,
SentryCron,
// eslint-disable-next-line deprecation/deprecation
WithSentry,
SentryExceptionCaptured,
} from './decorators';
Loading