Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): Deprecate getCurrentHub() #10200

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Jan 16, 2024

Instead, users should use the direct replacement of the hub method.

This feels like a very big step! Goodbye Hub!

goodbye

@mydea mydea requested review from lforst, Lms24 and AbhiPrasad January 16, 2024 14:45
@mydea mydea self-assigned this Jan 16, 2024
@@ -528,6 +528,7 @@ describe('withActiveSpan()', () => {
const client = new TestClient(options);
const scope = new Scope();
const hub = new Hub(client, scope);
// eslint-disable-next-line deprecation/deprecation
makeMain(hub);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, I think this lint error sneaked in to develop @lforst

Copy link
Contributor

github-actions bot commented Jan 16, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.28 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.59 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.23 KB (0%)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.61 KB (-0.02% 🔽)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.13 KB (+0.01% 🔺)
@sentry/browser - Webpack (gzipped) 22.48 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 74.89 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 66.52 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.37 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.13 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 209.53 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 97.59 KB (-0.03% 🔽)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.21 KB (-0.04% 🔽)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.4 KB (-0.02% 🔽)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 68.98 KB (-0.01% 🔽)
@sentry/react - Webpack (gzipped) 22.52 KB (-0.02% 🔽)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.6 KB (-0.01% 🔽)
@sentry/nextjs Client - Webpack (gzipped) 49.73 KB (-0.01% 🔽)
@sentry-internal/feedback - Webpack (gzipped) 17.11 KB (0%)

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we go!!!!

Instead, users should use the direct replacement of the hub method.
@mydea mydea force-pushed the fn/deprecate-getCurrentHub branch from 405d803 to 1339043 Compare January 17, 2024 09:16
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RIP

@mydea mydea enabled auto-merge (squash) January 17, 2024 09:43
@mydea mydea merged commit 9c6d501 into develop Jan 17, 2024
96 checks passed
@mydea mydea deleted the fn/deprecate-getCurrentHub branch January 17, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants