Socket
Socket
Sign inDemoInstall

@sentry-internal/browser-utils

Package Overview
Dependencies
3
Maintainers
9
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/browser-utils


Version published
Weekly downloads
946K
decreased by-0.76%
Maintainers
9
Created
Weekly downloads
 

Changelog

Source

8.6.0

Important Changes

  • feat(metrics): Add timings method to metrics (#12226)

    This introduces a new method, metrics.timing(), which can be used in two ways:

    1. With a numeric value, to simplify creating a distribution metric. This will default to second as unit:
    Sentry.metrics.timing('myMetric', 100);
    
    1. With a callback, which will wrap the duration of the callback. This can accept a sync or async callback. It will create an inactive span around the callback and at the end emit a metric with the duration of the span in seconds:
    const returnValue = Sentry.metrics.timing('myMetric', measureThisFunction);
    
  • feat(react): Add Sentry.reactErrorHandler (#12147)

    This PR introduces Sentry.reactErrorHandler, which you can use in React 19 as follows:

    import * as Sentry from '@sentry/react';
    import { hydrateRoot } from 'react-dom/client';
    
    ReactDOM.hydrateRoot(
      document.getElementById('root'),
      <React.StrictMode>
        <App />
      </React.StrictMode>,
      {
        onUncaughtError: Sentry.reactErrorHandler(),
        onCaughtError: Sentry.reactErrorHandler((error, errorInfo) => {
          // optional callback if users want custom config.
        }),
      },
    );
    

    For more details, take a look at the PR. Our documentation will be updated soon!

Other Changes

  • feat(sveltekit): Add request data to server-side events (#12254)
  • fix(core): Pass in cron monitor config correctly (#12248)
  • fix(nextjs): Don't capture suspense errors in server components (#12261)
  • fix(tracing): Ensure sent spans are limited to 1000 (#12252)
  • ref(core): Use versioned carrier on global object (#12206)

Readme

Source

Sentry

Sentry JavaScript SDK Browser Utilities

npm version npm dm npm dt

General

Common utilities used by the Sentry JavaScript SDKs.

Note: This package is only meant to be used internally, and as such is not part of our public API contract and does not follow semver.

FAQs

Last updated on 29 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc