File tree 2 files changed +0
-27
lines changed
2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,6 @@ export interface Carrier {
80
80
} ;
81
81
}
82
82
83
- /**
84
- * @hidden
85
- * @deprecated Can be removed once `Hub.getActiveDomain` is removed.
86
- */
87
- export interface DomainAsCarrier extends Carrier {
88
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
89
- members : { [ key : string ] : any } [ ] ;
90
- }
91
-
92
83
/**
93
84
* @inheritDoc
94
85
*/
@@ -559,20 +550,6 @@ export function getCurrentHub(): Hub {
559
550
return getHubFromCarrier ( registry ) ;
560
551
}
561
552
562
- /**
563
- * Returns the active domain, if one exists
564
- * @deprecated No longer used; remove in v7
565
- * @returns The domain, or undefined if there is no active domain
566
- */
567
- // eslint-disable-next-line deprecation/deprecation
568
- export function getActiveDomain ( ) : DomainAsCarrier | undefined {
569
- IS_DEBUG_BUILD && logger . warn ( 'Function `getActiveDomain` is deprecated and will be removed in a future version.' ) ;
570
-
571
- const sentry = getMainCarrier ( ) . __SENTRY__ ;
572
-
573
- return sentry && sentry . extensions && sentry . extensions . domain && sentry . extensions . domain . active ;
574
- }
575
-
576
553
/**
577
554
* Try to read the hub from an active domain, and fallback to the registry if one doesn't exist
578
555
* @returns discovered hub
Original file line number Diff line number Diff line change @@ -2,16 +2,12 @@ export { addGlobalEventProcessor, Scope } from './scope';
2
2
export { Session } from './session' ;
3
3
export { SessionFlusher } from './sessionflusher' ;
4
4
export {
5
- // eslint-disable-next-line deprecation/deprecation
6
- getActiveDomain ,
7
5
getCurrentHub ,
8
6
getHubFromCarrier ,
9
7
getMainCarrier ,
10
8
Hub ,
11
9
makeMain ,
12
10
setHubOnCarrier ,
13
11
Carrier ,
14
- // eslint-disable-next-line deprecation/deprecation
15
- DomainAsCarrier ,
16
12
Layer ,
17
13
} from './hub' ;
You can’t perform that action at this time.
0 commit comments