Skip to content

Releases: getsentry/sentry-react-native

5.9.1

18 Aug 09:54
371d5f1
Compare
Choose a tag to compare
  • Bump Cocoa SDK from v8.9.4 to v8.10.0 (#3250)
    • This fixes a compile error for projects that use CocoaPods with use_frameworks! option.
    • changelog
    • diff

5.9.0

11 Aug 12:56
Compare
Choose a tag to compare

Important Note

Do not use this version if you use CocoaPods with use_frameworks! option. It introduces a bug where the project won't compile.
This has been fixed in version 5.9.1.

Features

  • Add support for React Native mixed stacktraces (#3201)

    In the current react-native@nightly (0.73.0-nightly-20230809-cb60e5c67) JS errors from native modules can
    contain native JVM or Objective-C exception stack trace. Both JS and native stack trace
    are processed by default no configuration needed.

  • Add tracePropagationTargets option (#3230)

    This release adds support for distributed tracing
    without requiring performance monitoring to be active on the React Native SDK.
    This means even if there is no sampled transaction/span, the SDK will still propagate traces to downstream services.
    Distributed Tracing can be configured with the tracePropagationTargets option,
    which controls what requests to attach the sentry-trace and baggage HTTP headers to (which is what propagates tracing information).

    Sentry.init({
      tracePropagationTargets: ["third-party-site.com", /^https:\/\/yourserver\.io\/api/],
    });

Fixes

  • Sentry.init must be called before Sentry.wrap(#3227)
    • The SDK now shows warning if incorrect order is detected
  • Stall Time is no longer counted when App is in Background. (#3211)
  • Use application variant instead of variant output to hook to correct package task for modules cleanup (#3161)
  • Fix isNativeAvailable after SDK reinitialization (#3200)

Dependencies

5.8.1

04 Aug 07:53
Compare
Choose a tag to compare

Dependencies

5.8.0

27 Jul 15:47
Compare
Choose a tag to compare

Features

  • Alpha support for Hermes JavaScript Profiling (#3057)

    Profiling is disabled by default. To enable it, configure both
    tracesSampleRate and profilesSampleRate when initializing the SDK:

      Sentry.init({
        dsn: '__DSN__',
        tracesSampleRate: 1.0,
        _experiments: {
          // The sampling rate for profiling is relative to TracesSampleRate.
          // In this case, we'll capture profiles for 100% of transactions.
          profilesSampleRate: 1.0,
        },
      });

    More documentation on profiling and current limitations can be found here.

Fixes

  • Warn users about multiple versions of promise package which can cause unexpected behavior like undefined Promise.allSettled (#3162)
  • Event is enriched with all the Android context on the JS layer and you can filter/modify all the data in the beforeSend callback similarly to iOS. (#3170)

Dependencies

5.7.1

12 Jul 17:49
Compare
Choose a tag to compare

Dependencies

5.7.0

12 Jul 13:23
Compare
Choose a tag to compare

Fixes

  • Filter beforeSendTransaction from the Native SDK (#3140)

Features

  • Use android.namespace for AGP 8 and RN 0.73 (#3133)

Dependencies

5.6.0

14 Jun 12:01
Compare
Choose a tag to compare

Features

  • Overwrite Expo bundle names in stack frames (#3115)
    • This enables source maps to resolve correctly without using sentry-expo package

Fixes

  • Disable enableNative if Native SDK is not available (#3099)
  • Dynamically resolve collectModulesScript path to support monorepos (#3092)
  • Native wrapper methods don't throw disabled error after re-initializing (#3093)

Dependencies

5.5.0

16 May 08:34
Compare
Choose a tag to compare

Features

  • Add expo, react_native_version and hermes_version to React Native Context (#3050)

Dependencies

5.4.2

09 May 13:20
Compare
Choose a tag to compare

Fixes

  • Fix event.origin and event.environment on unhandled exception (#3041)
  • Don't pass enableTracing from RN to sentry-cocoa options (#3042)
  • Only store envelopes of fatal crashes on iOS (#3051)

Dependencies

4.15.2

09 May 09:37
Compare
Choose a tag to compare

Fixes

  • Only store envelopes of fatal crashes on iOS (#3051)