Skip to content

Commit 7eed1ef

Browse files
authored
feat(aws-serverless): Remove deprecated rethrowAfterCapture option (#11126)
The `rethrowAfterCapture` option was deprecated in #4448, which was released in `6.17.2`. This finally removes the option.
1 parent 30db115 commit 7eed1ef

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

MIGRATION.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ To make sure these integrations work properly you'll have to change how you
348348
- [Next.js SDK](./MIGRATION.md#nextjs-sdk)
349349
- [SvelteKit SDK](./MIGRATION.md#sveltekit-sdk)
350350
- [Astro SDK](./MIGRATION.md#astro-sdk)
351+
- [AWS Serverless SDK](./MIGRATION.md#aws-serverless-sdk)
351352

352353
### General
353354

@@ -615,6 +616,10 @@ Removed top-level exports: `withSentryApi`, `withSentryAPI`, `withSentryGetServe
615616
`IS_BUILD`, `isBuild`
616617

617618
- [Removal of deprecated API in `@sentry/nextjs`](./MIGRATION.md#removal-of-deprecated-api-in-sentrynextjs)
619+
- [Updated minimum compatible Next.js version to `13.2.0`](./MIGRATION.md#updated-minimum-compatible-nextjs-version-to-1320)
620+
- [Merging of the Sentry Webpack Plugin options and SDK Build options](./MIGRATION.md#merging-of-the-sentry-webpack-plugin-options-and-sdk-build-options)
621+
- [Removal of the `sentry` property in your Next.js options (next.config.js)](./MIGRATION.md#removal-of-the-sentry-property-in-your-nextjs-options-nextconfigjs)
622+
- [Updated the `@sentry/webpack-plugin` dependency to version 2](./MIGRATION.md#updated-the-sentry-webpack-plugin-dependency-to-version-2)
618623

619624
#### Removal of deprecated API in `@sentry/nextjs`
620625

@@ -767,6 +772,8 @@ hopefully reducing bugs and jank.
767772

768773
### Astro SDK
769774

775+
- [Removal of `trackHeaders` option for Astro middleware](./MIGRATION.md#removal-of-trackheaders-option-for-astro-middleware)
776+
770777
#### Removal of `trackHeaders` option for Astro middleware
771778

772779
Instead of opting-in via the middleware config, you can configure if headers should be captured via
@@ -786,6 +793,8 @@ Sentry.init({
786793

787794
### SvelteKit SDK
788795

796+
- [Breaking `sentrySvelteKit()` changes](./MIGRATION.md#breaking-sentrysveltekit-changes)
797+
789798
#### Breaking `sentrySvelteKit()` changes
790799

791800
We upgraded the `@sentry/vite-plugin` which is a dependency of the SvelteKit SDK from version 0.x to 2.x. With this
@@ -858,6 +867,15 @@ sentrySvelteKit({
858867
Important: we DO NOT guarantee stability of `unstable_sentryVitePluginOptions`. They can be removed or updated at any
859868
time, including breaking changes within the same major version of the SDK.
860869

870+
### AWS Serverless SDK
871+
872+
- [Removal of `rethrowAfterCapture` option](./MIGRATION.md#removal-of-rethrowaftercapture-option)
873+
874+
#### Removal of `rethrowAfterCapture` option
875+
876+
In `v6.17.2` the `rethrowAfterCapture` option to `wrapHandler` was deprecated. In `v8` it has been removed. There is no
877+
replacement API.
878+
861879
## 5. Behaviour Changes
862880

863881
- [Updated behaviour of `tracePropagationTargets` in the browser](./MIGRATION.md#updated-behaviour-of-tracepropagationtargets-in-the-browser-http-tracing-headers--cors)

packages/aws-serverless/src/awslambda.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ export type AsyncHandler<T extends Handler> = (
4242

4343
export interface WrapperOptions {
4444
flushTimeout: number;
45-
/**
46-
* @deprecated This option is unused since v6 and will be removed in v8.
47-
*/
48-
rethrowAfterCapture?: boolean;
4945
callbackWaitsForEmptyEventLoop: boolean;
5046
captureTimeoutWarning: boolean;
5147
timeoutWarningLimit: number;

0 commit comments

Comments
 (0)