Skip to content

Releases: getsentry/sentry-react-native

7.0.0-rc.2

29 Aug 08:27
670196d

Choose a tag to compare

7.0.0-rc.2 Pre-release
Pre-release

Important Changes

  • Ensure IP address is only inferred by Relay if sendDefaultPii is true (#5111)

This release includes a fix for a behaviour change
that was originally introduced with v9 of the JavaScript SDK included in v7.0.0-beta.0: User IP Addresses should only be added to Sentry events automatically,
if sendDefaultPii was set to true.

We apologize for any inconvenience caused!

Features

  • Logs now contains more attributes like release, os and device information (#5032)

Dependencies

6.20.0 (Stable)

13 Aug 14:58

Choose a tag to compare

Features

  • Support for React Native 0.81 (#5051)
  • Support New Hermes Runtime Access Pattern (#5051)
  • Support Metro 0.83 (#5035)

Fixes

  • Correct detection of whether turbo modules are available (#5064)

Dependencies

7.0.0-rc.1

30 Jul 07:43

Choose a tag to compare

7.0.0-rc.1 Pre-release
Pre-release

See 7.0.0 beta changelogs for a complete list of changes.

6.19.0

29 Jul 14:41

Choose a tag to compare

Fixes

  • Warnings when .env.sentry-build-plugin is not set on Sentry/CLI (#5029)
  • Fix for sentry-cli path discovery not working on Android (#5009)
  • Export addIntegration from @sentry/core (#5020)

Features

  • Adds replaysSessionQuality Session Replay option to control replay quality and performance overhead on mobile (#5001)

    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      replaysSessionSampleRate: 1.0,
      replaysSessionQuality: 'low', // possible values: low, medium (default), high
      integrations: [Sentry.mobileReplayIntegration()],
    });

Dependencies

6.18.1 (Stable)

23 Jul 11:45

Choose a tag to compare

Fixes

  • Fixed Sentry CLI executable path resolution that was causing iOS build script failures (#5003)

6.18.0

21 Jul 08:52

Choose a tag to compare

Fixes

  • SDK now Builds when using PnPM (#4977)
  • Skip idle span creation when app is in background (#4995)

Dependencies

7.0.0-beta.2

11 Jul 08:58

Choose a tag to compare

7.0.0-beta.2 Pre-release
Pre-release

Features

  • Automatically detect Release name and version for Expo Web (#4967)

Changes

  • Expose featureFlagsIntegration (#4984)

Breaking changes

  • Tags formatting logic updated (#4965)
    Here are the altered/unaltered types, make sure to update your UI filters and alerts.

    Unaltered: string, null, number, and undefined values remain unchanged.

    Altered: Boolean values are now capitalized: true -> True, false -> False.

Fixes

  • tags with symbol are now logged (#4965)
  • ignoreError now filters Native errors (#4948)

You can use strings to filter errors or RegEx for filtering with a pattern.

example:

  ignoreErrors: [
    '1234', // Will filter any error message that contains 1234.
    '.*1234', // Will not filter as regex, instead will filter messages that contains '.*1234"
    /.*1234/, // Regex will filter any error message that ends with 1234
    /.*1234.*/ // Regex will filter any error message that contains 1234.
  ]

Dependencies

6.17.0

10 Jul 08:35

Choose a tag to compare

Features

  • Add experimental flag enableUnhandledCPPExceptionsV2 on iOS (#4975)

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

Dependencies

6.16.1 (Stable)

01 Jul 12:46

Choose a tag to compare

Fixes

  • Fixes Replay Custom Masking issue on Android (#4957)

Dependencies

7.0.0-beta.1

25 Jun 08:09
0cafc63

Choose a tag to compare

7.0.0-beta.1 Pre-release
Pre-release

Upgrading from 6.x to 7.0

Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK version 9. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.

Version 7 of the SDK is compatible with Sentry self-hosted versions 24.4.2 or higher (unchanged from v6). Lower versions may continue to work, but may not support all features.

Major Changes

  • Set {{auto}} if user.ip_address is undefined and sendDefaultPii: true (#4466)
  • Sentry.captureUserFeedback removed, use Sentry.captureFeedback instead (#4855)

Major Changes from Sentry JS SDK v9

  • Exceptions from captureConsoleIntegration are now marked as handled: true by default
  • shutdownTimeout moved from core to @sentry/react-native
  • hasTracingEnabled was renamed to hasSpansEnabled
  • You can no longer drop spans or return null on beforeSendSpan hook
  • Fork scope if custom scope is passed to startSpanManual or startSpan

Removed types

  • TransactionNamingScheme
  • Request
  • Scope (prefer using the Scope class)

Other removed items.

  • autoSessionTracking from options.
    To enable session tracking, ensure that enableAutoSessionTracking is enabled.
  • enableTracing. Instead, set tracesSampleRate to a value greater than zero to enable tracing, 0 to keep tracing integrations active without sampling, or undefined to disable the performance integration.
  • getCurrentHub(), Hub, and getCurrentHubShim()
  • spanId from propagation context
  • metrics API
  • transactionContext from samplingContext
  • @sentry/utils package, the exports were moved to @sentry/core
  • Standalone Client interface & deprecate BaseClient

Features

  • Add experimental support for Log tracing (#4827)

To enable it add the following code to your Sentry Options:

Sentry.init({
  // other options...
  _experiments: {
    enableLogs: true,
  },
});

You can also filter the logs being collected by adding beforeSendLogs into _experiments

Sentry.init({
  // other options...
  _experiments: {
    enableLogs: true,
    beforeSendLog: (log) => {
      return log;
    },
  }
});

Changes

  • Expose logger and consoleLoggingIntegration (#4930)
  • Remove deprecated appOwnership constant use in Expo Go detection (#4893)
  • Disable AppStart and NativeFrames in unsupported environments (web, Expo Go) (#4897)

Self Hosted

  • It is recommended to use Sentry Self Hosted version 25.2.0 or new for React Native V7 or newer

Dependencies