Skip to content

Commit 2745add

Browse files
committed
export Replay as Class
1 parent 6030a2f commit 2745add

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

packages/replay/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const replayIntegration = internalReplayIntegration;
2424

2525
/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */
2626
// eslint-disable-next-line deprecation/deprecation
27-
const Replay = InternalReplay;
27+
class Replay extends InternalReplay {}
2828

2929
// eslint-disable-next-line deprecation/deprecation
3030
export { replayIntegration, getReplay, Replay, internalReplayIntegration, internalGetReplay, InternalReplay };

packages/replay/test/integration/beforeAddRecordingEvent.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as SentryCore from '@sentry/core';
22
import type { Transport } from '@sentry/types';
33
import * as SentryUtils from '@sentry/utils';
44

5+
// eslint-disable-next-line deprecation/deprecation
56
import type { Replay } from '../../src';
67
import type { ReplayContainer } from '../../src/replay';
78
import { clearSession } from '../../src/session/clearSession';

packages/replay/test/integration/stop.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as SentryUtils from '@sentry/utils';
22

3+
// eslint-disable-next-line deprecation/deprecation
34
import type { Replay } from '../../src';
45
import { WINDOW } from '../../src/constants';
56
import type { ReplayContainer } from '../../src/replay';

packages/replay/test/mocks/mockSdk.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Envelope, Transport, TransportMakeRequestResponse } from '@sentry/types';
22

3+
// eslint-disable-next-line deprecation/deprecation
34
import type { Replay as ReplayIntegration } from '../../src';
45
import type { ReplayContainer } from '../../src/replay';
56
import type { ReplayConfiguration } from '../../src/types';

0 commit comments

Comments
 (0)