github getsentry/sentry-react-native 8.9.1

4 hours ago

Features

  • Add new @sentry/expo-upload-sourcemaps package for uploading JavaScript bundles and source maps from Expo builds to Sentry (#6027)
    • The existing sentry-expo-upload-sourcemaps bin bundled with @sentry/react-native is superseded by the new package; it continues to work unchanged for now
  • Expose scope-level attributes API (setAttribute, setAttributes, removeAttribute) bridging to native SDKs (#6009)
  • Expose screenshot masking options (screenshot.maskAllText, screenshot.maskAllImages, screenshot.maskedViewClasses, screenshot.unmaskedViewClasses) for error screenshots (#6007)
  • Warn Expo users at Metro startup when prebuilt native projects are missing Sentry configuration (#5984)
  • Re-export AI SDK manual instrumentation helpers (instrumentOpenAiClient, instrumentAnthropicAiClient, instrumentGoogleGenAIClient, createLangChainCallbackHandler, instrumentLangGraph, instrumentStateGraphCompile) for use in React Native apps (#6028)
  • Add Sentry.GlobalErrorBoundary component (and withGlobalErrorBoundary HOC) that renders a fallback UI for fatal non-rendering JS errors routed through ErrorUtils in addition to the render-phase errors caught by Sentry.ErrorBoundary. Opt-in flags includeNonFatalGlobalErrors and includeUnhandledRejections extend the fallback to non-fatal errors and unhandled promise rejections respectively. (#6023)

Fixes

  • Fix @sentry/expo-upload-sourcemaps publishing issue (#6037)
  • Fix iOS UI profiling options being silently ignored (#6012)
  • Fix _experiments.enableUnhandledCPPExceptionsV2 being silently ignored on iOS (#6014)
  • Check captureReplay return value in iOS bridge to avoid linking error events to uncaptured replays (#6008)
  • Report the expected properties file path and any missing keys when using flavorAware on Android, instead of failing with an opaque Illegal null value provided in this collection error (#6031)

Dependencies

Don't miss a new sentry-react-native release

NewReleases is sending notifications on new releases.