question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove @sentry/hub

See original GitHub issue

Problem 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:open
  • Created a year ago
  • Reactions:3
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
timfishcommented, Oct 7, 2022

I’ve reopened this and it can be closed when @sentry/hub is finally deleted and the tests are migrated to core.

2reactions
kamilogorekcommented, Sep 1, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found