Skip to content

Commit

Permalink
[v7] Goodbye Hub; It's been nice; Hope you find your; Paradise
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Mar 23, 2021
1 parent 6197c23 commit f3bd1b2
Show file tree
Hide file tree
Showing 37 changed files with 209 additions and 1,195 deletions.
1 change: 0 additions & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"dependencies": {
"@sentry/core": "6.2.3",
"@sentry/eventbuilder-browser": "7.0.0-alpha.0",
"@sentry/hub": "6.2.3",
"@sentry/integration-browser-breadcrumbs": "7.0.0-alpha.0",
"@sentry/integration-browser-globalhandlers": "7.0.0-alpha.0",
"@sentry/integration-browser-linkederrors": "7.0.0-alpha.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/browser/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export { Scope } from '@sentry/scope';
export { getHubFromCarrier, getCurrentHub, Hub, makeMain } from '@sentry/hub';
export { configureScope, startTransaction, withScope } from '@sentry/minimal';
export { configureScope, withScope } from '@sentry/minimal';
export { SDK_VERSION } from '@sentry/core';
export {
addBreadcrumb,
Expand Down
1 change: 0 additions & 1 deletion packages/browser/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ClientLike } from '@sentry/types';
import { captureException, getCarrier, getCurrentClient } from '@sentry/minimal';
import { getCurrentHub } from '@sentry/hub';
import { addInstrumentationHandler, getGlobalObject, logger } from '@sentry/utils';
import { ReportDialogOptions } from '@sentry/transport-base';
import { InboundFilters } from '@sentry/integration-common-inboundfilters';
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"access": "public"
},
"dependencies": {
"@sentry/hub": "6.2.3",
"@sentry/integration-base": "7.0.0-alpha.0",
"@sentry/minimal": "6.2.3",
"@sentry/scope": "7.0.0-alpha.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ export async function instrumentForPerformance(appInstance: ApplicationInstance)
}),
];

if (isTesting() && Sentry.getCurrentHub()?.getIntegration(tracing.Integrations.BrowserTracing)) {
// Initializers are called more than once in tests, causing the integrations to not be setup correctly.
if (isTesting()) {
return;
}

Expand Down
3 changes: 0 additions & 3 deletions packages/hub/.eslintrc.js

This file was deleted.

4 changes: 0 additions & 4 deletions packages/hub/.npmignore

This file was deleted.

29 changes: 0 additions & 29 deletions packages/hub/LICENSE

This file was deleted.

22 changes: 0 additions & 22 deletions packages/hub/README.md

This file was deleted.

46 changes: 0 additions & 46 deletions packages/hub/package.json

This file was deleted.

Loading

0 comments on commit f3bd1b2

Please sign in to comment.