From d0542e7a1b933250569c71fca03d27183dbad59c Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Fri, 22 Mar 2024 09:59:34 +0100 Subject: [PATCH] deprecate replay exports --- packages/replay/src/index.ts | 53 ++++++++++++++++++++++++++---------- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/packages/replay/src/index.ts b/packages/replay/src/index.ts index c10beb30228c..ab7ce5b34b39 100644 --- a/packages/replay/src/index.ts +++ b/packages/replay/src/index.ts @@ -1,18 +1,41 @@ +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ export { replayIntegration } from './integration'; -export type { - ReplayConfiguration, - ReplayEventType, - ReplayEventWithTime, - ReplayBreadcrumbFrame, - ReplayBreadcrumbFrameEvent, - ReplayOptionFrameEvent, - ReplayFrame, - ReplayFrameEvent, - ReplaySpanFrame, - ReplaySpanFrameEvent, - CanvasManagerInterface, - CanvasManagerOptions, -} from './types'; - +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ export { getReplay } from './util/getReplay'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplayConfiguration } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplayEventType } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplayEventWithTime } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplayBreadcrumbFrame } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplayBreadcrumbFrameEvent } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplayOptionFrameEvent } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplayFrame } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplayFrameEvent } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplaySpanFrame } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { ReplaySpanFrameEvent } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { CanvasManagerInterface } from './types'; + +/** @deprecated Use the export from `@sentry/replay` or from framework-specific SDKs like `@sentry/react` or `@sentry/vue` */ +export type { CanvasManagerOptions } from './types';