Remove @sentry/hub
See original GitHub issueProblem Statement
We have both https://github.com/getsentry/sentry-javascript/tree/master/packages/hub and https://github.com/getsentry/sentry-javascript/tree/master/packages/core, and there should never be a situation where you import @sentry/hub
and you aren’t using @sentry/core
. As such, we should just consolidate this into 1 package (move everything in @sentry/hub
into @sentry/core
.)
- Less stuff to download from npm
- Less chance of versions getting out of sync
- Easy to understand core -> browser -> react -> nextjs (linear deps)
- Possible bundle size reduction from removing module boundaries
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Scopes and Hubs for JavaScript | Sentry Documentation
This allows you to more easily isolate pieces of context information to specific locations in your code or even call clear to briefly...
Read more >@sentry/hub - npm
Start using @sentry/hub in your project by running `npm i @sentry/hub`. There are 42 other projects in the npm registry using @sentry/hub.
Read more >Class Hub - Sentry JavaScript SDKs
It is isolated, i.e. all breadcrumbs and context information added to this scope will be removed once the scope ends. Be sure to...
Read more >@sentry/hub | Yarn - Package Manager
This release deprecates @sentry/hub and all of it's exports. All of the @sentry/hub exports have moved to @sentry/core . @sentry/hub will be removed...
Read more >Unified API - Sentry Developer Documentation
add_breadcrumb(crumb) : Adds a new breadcrumb to the scope. If the total number of breadcrumbs exceeds the max_breadcrumbs setting, the SDK should remove...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve reopened this and it can be closed when
@sentry/hub
is finally deleted and the tests are migrated to core.Whole
@sentry/minimal
was build around@sentry/hub
. If you are writing 3rd party integrations, or plug-in widgets, you are not going to depend on@sentry/core
, and can use@sentry/hub
directly.