Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 9, 2025

This PR contains the following updates:

Package Change Age Confidence
@sentry/react-native 5.9.1 -> 7.4.0 age confidence

Release Notes

getsentry/sentry-react-native (@​sentry/react-native)

v7.4.0

Compare Source

Features
  • Adds Console logs as Sentry Logs. (#​5261)
  • Adds support for propagateTraceparent (#​5277)
Fixes
  • Fix compatibility with react-native-legal (#​5253)
    • The licenses json file is correctly generated and placed into the res/ folder now
  • Handle missing shouldAddToIgnoreList callback in Metro (#​5260)
  • Overrides the default Cocoa SDK behavior that disables Session Replay on iOS 26.0 (#​5268)
Dependencies

v7.3.0

Compare Source

Features
Fixes
  • Updates sentry-xcode.sh and the default settings for the project.pbxproj to fix the issue with escape patterns in Xcode that leaded to errors during "Bundle React Native code and images" stage (#​5221)
  • Fixes .env file loading in Expo sourcemap uploads (#​5210)
  • Fixes the issue with changing immutable metadata structure in the contructor of ReactNativeClient. This structure is getting re-created instead of being modified to ensure IP address is only inferred by Relay if sendDefaultPii is true (#​5202)
  • Removes usage of deprecated SafeAreaView (#​5241)
  • Fixes session replay recording for uncaught errors (#​5243)
  • Fixes TypeScript errors when using custom Metro configurations with Expo SDK 54 (#​5246)
Dependencies

v7.2.0

Compare Source

Features
  • Enable logs on native side of iOS (#​5190)
  • Add mobile replay attributes to logs (#​5165)
Fixes
  • Vendor metro/countLines function to avoid issues with the private import (#​5185)
  • Fix baseJSBundle and bundleToString TypeErrors with Metro 0.83.2 (#​5206)
Dependencies

v7.1.0

Compare Source

Fixes
  • Session Replay: Allow excluding sentry-android-replay from android targets (#​5174)

    • If you are not interested in using Session Replay, you can exclude the sentry-android-replay module from your Android targets as follows (saves nearly 40KB compressed and 80KB uncompressed off the bundle size):
    // from the android's root build.gradle file
    subprojects {
      configurations.all {
        exclude group: 'io.sentry', module: 'sentry-android-replay'
      }
    }
Dependencies

v7.0.1

Compare Source

Important Changes

This release includes a fix for a behaviour change
that was originally fixed on version 6.21.0 of the React Native SDK: User IP Addresses should only be added to Sentry events automatically,
if sendDefaultPii was set to true.

To avoid making a major bump, the fix was patched on the current version and not by bumping to V8.
There is no API breakage involved and hence it is safe to update.
However, after updating the SDK, events (errors, traces, replays, etc.) sent from the browser, will only include
user IP addresses, if you set sendDefaultPii: true in your Sentry.init options.

We apologize for any inconvenience caused!

Fixes
  • Ensure IP address is only inferred by Relay if sendDefaultPii is true (#​5138)
Dependencies

v7.0.0

Compare Source

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 versions 9 and 10. 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 25.2.0 or higher (up from 24.4.2 for v6). Lower versions may continue to work, but may not support all features.

See our migration docs for more information.

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

  • Set {{auto}} if user.ip_address is undefined and sendDefaultPii: true (#​4466)

  • Sentry.captureUserFeedback removed, use Sentry.captureFeedback instead (#​4855)

  • 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

  • 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.

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
Changes
  • Expose featureFlagsIntegration (#​4984)
  • 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)
  • Use Replay interface for browserReplayIntegration return type (#​4858)
  • Allow using browserReplayIntegration without isWeb guard (#​4858)
    • The integration returns noop in non-browser environments
  • Use single encodeUTF8 implementation through the SDK (#​4885)
  • Use global TextEncoder (available with Hermes in React Native 0.74 or higher) to improve envelope encoding performance. (#​4874)
  • breadcrumbsIntegration disables React Native incompatible options automatically (#​4886)
  • Fork scope if custom scope is passed to startSpanManual or startSpan
  • On React Native Web, browserSessionIntegration is added when enableAutoSessionTracking is set to True (#​4732)
  • Change Cold/Warm App Start span description to Cold/Warm Start (#​4636)
Features

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

Sentry.init({
  enableLogs: true,
});

You can also filter the logs being collected by adding beforeSendLogs

Sentry.init({
  enableLogs: true,
  beforeSendLog: log => {
    return log;
  },
});
  • Automatically detect Release name and version for Expo Web (#​4967)
Fixes

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.
  ]
  • Expo Updates Context is passed to native after native init to be available for crashes (#​4808)
  • Expo Updates Context values should all be lowercase (#​4809)
  • Avoid duplicate network requests (fetch, xhr) by default (#​4816)
    • traceFetch is disabled by default on mobile as RN uses a polyfill which will be traced by traceXHR
Dependencies

v6.22.0

Compare Source

Fixes
  • Vendor metro/countLines function to avoid issues with the private import (#​5185)
  • Fix baseJSBundle and bundleToString TypeErrors with Metro 0.83.2 (#​5206)
  • Fixes .env file loading in Expo sourcemap uploads (#​5210)
Dependencies

v6.21.0

Compare Source

Important Changes
  • fix(browser): Ensure IP address is only inferred by Relay if sendDefaultPii is true (#​5092)

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

However, the change in v9 required further internal adjustment, which should have been included in v10 of the SDK.
To avoid making a major bump, the fix was patched on the current version and not by bumping to V10.
There is no API breakage involved and hence it is safe to update.
However, after updating the SDK, events (errors, traces, replays, etc.) sent from the browser, will only include
user IP addresses, if you set sendDefaultPii: true in your Sentry.init options.

We apologize for any inconvenience caused!

Fixes
  • Fix Expo prebuild failed on cached builds (#​5098)
  • Remove the warning that used to indicate that Time To Initial Display and Time To Full Display are not supported (#​5081)
Dependencies

v6.20.0

Compare Source

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

v6.19.0

Compare Source

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

v6.18.1

Compare Source

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

v6.18.0

Compare Source

[!WARNING]
This release contains an issue where Sentry-CLI may not be found on iOS builds if not defined by environment variable.
See PR #​5003 for more details.

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

v6.17.0

Compare Source

Features
  • Add experimental flag enableUnhandledCPPExceptionsV2 on iOS (#​4975)

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

v6.16.1

Compare Source

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

v6.16.0

Compare Source

Features
  • Introducing @sentry/react-native/playground (#​4916)

    The new withSentryPlayground component allows developers to verify
    that the SDK is properly configured and reports errors as expected.

    import * as Sentry from '@​sentry/react-native';
    import { withSentryPlayground } from '@​sentry/react-native/playground';
    
    function App() {
      return <View>...</View>;
    }
    
    export default withSentryPlayground(
      Sentry.wrap(App)
    );
Fixes
  • Adds support for React Native 0.80 (#​4938)
  • Report slow and frozen frames as app start span data (#​4865)
  • User set by Sentry.setUser is prefilled in Feedback Widget (#​4901)
    • User data are considered from all scopes in the following order current, isolation and global.

v6.15.1

Compare Source

Dependencies

v6.15.0

Compare Source

Features
  • User Feedback Widget Updates

    • FeedbackButton for easy access to the widget (#​4378)
    • ScreenshotButton for capturing the application visuals (#​4714)
    • Theming support to better align with the application styles (#​4677)
    Sentry.init({
      integrations: [
        Sentry.feedbackIntegration({
          enableTakeScreenshot: true, // Enables `ScreenshotButton`
          themeDark: {
            // Add dark theme styles here
          },
          themeLight: {
            // Add light theme styles here
          },
        }),
      ],
    });
    
    Sentry.showFeedbackButton();
    Sentry.hideFeedbackButton();

    To learn more visit the documentation.

  • Re-export ErrorEvent and TransactionEvent types (#​4859)

Fixes
  • crashedLastRun now returns the correct value (#​4829)
  • Use engine-specific promise rejection tracking (#​4826)
  • Fixes Feedback Widget accessibility issue on iOS (#​4739)
  • Measuring TTID or TTFD could cause a crash when parentSpanId was removed (#​4881)
Dependencies

v6.14.0

Compare Source

Fixes
  • Expo Updates Context is passed to native after native init to be available for crashes (#​4808)
  • Expo Updates Context values should all be lowercase (#​4809)
  • Avoid duplicate network requests (fetch, xhr) by default (#​4816)
    • traceFetch is disabled by default on mobile as RN uses a polyfill which will be traced by traceXHR
Changes
  • Renames enableExperimentalViewRenderer to enableViewRendererV2 which is enabled by default for up to 5x times more performance in Session Replay on iOS (#​4815)
Dependencies

v6.13.1

Compare Source

Fixes
  • Disable native driver for Feedback Widget backgroundColor animation in unsupported React Native versions (#​4794)
  • Fix Debug Symbolicator for local development builds (use RN 0.79 default exports) (#​4801)

v6.13.0

Compare Source

Changes
  • Fallback to Current Activity Holder when React Context Activity is not present (#​4779)
  • Support REACT_NATIVE_PATH env in Xcode Debug Files upload scripts (#​4789)
Fixes
  • Initialize Sentry Android with ApplicationContext if available (#​4780)
Dependencies

v6.12.0

Compare Source

Features
  • Add Expo Updates Event Context (#​4767, #​4786)
    • Automatically collects updateId, channel, Emergency Launch Reason and other Expo Updates constants
Fixes
  • Export extraErrorDataIntegration from @sentry/core (#​4762)
  • Remove @sentry-internal/replay when includeWebReplay: false (#​4774)
Dependencies

v6.11.0

Compare Source

Features
  • Improve Warm App Start reporting on Android (#​4641, #​4695)

  • Add createTimeToInitialDisplay({useFocusEffect}) and createTimeToFullDisplay({useFocusEffect}) to allow record full display on screen focus (#​4665)

  • Add support for measuring Time to Initial Display for already seen routes (#​4661)

    • Introduce enableTimeToInitialDisplayForPreloadedRoutes option to the React Navigation integration.
    Sentry.reactNavigationIntegration({
      enableTimeToInitialDisplayForPreloadedRoutes: true,
    });
  • Add useDispatchedActionData option to the React Navigation integration to filter out navigation actions that should not create spans (#​4684)

    • For example PRELOAD, SET_PARAMS, TOGGLE_DRAWER and others.
    Sentry.reactNavigationIntegration({
      useDispatchedActionData: true,
    });
Fixes
  • Equalize TTID and TTFD duration when TTFD manual API is called and resolved before auto TTID (#​4680)
  • Avoid loading Sentry native components in Expo Go (#​4696)
  • Avoid silent failure when JS bundle was not created due to Sentry Xcode scripts failure (#​4690)
  • Prevent crash on iOS during profiling stop when debug images are missing (#​4738)
  • Attach only App Starts within the 60s threshold (fixed comparison units, use ms) (#​4746)
  • Add missing popTimeToDisplayFor in to the Android Old Arch Native interface(#​4751)
Changes
  • Change gradle.projectsEvaluated to project.afterEvaluate in the Sentry Gradle Plugin to fix tasks not being created when using --configure-on-demand (#​4687)
  • Remove SENTRY_FORCE_FOREGROUND from Xcode Scripts as the underlying --force-foreground Sentry CLI is no-op since v2.37.0 (#​4689)
  • TTID and TTFD use native getters instead od events to pass timestamps to the JS layer (#​4669, #​4681)
Dependencies

v6.10.0

Compare Source

Features
  • Add thread information to spans (#​4579)

  • Exposed getDataFromUri as a public API to retrieve data from a URI (#​4638)

  • Add enableExperimentalViewRenderer to enable up to 5x times more performance in Session Replay on iOS (#​4660)

    import * as Sentry from '@&#8203;sentry/react-native';
    
    Sentry.init({
      integrations: [
        Sentry.mobileReplayIntegration({
          enableExperimentalViewRenderer: true,
        }),
      ],
    });
Fixes
  • Considers the SENTRY_DISABLE_AUTO_UPLOAD and SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD environment variables in the configuration of the Sentry Android Gradle Plugin for Expo plugin (#​4583)
  • Handle non-string category in getCurrentScreen on iOS (#​4629)
  • Use route name instead of route key for current route tracking (#​4650)
    • Using key caused user interaction transaction names to contain route hash in the name.
Dependencies

v6.9.1

Compare Source

Fixes
  • Fixes missing Cold Start measurements by bumping the Android SDK version to v7.22.1 (#​4643)
  • Attach App Start spans to the first created not the first processed root span (#​4618, #​4644)
Dependencies

v6.9.0

Compare Source

[!WARNING]
This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android.
See issue #​4598 for more details.

Features
  • User Feedback Widget Beta (#​4435)

    To collect user feedback from inside your application call Sentry.showFeedbackWidget().

    import Sentry from "@&#8203;sentry/react-native";
    
    Sentry.showFeedbackWidget();
    
    Sentry.wrap(RootComponent);

    To change the default options add Sentry.feedbackIntegration().

    import Sentry from "@&#8203;sentry/react-native";
    import * as ImagePicker from 'expo-image-picker';
    
    Sentry.init({
      integrations: [
        Sentry.feedbackIntegration({
          imagePicker: ImagePicker,
          showName: true,
          showEmail: true,
        }),
      ],
    });

    To learn more about the available configuration options visit the documentation.

v6.8.0

Compare Source

[!WARNING]
This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android.
See issue #​4598 for more details.

Features
  • Adds Sentry Android Gradle Plugin as an experimental Expo plugin feature (#​4440)

    To enable the plugin add the enableAndroidGradlePlugin in the @sentry/react-native/expo of the Expo application configuration.

    "plugins": [
      [
        "@&#8203;sentry/react-native/expo",
        {
          "experimental_android": {
            "enableAndroidGradlePlugin": true,
          }
        }
      ],

    To learn more about the available configuration options visit the documentation.

Fixes
  • Remove error: prefix from collect-modules.sh to avoid failing iOS builds (#​4570)
  • Sentry Module Collection Script Fails with Spaces in Node Path on iOS (#​4559)
  • Various crashes and issues of Session Replay on Android. See the Android SDK version bump for more details. (#​4529)
  • Sentry.setUser(null) doesn't crash on iOS with RN 0.77.1 (#​4567)
  • Avoid importing tslib in Sentry Metro Plugin (#​4573)
Dependencies

v6.7.0

Compare Source

[!WARNING]
This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android.
See issue #​4598 for more details.

Features
  • Add ignoredComponents option to annotateReactComponents to exclude specific components from React component annotations (#​4517)

    // metro.config.js
    // for React Native
    const config = withSentryConfig(mergedConfig, {
      annotateReactComponents: {
        ignoredComponents: ['MyCustomComponent']
      }
    });
    
    // for Expo
    const config = getSentryExpoConfig(__dirname, {
      annotateReactComponents: {
        ignoredComponents: ['MyCustomComponent'],
      },
    });
Dependencies

v6.6.0

Compare Source

[!WARNING]
This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android.
See issue [#​4598](https://redirect


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested review from drewvolz, hawkrives and rye as code owners October 9, 2025 09:58
@renovate renovate bot force-pushed the renovate/sentry-react-native-7.x branch from b04660f to 56bda95 Compare October 12, 2025 09:56
@renovate renovate bot force-pushed the renovate/sentry-react-native-7.x branch from 56bda95 to 0f281d3 Compare October 20, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant