From 7cd6dd18d1db3277361437de3797dd1b8f4034c6 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Wed, 7 Feb 2024 10:03:02 -0500 Subject: [PATCH 1/2] feat(v8/wasm): Remove deprecated exports --- packages/wasm/src/index.ts | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/packages/wasm/src/index.ts b/packages/wasm/src/index.ts index e84d4c880bd5..c3cf09fbbcd8 100644 --- a/packages/wasm/src/index.ts +++ b/packages/wasm/src/index.ts @@ -1,5 +1,5 @@ -import { convertIntegrationFnToClass, defineIntegration } from '@sentry/core'; -import type { Event, Integration, IntegrationClass, IntegrationFn, StackFrame } from '@sentry/types'; +import { defineIntegration } from '@sentry/core'; +import type { Event, IntegrationFn, StackFrame } from '@sentry/types'; import { patchWebAssembly } from './patchWebAssembly'; import { getImage, getImages } from './registry'; @@ -35,25 +35,6 @@ const _wasmIntegration = (() => { export const wasmIntegration = defineIntegration(_wasmIntegration); -/** - * Process WASM stack traces to support server-side symbolication. - * - * This also hooks the WebAssembly loading browser API so that module - * registrations are intercepted. - * - * @deprecated Use `wasmIntegration` export instead - * - * import { wasmIntegration } from '@sentry/wasm'; - * - * ``` - * Sentry.init({ integrations: [wasmIntegration()] }); - * ``` - */ -// eslint-disable-next-line deprecation/deprecation -export const Wasm = convertIntegrationFnToClass(INTEGRATION_NAME, wasmIntegration) as IntegrationClass< - Integration & { processEvent: (event: Event) => Event } ->; - /** * Patches a list of stackframes with wasm data needed for server-side symbolication * if applicable. Returns true if any frames were patched. From d6465f63e8b183efb420e81e1c9377c843cda6b2 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Wed, 7 Feb 2024 10:17:27 -0500 Subject: [PATCH 2/2] update test --- dev-packages/browser-integration-tests/suites/wasm/init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-packages/browser-integration-tests/suites/wasm/init.js b/dev-packages/browser-integration-tests/suites/wasm/init.js index c4826ccd8dba..9b9aad7b911f 100644 --- a/dev-packages/browser-integration-tests/suites/wasm/init.js +++ b/dev-packages/browser-integration-tests/suites/wasm/init.js @@ -1,11 +1,11 @@ import * as Sentry from '@sentry/browser'; -import { Wasm } from '@sentry/wasm'; +import { wasmIntegration } from '@sentry/wasm'; window.Sentry = Sentry; Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', - integrations: [new Wasm()], + integrations: [wasmIntegration()], beforeSend: event => { window.events.push(event); return null;