Skip to content

fix(deps): update dependency @sentry/react-native to v8#1209

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/sentry-react-native-8.x
Open

fix(deps): update dependency @sentry/react-native to v8#1209
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/sentry-react-native-8.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 15, 2026

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

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

Release Notes

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

v8.7.0

Compare Source

Features
  • Add Sentry.appLoaded() API to explicitly signal app start end (#​5940)
  • Add frames.delay span data from native SDKs to app start, TTID/TTFD, and JS API spans (#​5907)
  • Rename FeedbackWidget to FeedbackForm and showFeedbackWidget to showFeedbackForm (#​5931)
    • The old names are deprecated but still work
  • Deprecate FeedbackButton, showFeedbackButton, and hideFeedbackButton (#​5933)
Fixes
  • Fix inflated http.client span durations on iOS when the app backgrounds during a request (#​5944)
  • Fix crash caused by nullish response in supabase PostgREST handler (#​5938)
  • Fix iOS crash (EXC_BAD_ACCESS) in time-to-initial-display when navigating between screens (#​5887)
Dependencies

v8.6.0

Compare Source

Fixes
  • Session replay will no longer start recording when an event was ignored or dropped. (#​5885)
  • Capture native exceptions consumed by Expo's bridgeless error handling on Android (#​5871)
  • Fix SIGABRT crash on launch when mobileReplayIntegration is not configured and iOS deployment target >= 16.0 (#​5858)
  • Reduce reactNavigationIntegration performance overhead (#​5840, #​5842, #​5849)
  • Fix duplicated breadcrumbs on Android (#​5841)
Dependencies

v8.5.0

Compare Source

Features
  • Support SENTRY_ENVIRONMENT in bare React Native builds (#​5823)
  • Add expoUpdatesListenerIntegration that records breadcrumbs for Expo Updates lifecycle events (#​5795)
    • Tracks update checks, downloads, errors, rollbacks, and restarts as expo.updates breadcrumbs
    • Enabled by default in Expo apps (requires expo-updates to be installed)
  • feat(android): Expose enableAnrFingerprinting option (#​5838)
  • Show feedback widget on device shake (#​5754)
    • Use Sentry.enableFeedbackOnShake() / Sentry.disableFeedbackOnShake() or set feedbackIntegration({ enableShakeToReport: true })
Fixes
  • Fix native frames measurements being dropped due to race condition (#​5813)
  • Fix app start data lost when first navigation transaction is discarded (#​5833)
Dependencies

v8.4.0

Compare Source

Fixes
  • Pass screenshotStrategy option from mobileReplayIntegration to the Android native SDK (#​5808)
Features
  • Add wrapExpoImage and wrapExpoAsset for Expo performance monitoring (#​5427)
    • wrapExpoImage instruments Image.prefetch and Image.loadAsync from expo-image
    • wrapExpoAsset instruments Asset.loadAsync from expo-asset
    import { Image } from 'expo-image';
    import { Asset } from 'expo-asset';
    import * as Sentry from '@​sentry/react-native';
    
    Sentry.wrapExpoImage(Image);
    Sentry.wrapExpoAsset(Asset);
  • Adds tags with Expo Updates context variables to make them searchable and filterable (#​5788)
  • Automatically capture a warning event when Expo Updates performs an emergency launch (#​5794)
  • Adds environment configuration in the Expo config plugin. This can be set with the SENTRY_ENVIRONMENT env variable or in sentry.options.json (#​5796)
    ["@​sentry/react-native/expo", {
      "useNativeInit": true,
      "options": {
        "environment": "staging"
      }
    }]
  • Generate sentry.options.json from the Expo config plugin options property (#​5804)
    ["@​sentry/react-native/expo", {
      "useNativeInit": true,
      "options": {
        "dsn": "https://key@sentry.io/123",
        "tracesSampleRate": 1.0
      }
    }]
Fixes
  • Defer initial navigation span creation until navigation container is registered (#​5789)
  • Exclude server-only AI/MCP modules from native bundles, reducing bundle size by ~150kb (#​5802)
Dependencies

v8.3.0

Compare Source

Features
  • Add onNativeLog callback to intercept and forward native SDK logs to JavaScript console (#​5622)
    • The callback receives native log events with level, component, and message properties
    • Only works when debug: true is enabled in Sentry.init
    • Use consoleSandbox inside the callback to prevent feedback loops with Sentry's console integration
      import * as Sentry from '@​sentry/react-native';
      
      Sentry.init({
        debug: true,
        onNativeLog: ({ level, component, message }) => {
          // Use consoleSandbox to avoid feedback loops
          Sentry.consoleSandbox(() => {
            console.log(
              `[Sentry Native] [${level.toUpperCase()}] [${component}] ${message}`
            );
          });
        }
      });
  • Add expo constants on event context (#​5748)
  • Capture dynamic route params as span attributes for Expo Router navigations (#​5750)
  • EAS Build Hooks (#​5666)
    • Capture EAS build events in Sentry. Add the following to your package.json:
      {
        "scripts": {
          "eas-build-on-complete": "sentry-eas-build-on-complete"
        }
      }
      Set SENTRY_DSN in your EAS secrets, and optionally SENTRY_EAS_BUILD_CAPTURE_SUCCESS=true to also capture successful builds.
Fixes
  • App start data not attached to sampled transactions when preceded by unsampled transactions (#​5756)
  • Resolve relative SOURCEMAP_FILE paths against the project root in the Xcode build script (#​5730)
  • Fixes the issue with unit mismatch in adjustTransactionDuration (#​5740)
  • Handle inactive state for spans (#​5742)
Dependencies

v8.2.0

Compare Source

Fixes
  • Fix AGP Artifacts API conflict caused by eager task realization in sentry.gradle (#​5714)
  • Fix Android crash on app launch caused by version mismatch between Sentry Android SDK and Sentry Android Gradle Plugin (#​5726)
Dependencies

v8.1.0

Compare Source

Features
  • Add enableTombstone option for improved native crash reporting on Android 12+ (#​5680)
    • When enabled, uses Android's ApplicationExitInfo.REASON_CRASH_NATIVE to capture native crashes with more detailed thread information
    import * as Sentry from '@​sentry/react-native';
    
    Sentry.init({
      dsn: 'YOUR_DSN',
      enableTombstone: true,
    });
  • Expose iOS options to ignore views from subtree traversal in version 8 (#​5663)
    • Use includedViewClasses to only traverse specific view classes, or excludedViewClasses to skip problematic view classes during session replay and screenshot capture
    import * as Sentry from '@​sentry/react-native';
    
    Sentry.init({
      replaysSessionSampleRate: 1.0,
      integrations: [
        Sentry.mobileReplayIntegration({
          includedViewClasses: ['UILabel', 'UIView', 'MyCustomView'],
          excludedViewClasses: ['WKWebView', 'UIWebView'],
        }),
      ],
    });
Fixes
  • Fix race condition where iOS dSYM upload runs before debug symbols are fully generated (#​5653)
Dependencies

v8.0.0

Compare Source

Upgrading from 7.x to 8.0

Version 8 of the Sentry React Native SDK updates the underlying native SDKs (Cocoa v9, CLI v3, Android Gradle Plugin v6) which introduce breaking changes in minimum version requirements and build tooling.

See our migration docs for more information.

Breaking Changes
Minimum Version Requirements
  • iOS/macOS/tvOS: (#​5356)

    • iOS 15.0+ (previously 11.0+)
    • macOS 10.14+ (previously 10.13+)
    • tvOS 15.0+ (previously 11.0+)
  • Android: (#​5578)

    • Sentry Android Gradle Plugin 6.0.0 (previously 5.x)
    • Android Gradle Plugin 7.4.0+ (previously 7.3.0+)
    • Kotlin 1.8+
  • Sentry Self-Hosted: (#​5523)

    • Sentry CLI v3 requires self-hosted 25.11.1+ (previously 25.2.0)
Features
  • Capture App Start errors and crashes by initializing Sentry from sentry.options.json (#​4472)

    Create sentry.options.json in the React Native project root and set options the same as you currently have in Sentry.init in JS.

    {
        "dsn": "https://key@example.io/value",
    }

    Initialize Sentry on the native layers by newly provided native methods.

    import io.sentry.react.RNSentrySDK
    
    class MainApplication : Application(), ReactApplication {
        override fun onCreate() {
            super.onCreate()
            RNSentrySDK.init(this)
        }
    }
    #import <RNSentry/RNSentry.h>
    
    @&#8203;implementation AppDelegate
    - (BOOL)application:(UIApplication *)application
        didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        [RNSentrySDK start];
        return [super application:application didFinishLaunchingWithOptions:launchOptions];
    }
    @&#8203;end
  • Add RNSentrySDK APIs support to @​sentry/react-native/expo plugin (#​4633)

    • Adds useNativeInit option to automatically initialize Sentry natively before JavaScript loads, enabling capture of app start errors
    {
      "expo": {
        "plugins": [
          [
            "@&#8203;sentry/react-native/expo",
            {
              "useNativeInit": true
            }
          ]
        ]
      }
    }
Changes
  • Load optionsFile into the JS bundle during Metro bundle process (#​4476)
  • Add experimental version of startWithConfigureOptions for Apple platforms (#​4444)
  • Add experimental version of init with optional OptionsConfiguration<SentryAndroidOptions> for Android (#​4451)
  • Add initialization using sentry.options.json for Apple platforms (#​4447)
  • Add initialization using sentry.options.json for Android (#​4451)
  • Merge options from file with Sentry.init options in JS (#​4510)
Internal
  • Extract iOS native initialization to standalone structures (#​4442)
  • Extract Android native initialization to standalone structures (#​4445)
Dependencies

v7.13.0

Compare Source

Features
  • Add autoCorrect and spellCheck config options to FeedbackWidget (#​5627)
  • Add autoCapitalize="none" to FeedbackWidget email input (#​5627)
Fixes
  • Deep merge custom styles with defaults in FeedbackWidget instead of replacing them (#​5625)
    • Note that partial style overrides now preserve default properties like padding and borders
Dependencies

v7.12.1

Compare Source

Fixes
  • Revert inputPaths to fix circular dependency build errors on iOS (#​5644)

v7.12.0

Compare Source

[!WARNING]
This release contains an issue that can cause iOS builds to fail with circular dependency errors.
See issue #​5641 for more details.

Features
  • Extends the experimental support of UI profiling to iOS (#​5611)
    Sentry.init({
      _experiments: {
        profilingOptions: {
          profileSessionSampleRate: 1.0,
          lifecycle: 'trace', // or 'manual'
          startOnAppStart: true,
        },
      },
    });
    • Note that the androidProfilingOptions key is now deprecated, and profilingOptions should be used instead
  • Add performance tracking for Expo Router route prefetching (#​5606)
    • New wrapExpoRouter utility to instrument manual prefetch() calls with performance spans
    • New enablePrefetchTracking option for reactNavigationIntegration to automatically track PRELOAD actions
    // Option 1: Wrap the router for manual prefetch tracking
    import { wrapExpoRouter } from '@&#8203;sentry/react-native';
    import { useRouter } from 'expo-router';
    
    const router = wrapExpoRouter(useRouter());
    router.prefetch('/details'); // Creates a span measuring prefetch performance
    
    // Option 2: Enable automatic prefetch tracking in the integration
    Sentry.init({
      integrations: [
        Sentry.reactNavigationIntegration({
          enablePrefetchTracking: true,
        }),
      ],
    });
Fixes
  • Fix SENTRY_ALLOW_FAILURE environment variable not being respected in Xcode build scripts (#​5616)
  • Fix iOS dSYM upload for main app in Expo EAS builds by adding inputPaths to build phase (#​5617)
Dependencies

v7.11.0

Compare Source

Features
  • Add support for applying scope attributes to JS logs (#​5579)
  • Add experimental sentry-span-attributes prop to attach custom attributes to user interaction spans (#​5569)
    <Pressable
      sentry-label="checkout"
      sentry-span-attributes={{
        'user.type': 'premium',
        'cart.value': 150
      }}
      onPress={handleCheckout}>
      <Text>Checkout</Text>
    </Pressable>
Dependencies

v7.10.0

Compare Source

Fixes
  • Fixes Android incompatibility with Firebase dependencies (#​5563)
Dependencies

v7.9.0

Compare Source

Features
  • Experimental support of UI profiling on Android (#​5518)
  • Expose iOS options to ignore views from subtree traversal (#​5545)
    • Use includedViewClasses to only traverse specific view classes, or excludedViewClasses to skip problematic view classes during session replay and screenshot capture
    import * as Sentry from '@&#8203;sentry/react-native';
    
    Sentry.init({
      replaysSessionSampleRate: 1.0,
      integrations: [
        Sentry.mobileReplayIntegration({
          includedViewClasses: ['UILabel', 'UIView', 'MyCustomView'],
          excludedViewClasses: ['WKWebView', 'UIWebView'],
        }),
      ],
    });
Fixes
  • Fix duplicate error reporting on iOS with New Architecture (#​5532)
  • Fix for missing replay_id from metrics (#​5483)
  • Skip span ID check when standalone mode is enabled (#​5493)
  • Fix traces not always being attached to replays with errors (#​5538)
Dependencies

v7.8.0

Compare Source

Features
  • Adds Metrics Beta (#​5402)
  • Improves Expo Router integration to optionally include full paths to components instead of just component names (#​5414)
  • Report slow and frozen frames as TTID/TTFD span data (#​5419)
  • Report slow and frozen frames on spans created through the API (#​5420)
  • Improve performance by adding caching to getReplayId (#​5449)
Fixes
  • Fix Object.freeze type pollution from @sentry-internal/replay (#​5408)
Dependencies

v7.7.0

Compare Source

Features
  • Added logsOrigin to Sentry Options (#​5354)
    • You can now choose which logs are captured: 'native' for logs from native code only, 'js' for logs from the JavaScript layer only, or 'all' for both layers.
    • Takes effect only if enableLogs is true and defaults to 'all', preserving previous behavior.
  • Add beforeErrorSampling callback to mobileReplayIntegration (#​5393)
Fixes
  • Preserves interaction span context during app restart to allow proper replay capture (#​5386)
  • Discard empty Route Change transactions (#​5387)
Dependencies

v7.6.0

Compare Source

Fixes
  • Android SDK not being disabled when options.enabled is set to false (#​5334)
  • Fixes how bundle IDs are getting defined for individual bundles (#​5342)
Dependencies

v7.5.0

Compare Source

Features
  • Adds GraphQL integration (#​5299)
  • Adds Supabase integration (#​5296)
  • Add new experimental Canvas Capture Strategy for Session Replay (#​5301)
    • A new screenshot capture strategy that uses Android's Canvas API for more accurate and reliable text and image masking
    • Any .drawText() or .drawBitmap() calls are replaced by rectangles, ensuring no text or images are present in the resulting output
    • Note: If this strategy is used, all text and images will be masked, regardless of any masking configuration
    • To enable this feature, set the screenshotStrategy to canvas:
      import * as Sentry from '@&#8203;sentry/react-native';
      
      Sentry.init({
        integrations: [
          Sentry.mobileReplayIntegration({
            screenshotStrategy: 'canvas',
          }),
        ],
      });
Fixes
  • Fixes orientation change misalignment for session replay on Android (#​5321)
  • Sync user.geo from SetUser to the native layer (#​5302)
Dependencies

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

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • 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-8.x branch 7 times, most recently from d351de7 to 8a68c06 Compare March 21, 2026 22:17
@renovate renovate Bot force-pushed the renovate/sentry-react-native-8.x branch 6 times, most recently from a048c83 to fdfee84 Compare April 1, 2026 09:29
@renovate renovate Bot force-pushed the renovate/sentry-react-native-8.x branch 6 times, most recently from 0705d46 to 9af5ccc Compare April 9, 2026 12:54
@renovate renovate Bot force-pushed the renovate/sentry-react-native-8.x branch 7 times, most recently from 2ae0b23 to 9104925 Compare April 18, 2026 17:23
@renovate renovate Bot force-pushed the renovate/sentry-react-native-8.x branch 2 times, most recently from 890634c to 1d7f4a8 Compare April 25, 2026 13:04
@renovate renovate Bot force-pushed the renovate/sentry-react-native-8.x branch 3 times, most recently from 3b16a19 to 3d2f3a3 Compare May 2, 2026 14:04
@renovate renovate Bot force-pushed the renovate/sentry-react-native-8.x branch from 3d2f3a3 to 0661131 Compare May 8, 2026 05:06
@renovate renovate Bot force-pushed the renovate/sentry-react-native-8.x branch from 0661131 to 1d80072 Compare May 12, 2026 13:12
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.

0 participants