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 hub.bindClient() & makeMain() #10188

Merged
merged 2 commits into from
Jan 16, 2024
Merged

feat(core): Deprecate hub.bindClient() & makeMain() #10188

merged 2 commits into from
Jan 16, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Jan 15, 2024

Instead, users should use setCurrentClient() & client.init().

For now, we can't fully replace our own test usages of this everywhere, as we need it to test a clean hub state. But for users, there should be a reasonable path forward for 99% of cases. I added a docs page outlining how the different scenarios will work in v8 (and already should work now, too).

Instead, users should use `setCurrentClient()` & `client.init()`.
@mydea mydea requested review from lforst, Lms24 and AbhiPrasad January 15, 2024 16:56
@mydea mydea self-assigned this Jan 15, 2024
Copy link
Contributor

github-actions bot commented Jan 15, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.2 KB (+0.12% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.52 KB (+0.08% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.18 KB (+0.09% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.56 KB (+0.18% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.13 KB (+0.13% 🔺)
@sentry/browser - Webpack (gzipped) 22.48 KB (+0.18% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 74.84 KB (+0.07% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 66.48 KB (+0.06% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.31 KB (+0.14% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.12 KB (+0.16% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 209.62 KB (+0.09% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 97.67 KB (+0.2% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.23 KB (+0.21% 🔺)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.34 KB (+0.17% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 68.91 KB (+0.09% 🔺)
@sentry/react - Webpack (gzipped) 22.52 KB (+0.18% 🔺)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.55 KB (+0.03% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 49.67 KB (+0.05% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 17.11 KB (0%)

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

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

Not a fan of setCurrentClient but it's where we're at.

Copy link
Member

@lforst lforst left a comment

Choose a reason for hiding this comment

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

Not a fan of setCurrentClient but it's where we're at.

@@ -94,7 +94,7 @@ module.exports = [
path: 'packages/browser/build/bundles/bundle.tracing.min.js',
gzip: false,
brotli: false,
limit: '100 KB',
limit: '105 KB',
Copy link
Member

Choose a reason for hiding this comment

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

side note (no action required): I really hope that our bundle size will decrease to ~v7.0.0 levels once we removed all the deprecated stuff

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, it will decrease for sure - right now we need to add a certain degree of duplication, sadly, which will go away again! I'm very optimistic in this regard.

@mydea mydea merged commit 0cc2ac9 into develop Jan 16, 2024
96 checks passed
@mydea mydea deleted the fn/hubBind branch January 16, 2024 12:39
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