Skip to content

Commit

Permalink
feat(core): Use SDK_VERSION for hub API version (#9732)
Browse files Browse the repository at this point in the history
This means every minor version will bump hub, leading to reduced chances
of conflicts between hubs.
  • Loading branch information
AbhiPrasad committed Dec 5, 2023
1 parent 264e3e3 commit 12a32e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/hub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 12a32e3

Please sign in to comment.