Skip to content

Commit 12a32e3

Browse files
authored
feat(core): Use SDK_VERSION for hub API version (#9732)
This means every minor version will bump hub, leading to reduced chances of conflicts between hubs.
1 parent 264e3e3 commit 12a32e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/hub.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { DEFAULT_ENVIRONMENT } from './constants';
2626
import { DEBUG_BUILD } from './debug-build';
2727
import { Scope } from './scope';
2828
import { closeSession, makeSession, updateSession } from './session';
29+
import { SDK_VERSION } from './version';
2930

3031
/**
3132
* API compatibility version of this hub.
@@ -35,7 +36,7 @@ import { closeSession, makeSession, updateSession } from './session';
3536
*
3637
* @hidden
3738
*/
38-
export const API_VERSION = 4;
39+
export const API_VERSION = parseFloat(SDK_VERSION);
3940

4041
/**
4142
* Default maximum number of breadcrumbs added to an event. Can be overwritten

0 commit comments

Comments
 (0)