Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 1, 2025

This PR contains the following updates:

Package Change Age Confidence
@sentry/react-native ^5.36.0 -> ^6.22.0 age confidence

Release Notes

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

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 for more details.

Features
  • Send Sentry React Native SDK version in the Session Replay Events on iOS (#​4450)
Fixes
  • Add mechanism field to unhandled rejection errors (#​4457)
  • Use proper SDK name for Session Replay tags (#​4428)
  • Use makeDsn from core to extract the URL from DSN avoiding unimplemented URL.protocol errors (#​4395)
Changes
  • Rename navigation.processing span to more expressive Navigation dispatch to screen A mounted/navigation cancelled (#​4423)
  • Add RN SDK package to sdk.packages for Cocoa (#​4381)
Internal
  • Initialize RNSentryTimeToDisplay during native module init on iOS (#​4443)
Dependencies

v6.5.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
  • Mobile Session Replay is now generally available and ready for production use (#​4384)

    To learn about privacy, custom masking or performance overhead visit the documentation.

    import * as Sentry from '@&#8203;sentry/react-native';
    
    Sentry.init({
      replaysSessionSampleRate: 1.0,
      replaysOnErrorSampleRate: 1.0,
      integrations: [
        Sentry.mobileReplayIntegration({
          maskAllImages: true,
          maskAllVectors: true,
          maskAllText: true,
        }),
      ],
    });
  • Adds new captureFeedback and deprecates the captureUserFeedback API (#​4320)

    import * as Sentry from "@&#8203;sentry/react-native";
    
    const eventId = Sentry.lastEventId();
    
    Sentry.captureFeedback({
      name: "John Doe",
      email: "[email protected]",
      message: "Hello World!",
      associatedEventId: eventId, // optional
    });

    To learn how to attach context data to the feedback visit the documentation.

  • Export Span type from @sentry/types (#​4345)

  • Add RN SDK package to sdk.packages on Android (#​4380)

Fixes
  • Return lastEventId export from @sentry/core (#​4315)
  • Don't log file not found errors when loading envs in sentry-expo-upload-sourcemaps (#​4332)
  • Navigation Span should have no parent by default (#​4326)
  • Disable HTTP Client Errors on iOS (#​4347)
Changes
  • Falsy values of options.environment (empty string, undefined...) default to production
  • Deprecated _experiments.replaysSessionSampleRate and _experiments.replaysOnErrorSampleRate use replaysSessionSampleRate and replaysOnErrorSampleRate (#​4384)
Dependencies

v6.4.0

Compare Source

Features
  • Add Replay Custom Masking for iOS, Android and Web (#​4224, #​4265, #​4272, #​4314)

    import * as Sentry from '@&#8203;sentry/react-native';
    
    const Example = () => {
      return (
        <View>
          <Sentry.Mask>
            <Text>${"All children of Sentry.Mask will be masked."}</Text>
          </Sentry.Mask>
          <Sentry.Unmask>
            <Text>${"Only direct children of Sentry.Unmask will be unmasked."}</Text>
          </Sentry.Unmask>
        </View>
      );
    };

v6.3.0

Compare Source

Features
  • Add support for .env.sentry-build-plugin (#​4281)

    Don't commit the file to your repository. Use it to set your Sentry Auth Token.

    SENTRY_AUTH_TOKEN=your_token_here
    
  • Add Sentry Metro Server Source Context middleware (#​4287)

    This enables the SDK to add source context to locally symbolicated events using the Metro Development Server.
    The middleware can be disabled in metro.config.js using the enableSourceContextInDevelopment option.

    // Expo
    const { getSentryExpoConfig } = require('@&#8203;sentry/react-native/metro');
    const config = getSentryExpoConfig(__dirname, {
      enableSourceContextInDevelopment: false,
    });
    
    // React Native
    const { withSentryConfig } = require('@&#8203;sentry/react-native/metro');
    module.exports = withSentryConfig(config, {
      enableSourceContextInDevelopment: false,
    });
Fixes
  • Prevents exception capture context from being overwritten by native scope sync (#​4124)
  • Excludes Dev Server and Sentry Dsn requests from Breadcrumbs (#​4240)
  • Skips development server spans (#​4271)
  • Execute DebugSymbolicator after RewriteFrames to avoid overwrites by default (#​4285)
    • If custom RewriteFrames is provided the order changes
  • browserReplayIntegration is no longer included by default on React Native Web (#​4270)
  • Remove .sentry tmp directory and use environmental variables instead to save default Babel transformer path (#​4298)
    • This resolves concurrency issues when running multiple bundle processes
Dependencies

v6.2.0

Compare Source

Features
  • Enables Spotlight in Android and iOS SDKs (#​4211)

  • Add env flag SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD to allow disabling the debug file upload (#​4223)

    How to use in Android project? It works by default, just set export SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD=true in your build environment. For Sentry Android Gradle Plugin add the following to your android/app/build.gradle.

    apply from: "../../../sentry.gradle"
    
    sentry {
        autoUploadProguardMapping = shouldSentryAutoUpload()
        uploadNativeSymbols = shouldSentryAutoUpload()
    }

    How to use in Xcode? Make sure you are using scripts/sentry-xcode.sh and scripts/sentry-xcode-debug-files.sh in your
    build phases. And add the following to your ios/.xcode.env.local file.

    export SENTRY_DISABLE_NATIVE_DEBUG_UPLOAD=true
Fixes
  • Ignore JavascriptException to filter out obfuscated duplicate JS Errors on Android (#​4232)
  • Skips ignoring require cycle logs for RN 0.70 or newer (#​4214)
  • Enhanced accuracy of time-to-display spans. (#​4189)
  • Fix Replay redacting of RN Classes on iOS (#​4243)
  • Speed up getBinaryImages for finishing transactions and capturing events (#​4194)
  • Remove duplicate HTTP Client Errors on iOS (#​4250)
  • Replay maskAll* set to false on iOS kept all masked (#​4257)
  • Add missing getRootSpan, withActiveSpan and suppressTracing exports from @sentry/core, and SeverityLevel export from @sentry/types (#​4254, #​4260)
Dependencies

v6.1.0

Compare Source

Dependencies

v6.0.0

Compare Source

This is a new major version 6.0.0 of the Sentry React Native SDK.
To upgrade from the SDK version 5, please follow our migration guide.

Major Changes
  • React Native Tracing options were moved to the root options

    import * as Sentry from '@&#8203;sentry/react-native';
    
    Sentry.init({
      tracesSampleRate: 1.0,
      enableAppStartTracking: true, // default true
      enableNativeFramesTracking: true, // default true
      enableStallTracking: true, // default true
      enableUserInteractionTracing: true, // default false
      integrations: [
        Sentry.reactNativeTracingIntegration({
          beforeStartSpan: (startSpanOptions) => {
            startSpanOptions.name = 'New Name';
            return startSpanOptions;
          },
        }),
        Sentry.appStartIntegration({
          standalone: false, // default false
        }),
      ],
    });
  • New React Navigation Integration interface (#​4003)

    import * as Sentry from '@&#8203;sentry/react-native';
    import { NavigationContainer } f

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 is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates 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 force-pushed the renovate/sentry-react-native-6.x branch 4 times, most recently from 255cfdd to 4f802dd Compare October 4, 2025 05:28
@renovate renovate bot force-pushed the renovate/sentry-react-native-6.x branch from 4f802dd to c081c31 Compare October 4, 2025 09:25
@renovate renovate bot changed the title fix(deps): update dependency @sentry/react-native to v6 fix(deps): update dependency @sentry/react-native to v6 - autoclosed Oct 9, 2025
@renovate renovate bot closed this Oct 9, 2025
@renovate renovate bot deleted the renovate/sentry-react-native-6.x branch October 9, 2025 12:42
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