Warning
This release has a broken workspace-protocol dependency and cannot be installed; use 8.9.1
Features
- Add new
@sentry/expo-upload-sourcemapspackage for uploading JavaScript bundles and source maps from Expo builds to Sentry (#6027)- The existing
sentry-expo-upload-sourcemapsbin bundled with@sentry/react-nativeis superseded by the new package; it continues to work unchanged for now
- The existing
- 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.GlobalErrorBoundarycomponent (andwithGlobalErrorBoundaryHOC) that renders a fallback UI for fatal non-rendering JS errors routed throughErrorUtilsin addition to the render-phase errors caught bySentry.ErrorBoundary. Opt-in flagsincludeNonFatalGlobalErrorsandincludeUnhandledRejectionsextend the fallback to non-fatal errors and unhandled promise rejections respectively. (#6023)
Fixes
- Fix iOS UI profiling options being silently ignored (#6012)
- Fix
_experiments.enableUnhandledCPPExceptionsV2being silently ignored on iOS (#6014) - Check
captureReplayreturn 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
flavorAwareon Android, instead of failing with an opaqueIllegal null value provided in this collectionerror (#6031)