# @sentry/hub

> Sentry hub which handles global state managment.

Latest version **7.120.4** (published 2025-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sentry/hub
pnpm add @sentry/hub
yarn add @sentry/hub
bun add @sentry/hub
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 7.120.4 |
| Published | 2025-07-29 |
| First published | 2018-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 3 |
| Unpacked size | 39 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8762 |
| Author | Sentry |
| Maintainers | billyvg, mitsuhiko, haza, jauer, sentry-bot, evanpurkhiser, lynnagara, leedongwei, markstory, zeeg |

## Links

- npm: https://www.npmjs.com/package/@sentry/hub
- Repository: https://github.com/getsentry/sentry-javascript
- Homepage: https://github.com/getsentry/sentry-javascript/tree/master/packages/hub
- Issues: https://github.com/getsentry/sentry-javascript/issues
- npm.io page: https://npm.io/package/@sentry/hub

## Dependencies (3)

- [@sentry/core](https://npm.io/package/@sentry/core.md) 7.120.4
- [@sentry/types](https://npm.io/package/@sentry/types.md) 7.120.4
- [@sentry/utils](https://npm.io/package/@sentry/utils.md) 7.120.4

## Recent versions

- 7.120.4 (latest) — 2025-07-29
- 7.120.4-alpha.1 (next) — 2025-07-29
- 7.120.2 (v7) — 2024-12-13
- 7.120.3 — 2025-01-10
- 7.120.1 — 2024-12-05
- 7.120.0 — 2024-11-13
- 7.119.2 — 2024-10-10
- 7.119.1 — 2024-10-04
- 7.119.0 — 2024-08-14
- 7.118.0 — 2024-06-21
- 7.117.0 — 2024-06-10
- 7.116.0 — 2024-05-17
- 7.115.0 — 2024-05-16
- 7.114.0 — 2024-05-08
- 7.113.0 — 2024-05-02
- … 423 more at https://npm.io/package/@sentry/hub/versions

## README

<p align="center">
  <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank">
    <img src="https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png" alt="Sentry" width="280" height="84">
  </a>
</p>

# Sentry JavaScript SDK Hub

[![npm version](https://img.shields.io/npm/v/@sentry/hub.svg)](https://www.npmjs.com/package/@sentry/hub)
[![npm dm](https://img.shields.io/npm/dm/@sentry/hub.svg)](https://www.npmjs.com/package/@sentry/hub)
[![npm dt](https://img.shields.io/npm/dt/@sentry/hub.svg)](https://www.npmjs.com/package/@sentry/hub)

## Package Discontinued

This package was discontinued with version 8.0.0 of the Sentry JavaScript SDKs. Instead, relevant exports from this
package are exported from `@sentry/core`. For more information have a look at the
[Migration Guide](https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#sentryhub).

## Links

- [Official SDK Docs](https://docs.sentry.io/quickstart/)
- [TypeDoc](http://getsentry.github.io/sentry-javascript/)

## General

This package provides the `Hub` and `Scope` for all JavaScript related SDKs.

---
_Source: https://npm.io/package/@sentry/hub · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
