Skip to content

Commit dd41c2e

Browse files
authored
feat(core): Remove Hub class export (#11560)
Remove the last public export of the `Hub` class. Now that it's gone there are no more breaking changes (🤞). The class still remains in the package because it's still used internally for now but we can remove it (and shave off some well needed bytes) throught the v8 beta cycle.
1 parent 3996e3a commit dd41c2e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/core/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ export {
3232
export {
3333
// eslint-disable-next-line deprecation/deprecation
3434
getCurrentHub,
35-
// eslint-disable-next-line deprecation/deprecation
36-
Hub,
3735
getDefaultCurrentScope,
3836
getDefaultIsolationScope,
3937
} from './hub';

packages/replay-internal/test/unit/session/createSession.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as Sentry from '@sentry/core';
2-
import type { Hub } from '@sentry/core';
32

3+
import type { Hub } from '@sentry/types';
44
import { WINDOW } from '../../../src/constants';
55
import { createSession } from '../../../src/session/createSession';
66
import { saveSession } from '../../../src/session/saveSession';

0 commit comments

Comments
 (0)