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; 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.