From 9a44ac4bd92c4cae6b17bfcad197dfd178de10e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Og=C3=B3rek?= Date: Tue, 23 Mar 2021 15:37:18 +0100 Subject: [PATCH] [v7] Remove SDK_NAME constants in favor of SDK metadata --- packages/browser/src/index.ts | 1 - packages/browser/src/version.ts | 2 -- packages/node/src/index.ts | 1 - packages/node/src/version.ts | 2 -- packages/tracing/src/index.bundle.ts | 2 +- packages/vue/src/index.bundle.ts | 1 - 6 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 packages/browser/src/version.ts delete mode 100644 packages/node/src/version.ts diff --git a/packages/browser/src/index.ts b/packages/browser/src/index.ts index 7a46f3d1eccc..518892312548 100644 --- a/packages/browser/src/index.ts +++ b/packages/browser/src/index.ts @@ -19,7 +19,6 @@ export { export { BrowserClient, BrowserOptions } from './client'; export { defaultIntegrations, forceLoad, init, onLoad, showReportDialog, wrap } from './sdk'; -export { SDK_NAME } from './version'; import { getGlobalObject } from '@sentry/utils'; diff --git a/packages/browser/src/version.ts b/packages/browser/src/version.ts deleted file mode 100644 index 462be137a6ca..000000000000 --- a/packages/browser/src/version.ts +++ /dev/null @@ -1,2 +0,0 @@ -// TODO: Remove in the next major release and rely only on @sentry/core SDK_VERSION and SdkInfo metadata -export const SDK_NAME = 'sentry.javascript.browser'; diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts index 7e42a0356f20..e0e9796953fc 100644 --- a/packages/node/src/index.ts +++ b/packages/node/src/index.ts @@ -20,7 +20,6 @@ export { SDK_VERSION } from '@sentry/core'; export { NodeClient, NodeOptions } from './client'; export { defaultIntegrations, init } from './sdk'; -export { SDK_NAME } from './version'; // TODO: Can be written as `export * as Handlers from './handlers'` but ESLint doesnt understand it for some reason. Investigate. import * as Handlers from './handlers'; diff --git a/packages/node/src/version.ts b/packages/node/src/version.ts deleted file mode 100644 index 8cfd1070cec5..000000000000 --- a/packages/node/src/version.ts +++ /dev/null @@ -1,2 +0,0 @@ -// TODO: Remove in the next major release and rely only on @sentry/core SDK_VERSION and SdkMetadata -export const SDK_NAME = 'sentry.javascript.node'; diff --git a/packages/tracing/src/index.bundle.ts b/packages/tracing/src/index.bundle.ts index 8d90ba55aa54..b5108b9e3a87 100644 --- a/packages/tracing/src/index.bundle.ts +++ b/packages/tracing/src/index.bundle.ts @@ -43,7 +43,7 @@ export { close, wrap, } from '@sentry/browser'; -export { SDK_NAME, SDK_VERSION } from '@sentry/browser'; +export { SDK_VERSION } from '@sentry/browser'; import { Integrations as BrowserIntegrations } from '@sentry/browser'; import { getGlobalObject } from '@sentry/utils'; diff --git a/packages/vue/src/index.bundle.ts b/packages/vue/src/index.bundle.ts index a9dd78c785dd..d1acdd296fa3 100644 --- a/packages/vue/src/index.bundle.ts +++ b/packages/vue/src/index.bundle.ts @@ -37,7 +37,6 @@ export { setTags, setUser, withScope, - SDK_NAME, SDK_VERSION, } from '@sentry/browser'; export { ReportDialogOptions } from '@sentry/transport-base';