From fe35dd97530d58e3d829b8f793013671233bc22c Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Tue, 14 Jan 2025 18:04:31 +0100 Subject: [PATCH 1/2] feat(sveltekit): Deprecate fetch proxy script options --- packages/sveltekit/src/server/handle.ts | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/packages/sveltekit/src/server/handle.ts b/packages/sveltekit/src/server/handle.ts index 8d5fe21de1c1..62f263dfaacf 100644 --- a/packages/sveltekit/src/server/handle.ts +++ b/packages/sveltekit/src/server/handle.ts @@ -41,15 +41,26 @@ export type SentryHandleOptions = { * of `fetch` calls in `load` functions. * * @default true + * + * @deprecated This option will be removed in the next major version of the SDK. There's no replacement as the fetch + * proxy script will no longer be added to the page response. */ injectFetchProxyScript?: boolean; /** - * If this option is set, the `sentryHandle` handler will add a nonce attribute to the script - * tag it injects into the page. This script is used to enable instrumentation of `fetch` calls - * in `load` functions. + * Warning: This option is strongly discouraged to be used and will be removed in the next major version of the SDK. + * + * If you set this option, the passed nonce will be added to fetch proxy `