From 079c699331defc29a4048bac1b443964721f2ba1 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Fri, 15 Mar 2024 09:55:22 -0400 Subject: [PATCH 1/2] feat(aws-serverless): Remove deprecated rethrowAfterCapture option --- MIGRATION.md | 17 +++++++++++++++++ packages/aws-serverless/src/awslambda.ts | 4 ---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index 0df7e781fe30..32e6105fcbae 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -348,6 +348,7 @@ To make sure these integrations work properly you'll have to change how you - [Next.js SDK](./MIGRATION.md#nextjs-sdk) - [SvelteKit SDK](./MIGRATION.md#sveltekit-sdk) - [Astro SDK](./MIGRATION.md#astro-sdk) +- [AWS Serverless SDK](./MIGRATION.md#aws-serverless-sdk) ### General @@ -613,6 +614,10 @@ Removed top-level exports: `withSentryApi`, `withSentryAPI`, `withSentryGetServe `IS_BUILD`, `isBuild` - [Removal of deprecated API in `@sentry/nextjs`](./MIGRATION.md#removal-of-deprecated-api-in-sentrynextjs) +- [Updated minimum compatible Next.js version to `13.2.0`](./MIGRATION.md#updated-minimum-compatible-nextjs-version-to-1320) +- [Merging of the Sentry Webpack Plugin options and SDK Build options](./MIGRATION.md#merging-of-the-sentry-webpack-plugin-options-and-sdk-build-options) +- [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) +- [Updated the `@sentry/webpack-plugin` dependency to version 2](./MIGRATION.md#updated-the-sentry-webpack-plugin-dependency-to-version-2) #### Removal of deprecated API in `@sentry/nextjs` @@ -715,6 +720,8 @@ or look at the TypeScript type definitions of `withSentryConfig`. ### Astro SDK +- [Removal of `trackHeaders` option for Astro middleware](./MIGRATION.md#removal-of-trackheaders-option-for-astro-middleware) + #### Removal of `trackHeaders` option for Astro middleware Instead of opting-in via the middleware config, you can configure if headers should be captured via @@ -734,6 +741,8 @@ Sentry.init({ ### SvelteKit SDK +- [Breaking `sentrySvelteKit()` changes](./MIGRATION.md#breaking-sentrysveltekit-changes) + #### Breaking `sentrySvelteKit()` changes We upgraded the `@sentry/vite-plugin` which is a dependency of the SvelteKit SDK from version 0.x to 2.x. With this @@ -806,6 +815,14 @@ sentrySvelteKit({ Important: we DO NOT guarantee stability of `unstable_sentryVitePluginOptions`. They can be removed or updated at any time, including breaking changes within the same major version of the SDK. +### AWS Serverless SDK + +- [Removal of `rethrowAfterCapture` option](./MIGRATION.md#removal-of-rethrowaftercapture-option) + +#### Removal of `rethrowAfterCapture` option + +In `v6.17.2` the `rethrowAfterCapture` option to `wrapHandler` was deprecated. In `v8` it has been removed. There is no replacement API. + ## 5. Behaviour Changes - [Updated behaviour of `tracePropagationTargets` in the browser](./MIGRATION.md#updated-behaviour-of-tracepropagationtargets-in-the-browser-http-tracing-headers--cors) diff --git a/packages/aws-serverless/src/awslambda.ts b/packages/aws-serverless/src/awslambda.ts index b918494fdb90..7e39734c7301 100644 --- a/packages/aws-serverless/src/awslambda.ts +++ b/packages/aws-serverless/src/awslambda.ts @@ -42,10 +42,6 @@ export type AsyncHandler = ( export interface WrapperOptions { flushTimeout: number; - /** - * @deprecated This option is unused since v6 and will be removed in v8. - */ - rethrowAfterCapture?: boolean; callbackWaitsForEmptyEventLoop: boolean; captureTimeoutWarning: boolean; timeoutWarningLimit: number; From ed83d451e3949c8896fc5262c0acac2f3dbdef3b Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Fri, 15 Mar 2024 10:02:46 -0400 Subject: [PATCH 2/2] yarn fix --- MIGRATION.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MIGRATION.md b/MIGRATION.md index 32e6105fcbae..0434d1f61b27 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -821,7 +821,8 @@ time, including breaking changes within the same major version of the SDK. #### Removal of `rethrowAfterCapture` option -In `v6.17.2` the `rethrowAfterCapture` option to `wrapHandler` was deprecated. In `v8` it has been removed. There is no replacement API. +In `v6.17.2` the `rethrowAfterCapture` option to `wrapHandler` was deprecated. In `v8` it has been removed. There is no +replacement API. ## 5. Behaviour Changes