Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/react-native

Package Overview
Dependencies
Maintainers
11
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/react-native - npm Package Versions

1
25

5.28.0

Diff

Changelog

Source

5.28.0

Fixes

  • Support metro@0.80.10 new sourceMapString export (#4004)
  • Sentry.captureMessage stack trace is in event.exception (moved from event.threads) (#3635, #3988)
    • To revert to the old behavior (causing the stack to be unsymbolicated) use useThreadsForMessageStack option

Dependencies

sentry-bot
published 5.27.0 •

Changelog

Source

5.27.0

Fixes

  • Pass sampleRate option to the Android SDK (#3979)
  • Drop app start data older than one minute (#3974)
  • Use Platform.constants.reactNativeVersion instead of react-native internal export (#3949)

Dependencies

sentry-bot
published 5.26.0 •

Changelog

Source

5.26.0

Features

  • Session Replay Public Beta (#3830)

    To enable Replay use the replaysSessionSampleRate or replaysOnErrorSampleRate options.

    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      _experiments: {
        replaysSessionSampleRate: 1.0,
        replaysOnErrorSampleRate: 1.0,
      },
    });
    

    To add React Component Names use annotateReactComponents in metro.config.js.

    // For Expo
    const { getSentryExpoConfig } = require("@sentry/react-native/metro");
    const config = getSentryExpoConfig(__dirname, { annotateReactComponents: true });
    
    // For RN
    const { getDefaultConfig } = require('@react-native/metro-config');
    const { withSentryConfig } = require('@sentry/react-native/metro');
    module.exports = withSentryConfig(getDefaultConfig(__dirname), { annotateReactComponents: true });
    

    To change default redaction behavior add the mobileReplayIntegration.

    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      _experiments: {
        replaysSessionSampleRate: 1.0,
        replaysOnErrorSampleRate: 1.0,
      },
      integrations: [
        Sentry.mobileReplayIntegration({
          maskAllImages: true,
          maskAllVectors: true,
          maskAllText: true,
        }),
      ],
    });
    

    To learn more visit Sentry's Mobile Session Replay documentation page.

Dependencies

sentry-bot
published 5.26.0-alpha.3 •

sentry-bot
published 5.25.0 •

Changelog

Source

5.25.0

Features

  • Improved Touch Event Breadcrumb components structure (#3899)
  • Set currentScreen on native scope (#3927)

Fixes

  • error.cause chain is locally symbolicated in development builds (#3920)
  • sentry-expo-upload-sourcemaps no longer requires Sentry url when uploading sourcemaps to sentry.io (#3915)
  • Flavor aware Android builds use SENTRY_AUTH_TOKEN env as fallback when token not found in sentry-flavor-type.properties. (#3917)
  • mechanism.handled:false should crash current session (#3900)

Dependencies

sentry-bot
published 5.25.0-alpha.2 •

Changelog

Source

5.25.0-alpha.2

Features

Fixes

  • sentry-expo-upload-sourcemaps no longer requires Sentry url when uploading sourcemaps to sentry.io (#3915)

Dependencies

Access to Mobile Replay is limited to early access orgs on Sentry. If you're interested, sign up for the waitlist

sentry-bot
published 5.24.1 •

Changelog

Source

5.24.1

Fixes

  • App Start Native Frames can start with zeroed values (#3881)

Dependencies

sentry-bot
published 5.24.0 •

Changelog

Source

5.24.0

Features

  • Add native application start spans (#3855, #3884)
    • This doesn't change the app start measurement length, but add child spans (more detail) into the existing app start span
  • Added JS Bundle Execution start information to the application start measurements (#3857)

Fixes

  • Add more expressive debug logs to Native Frames Integration (#3880)
  • Add missing tracing integrations when using client.init() (#3882)
  • Ensure sentry-cli doesn't trigger Xcode error: prefix (#3887)
    • Fixes --allow-failure failing Xcode builds

Dependencies

sentry-bot
published 5.23.1 •

Changelog

Source

5.23.1

Fixes

  • Fix failing iOS builds due to missing SentryLevel (#3854)
  • Add missing logs to dropped App Start spans (#3861)
  • Make all options of startTimeToInitialDisplaySpan optional (#3867)
  • Add Span IDs to Time to Display debug logs (#3868)
  • Use TTID end timestamp when TTFD should be updated with an earlier timestamp (#3869)
sentry-bot
published 5.23.0 •

Changelog

Source

5.23.0

This release does not build on iOS. Please use 5.23.1 or newer.

Features

  • Functional integrations (#3814)

    Instead of installing @sentry/integrations and creating integrations using the new keyword, you can use direct imports of the functional integrations.

    // Before
    import * as Sentry from '@sentry/react-native';
    import { HttpClient } from '@sentry/integrations';
    
    Sentry.init({
      integrations: [
        new Sentry.BrowserIntegrations.Dedupe(),
        new Sentry.Integration.Screenshot(),
        new HttpClient(),
      ],
    });
    
    // After
    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      integrations: [
        Sentry.dedupeIntegration(),
        Sentry.screenshotIntegration(),
        Sentry.httpClientIntegration(),
      ],
    });
    

    Note that the Sentry.BrowserIntegrations, Sentry.Integration and the Class style integrations will be removed in the next major version of the SDK.

Fixes

  • Remove unused rnpm config (#3811)

Dependencies

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc