-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR: - Moves all of the `@sentry/hub` code files to `@sentry/core` - Changes `@sentry/hub` to a stub that re-exports the same types from `@sentry/core` - `@sentry/hub` now only depends on `@sentry/core` - Switches internal imports `@sentry/hub` -> `@sentry/core` - Removes `@sentry/hub` as a dependency from packages - Fixes all the mocks/spys/imports in tests - Leaves the `@sentry/hub` tests where they are for now Co-authored-by: Abhijeet Prasad <[email protected]>
- Loading branch information
1 parent
e406130
commit 8570f0d
Showing
72 changed files
with
257 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,154 @@ | ||
export type { Carrier, Layer } from './hub'; | ||
|
||
export { addGlobalEventProcessor, Scope } from './scope'; | ||
export { closeSession, makeSession, updateSession } from './session'; | ||
export { SessionFlusher } from './sessionflusher'; | ||
export { getCurrentHub, getHubFromCarrier, getMainCarrier, Hub, makeMain, setHubOnCarrier } from './hub'; | ||
export { | ||
addBreadcrumb, | ||
captureException, | ||
captureEvent, | ||
captureMessage, | ||
configureScope, | ||
startTransaction, | ||
setContext, | ||
setExtra, | ||
setExtras, | ||
setTag, | ||
setTags, | ||
setUser, | ||
withScope, | ||
} from './exports'; | ||
export type { Carrier, Layer } from '@sentry/core'; | ||
|
||
import { | ||
addBreadcrumb as addBreadcrumbCore, | ||
addGlobalEventProcessor as addGlobalEventProcessorCore, | ||
captureEvent as captureEventCore, | ||
captureException as captureExceptionCore, | ||
captureMessage as captureMessageCore, | ||
closeSession as closeSessionCore, | ||
configureScope as configureScopeCore, | ||
getCurrentHub as getCurrentHubCore, | ||
getHubFromCarrier as getHubFromCarrierCore, | ||
getMainCarrier as getMainCarrierCore, | ||
Hub as HubCore, | ||
makeMain as makeMainCore, | ||
makeSession as makeSessionCore, | ||
Scope as ScopeCore, | ||
SessionFlusher as SessionFlusherCore, | ||
setContext as setContextCore, | ||
setExtra as setExtraCore, | ||
setExtras as setExtrasCore, | ||
setHubOnCarrier as setHubOnCarrierCore, | ||
setTag as setTagCore, | ||
setTags as setTagsCore, | ||
setUser as setUserCore, | ||
startTransaction as startTransactionCore, | ||
updateSession as updateSessionCore, | ||
withScope as withScopeCore, | ||
} from '@sentry/core'; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8 | ||
*/ | ||
export class Hub extends HubCore {} | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8 | ||
*/ | ||
export class Scope extends ScopeCore {} | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const getCurrentHub = getCurrentHubCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const addGlobalEventProcessor = addGlobalEventProcessorCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const getHubFromCarrier = getHubFromCarrierCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const getMainCarrier = getMainCarrierCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const makeMain = makeMainCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const setHubOnCarrier = setHubOnCarrierCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const SessionFlusher = SessionFlusherCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const closeSession = closeSessionCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const makeSession = makeSessionCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const updateSession = updateSessionCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const addBreadcrumb = addBreadcrumbCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const captureException = captureExceptionCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const captureEvent = captureEventCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const captureMessage = captureMessageCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const configureScope = configureScopeCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const startTransaction = startTransactionCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const setContext = setContextCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const setExtra = setExtraCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const setExtras = setExtrasCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const setTag = setTagCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const setTags = setTagsCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const setUser = setUserCore; | ||
|
||
/** | ||
* @deprecated This export has moved to @sentry/core. The @sentry/hub package will be removed in v8. | ||
*/ | ||
export const withScope = withScopeCore; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.