Skip to content

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Apr 10, 2024

This PR removes top-level exports of the Hub class from all SDK packages. The only package that still exports it is core for now because we temporarily still need the class until we shimmed the return value of getCurrentHub. Decided to deprecate the class for now as well, to be aware of where we still use it.

Furthermore, this PR also deprecated the Hub interface. However, this interface will not be removed in v8 (prob v9) to keep support for getCurrentHub during the v8 life cycle.

ref #11482

@github-actions
Copy link
Contributor

github-actions bot commented Apr 10, 2024

size-limit report 📦

Path Size
@sentry/browser 22.13 KB (0%)
@sentry/browser (incl. Tracing) 31.85 KB (0%)
@sentry/browser (incl. Tracing, Replay) 67.04 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 60.63 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 70.86 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 80.75 KB (0%)
@sentry/browser (incl. Feedback) 35.68 KB (0%)
@sentry/browser (incl. Feedback, Feedback Modal) 35.69 KB (0%)
@sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) 35.7 KB (0%)
@sentry/browser (incl. sendFeedback) 26.93 KB (0%)
@sentry/react 24.81 KB (0%)
@sentry/react (incl. Tracing) 34.76 KB (0%)
@sentry/vue 25.68 KB (0%)
@sentry/vue (incl. Tracing) 33.57 KB (0%)
@sentry/svelte 22.26 KB (0%)
CDN Bundle 24.25 KB (-0.03% 🔽)
CDN Bundle (incl. Tracing) 32.86 KB (-0.02% 🔽)
CDN Bundle (incl. Tracing, Replay) 66.53 KB (-0.01% 🔽)
CDN Bundle (incl. Tracing, Replay, Feedback) 80.58 KB (-0.01% 🔽)
CDN Bundle - uncompressed 72.14 KB (-0.02% 🔽)
CDN Bundle (incl. Tracing) - uncompressed 98.46 KB (-0.01% 🔽)
CDN Bundle (incl. Tracing, Replay) - uncompressed 207.85 KB (-0.01% 🔽)
@sentry/nextjs (client) 34.01 KB (0%)
@sentry/sveltekit (client) 32.37 KB (0%)
@sentry/node 120.19 KB (0%)

@Lms24 Lms24 force-pushed the lms/feat-remove-hub-class-exports branch from f2c7356 to 98c93ec Compare April 11, 2024 13:23
@Lms24 Lms24 enabled auto-merge (squash) April 11, 2024 13:56
@Lms24 Lms24 merged commit 38b0dae into develop Apr 11, 2024
@Lms24 Lms24 deleted the lms/feat-remove-hub-class-exports branch April 11, 2024 13:57
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
Remove top-level exports of the `Hub` class from all SDK
packages. The only package that still exports it is core for now because
we temporarily still need the class until we shimmed the return value of
`getCurrentHub`.

Furthermore also deprecate the `Hub` interface. However, this
interface will not be removed in v8 (prob v9) to keep support for
`getCurrentHub` during the v8 life cycle.
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.

2 participants