Skip to content

Commit f34503f

Browse files
authored
feat(v8/wasm): Remove deprecated exports (#10552)
ref #10100
1 parent 9493580 commit f34503f

File tree

2 files changed

+4
-23
lines changed
  • dev-packages/browser-integration-tests/suites/wasm
  • packages/wasm/src

2 files changed

+4
-23
lines changed

dev-packages/browser-integration-tests/suites/wasm/init.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Wasm } from '@sentry/wasm';
2+
import { wasmIntegration } from '@sentry/wasm';
33

44
window.Sentry = Sentry;
55

66
Sentry.init({
77
dsn: 'https://[email protected]/1337',
8-
integrations: [new Wasm()],
8+
integrations: [wasmIntegration()],
99
beforeSend: event => {
1010
window.events.push(event);
1111
return null;

packages/wasm/src/index.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { convertIntegrationFnToClass, defineIntegration } from '@sentry/core';
2-
import type { Event, Integration, IntegrationClass, IntegrationFn, StackFrame } from '@sentry/types';
1+
import { defineIntegration } from '@sentry/core';
2+
import type { Event, IntegrationFn, StackFrame } from '@sentry/types';
33

44
import { patchWebAssembly } from './patchWebAssembly';
55
import { getImage, getImages } from './registry';
@@ -35,25 +35,6 @@ const _wasmIntegration = (() => {
3535

3636
export const wasmIntegration = defineIntegration(_wasmIntegration);
3737

38-
/**
39-
* Process WASM stack traces to support server-side symbolication.
40-
*
41-
* This also hooks the WebAssembly loading browser API so that module
42-
* registrations are intercepted.
43-
*
44-
* @deprecated Use `wasmIntegration` export instead
45-
*
46-
* import { wasmIntegration } from '@sentry/wasm';
47-
*
48-
* ```
49-
* Sentry.init({ integrations: [wasmIntegration()] });
50-
* ```
51-
*/
52-
// eslint-disable-next-line deprecation/deprecation
53-
export const Wasm = convertIntegrationFnToClass(INTEGRATION_NAME, wasmIntegration) as IntegrationClass<
54-
Integration & { processEvent: (event: Event) => Event }
55-
>;
56-
5738
/**
5839
* Patches a list of stackframes with wasm data needed for server-side symbolication
5940
* if applicable. Returns true if any frames were patched.

0 commit comments

Comments
 (0)