Releases: getsentry/sentry-react-native
Releases ยท getsentry/sentry-react-native
7.9.0
Features
- Experimental support of UI profiling on Android (#5518)
- Expose iOS options to ignore views from subtree traversal (#5545)
- Use
includedViewClassesto only traverse specific view classes, orexcludedViewClassesto 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'], }), ], });
- Use
Fixes
- Fix duplicate error reporting on iOS with New Architecture (#5532)
- Fix for missing
replay_idfrom metrics (#5483) - Skip span ID check when standalone mode is enabled (#5493)
- Fix traces not always being attached to replays with errors (#5538)
Dependencies
7.8.0
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.freezetype pollution from@sentry-internal/replay(#5408)
Dependencies
7.7.0
Features
- Added
logsOriginto 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
enableLogsistrueand defaults to 'all', preserving previous behavior.
- Add
beforeErrorSamplingcallback tomobileReplayIntegration(#5393)
Fixes
- Preserves interaction span context during app restart to allow proper replay capture (#5386)
- Discard empty Route Change transactions (#5387)
Dependencies
- Bump JavaScript SDK from v10.24.0 to v10.26.0 (#5362, #5389)
- Bump CLI from v2.58.0 to v2.58.2 (#5363, #5371)
- Bump Android SDK from v8.25.0 to v8.27.0 (#5364, #5395)
- Bump Android SDK Stubs from v8.25.0 to v8.27.0 (#5365, #5396)
- Bump Cocoa SDK from v8.57.2 to v8.57.3 (#5375)
- Bump Bundler Plugins from v4.6.0 to v4.6.1 (#5394)
7.6.0
7.5.0
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
screenshotStrategytocanvas:import * as Sentry from '@sentry/react-native'; Sentry.init({ integrations: [ Sentry.mobileReplayIntegration({ screenshotStrategy: 'canvas', }), ], });
Fixes
- Fixes orientation change misalignment for session replay on Android (#5321)
- Sync
user.geofromSetUserto the native layer (#5302)
Dependencies
- Bump Bundler Plugins from v4.4.0 to v4.6.0 (#5283, #5314)
- Bump JavaScript SDK from v10.20.0 to v10.22.0 (#5289, #5306)
- Bump CLI from v2.56.1 to v2.57.0 (#5295)
- Bump Android SDK from v8.23.0 to v8.25.0 (#5292, #5318)
- Bump Android SDK Stubs from v8.23.0 to v8.25.0 (#5293, #5319)
- Bump Cocoa SDK from v8.57.0 to v8.57.1 (#5320)
7.4.0 (Stable)
Features
Fixes
- Fix compatibility with
react-native-legal(#5253)- The licenses json file is correctly generated and placed into the
res/folder now
- The licenses json file is correctly generated and placed into the
- Handle missing shouldAddToIgnoreList callback in Metro (#5260)
- Overrides the default Cocoa SDK behavior that disables Session Replay on iOS 26.0 (#5268)
- If you are using Apple's Liquid Glass we recommend that you disable Session Replay on iOS to prevent potential PII leaks (see sentry-cocoa 8.57.0 release note warning)
Dependencies
7.3.0
Features
- Adds support for Gradle 9 (#5233)
Fixes
- Updates
sentry-xcode.shand the default settings for theproject.pbxprojto 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 ifsendDefaultPiiistrue(#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
6.22.0 (Stable)
7.2.0 (Stable)
7.1.0 (Stable)
Fixes
-
Session Replay: Allow excluding
sentry-android-replayfrom android targets (#5174)- If you are not interested in using Session Replay, you can exclude the
sentry-android-replaymodule 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' } }
- If you are not interested in using Session Replay, you can exclude the