Skip to content

Commit 9d14585

Browse files
committed
make version.ts in utils the one source of truth for sdk version
1 parent c696ab8 commit 9d14585

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"lint": "eslint . --format stylish",
6464
"test": "jest",
6565
"test:watch": "jest --watch",
66-
"version": "node ../../scripts/versionbump.js src/version.ts",
6766
"yalc:publish": "ts-node ../../scripts/prepack.ts && yalc publish build --push --sig"
6867
},
6968
"volta": {

packages/core/src/carrier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Integration, Scope, VersionString } from '@sentry/types';
22
import { GLOBAL_OBJ } from '@sentry/utils';
3+
import { SDK_VERSION } from '@sentry/utils';
34
import type { AsyncContextStack } from './asyncContext/stackStrategy';
45
import type { AsyncContextStrategy } from './asyncContext/types';
5-
import { SDK_VERSION } from './version';
66

77
/**
88
* An object that contains globally accessible properties and maintains a scope stack.

packages/core/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export { initAndBind, setCurrentClient } from './sdk';
5656
export { createTransport } from './transports/base';
5757
export { makeOfflineTransport } from './transports/offline';
5858
export { makeMultiplexedTransport } from './transports/multiplexed';
59-
export { SDK_VERSION } from './version';
6059
export {
6160
getIntegrationsToSetup,
6261
addIntegration,
@@ -107,3 +106,5 @@ export { captureFeedback } from './feedback';
107106

108107
// eslint-disable-next-line deprecation/deprecation
109108
export { getCurrentHubShim, getCurrentHub } from './getCurrentHubShim';
109+
110+
export { SDK_VERSION } from '@sentry/utils';

packages/core/src/utils/sdkMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Options } from '@sentry/types';
2-
import { SDK_VERSION } from '../version';
2+
import { SDK_VERSION } from '@sentry/utils';
33

44
/**
55
* A builder for the SDK metadata in the options for the SDK initialization.

packages/core/src/version.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/utils/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ export * from './anr';
3636
export * from './lru';
3737
export * from './buildPolyfills';
3838
export * from './propagationContext';
39+
export * from './version';

packages/utils/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = '8.4.0';
1+
export const SDK_VERSION = '8.5.0';

0 commit comments

Comments
 (0)