From 85fda105cbe56b1fe2c9b9594a401d302a805e5c Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Mon, 4 Dec 2023 11:19:50 -0500 Subject: [PATCH] feat(core): Use SDK_VERSION for hub API version This means every minor version will bump hub, leading to reduced chances of conflicts between hubs. --- packages/core/src/hub.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/hub.ts b/packages/core/src/hub.ts index b4a69364d04a..8306d033cd75 100644 --- a/packages/core/src/hub.ts +++ b/packages/core/src/hub.ts @@ -26,6 +26,7 @@ import { DEFAULT_ENVIRONMENT } from './constants'; import { DEBUG_BUILD } from './debug-build'; import { Scope } from './scope'; import { closeSession, makeSession, updateSession } from './session'; +import { SDK_VERSION } from './version'; /** * API compatibility version of this hub. @@ -35,7 +36,7 @@ import { closeSession, makeSession, updateSession } from './session'; * * @hidden */ -export const API_VERSION = 4; +export const API_VERSION = parseFloat(SDK_VERSION); /** * Default maximum number of breadcrumbs added to an event. Can be overwritten