Skip to content

Commit

Permalink
export Replay as Class
Browse files Browse the repository at this point in the history
  • Loading branch information
s1gr1d committed Mar 22, 2024
1 parent 6030a2f commit 2745add
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/replay/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const replayIntegration = internalReplayIntegration;

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

// eslint-disable-next-line deprecation/deprecation
export { replayIntegration, getReplay, Replay, internalReplayIntegration, internalGetReplay, InternalReplay };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as SentryCore from '@sentry/core';
import type { Transport } from '@sentry/types';
import * as SentryUtils from '@sentry/utils';

// eslint-disable-next-line deprecation/deprecation
import type { Replay } from '../../src';
import type { ReplayContainer } from '../../src/replay';
import { clearSession } from '../../src/session/clearSession';
Expand Down
1 change: 1 addition & 0 deletions packages/replay/test/integration/stop.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as SentryUtils from '@sentry/utils';

// eslint-disable-next-line deprecation/deprecation
import type { Replay } from '../../src';
import { WINDOW } from '../../src/constants';
import type { ReplayContainer } from '../../src/replay';
Expand Down
1 change: 1 addition & 0 deletions packages/replay/test/mocks/mockSdk.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Envelope, Transport, TransportMakeRequestResponse } from '@sentry/types';

// eslint-disable-next-line deprecation/deprecation
import type { Replay as ReplayIntegration } from '../../src';
import type { ReplayContainer } from '../../src/replay';
import type { ReplayConfiguration } from '../../src/types';
Expand Down

0 comments on commit 2745add

Please sign in to comment.