Update dependency @sentry/react-native to v7 #7321
                
     Open
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
5.9.1->7.4.0Release Notes
getsentry/sentry-react-native (@sentry/react-native)
v7.4.0Compare Source
Features
propagateTraceparent(#5277)Fixes
react-native-legal(#5253)res/folder nowDependencies
v7.3.0Compare Source
Features
Fixes
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)ReactNativeClient. This structure is getting re-created instead of being modified to ensure IP address is only inferred by Relay ifsendDefaultPiiistrue(#5202)SafeAreaView(#5241)Dependencies
v7.2.0Compare Source
Features
Fixes
metro/countLinesfunction to avoid issues with the private import (#5185)Dependencies
v7.1.0Compare Source
Fixes
Session Replay: Allow excluding
sentry-android-replayfrom android targets (#5174)sentry-android-replaymodule from your Android targets as follows (saves nearly 40KB compressed and 80KB uncompressed off the bundle size):Dependencies
v7.0.1Compare Source
Important Changes
This release includes a fix for a behaviour change
that was originally fixed on version 6.21.0 of the React Native SDK: User IP Addresses should only be added to Sentry events automatically,
if
sendDefaultPiiwas set totrue.To avoid making a major bump, the fix was patched on the current version and not by bumping to V8.
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: truein yourSentry.initoptions.We apologize for any inconvenience caused!
Fixes
sendDefaultPiiistrue(#5138)Dependencies
v7.0.0Compare Source
Upgrading from 6.x to 7.0
Version 7 of the Sentry React Native SDK primarily introduces API cleanup and version support changes based on the Sentry Javascript SDK versions 9 and 10. This update contains behavioral changes that will not be caught by type checkers, linters, or tests, so we recommend carefully reading through the entire migration guide instead of relying on automatic tooling.
Version 7 of the SDK is compatible with Sentry self-hosted versions 25.2.0 or higher (up from 24.4.2 for v6). Lower versions may continue to work, but may not support all features.
See our migration docs for more information.
Major Changes
Ensure IP address is only inferred by Relay if
sendDefaultPiiistrue(#5111)Set
{{auto}}ifuser.ip_addressisundefinedandsendDefaultPii: true(#4466)Sentry.captureUserFeedbackremoved, useSentry.captureFeedbackinstead (#4855)Exceptions from
captureConsoleIntegrationare now marked as handled: true by defaultshutdownTimeoutmoved fromcoreto@sentry/react-nativehasTracingEnabledwas renamed tohasSpansEnabledYou can no longer drop spans or return null on
beforeSendSpanhookTags formatting logic updated (#4965)
Here are the altered/unaltered types, make sure to update your UI filters and alerts.
Unaltered: string, null, number, and undefined values remain unchanged.
Altered: Boolean values are now capitalized: true -> True, false -> False.
Removed types
Other removed items.
autoSessionTrackingfrom options.To enable session tracking, ensure that
enableAutoSessionTrackingis enabled.enableTracing. Instead, settracesSampleRateto a value greater thanzerotoenable tracing,0to keep tracing integrations active without sampling, orundefinedto disable the performance integration.getCurrentHub(),Hub, andgetCurrentHubShim()spanIdfrom propagationcontexttransactionContextfromsamplingContext@sentry/utilspackage, the exports were moved to@sentry/coreClientinterface & deprecateBaseClientChanges
featureFlagsIntegration(#4984)loggerandconsoleLoggingIntegration(#4930)appOwnershipconstant use in Expo Go detection (#4893)Replayinterface forbrowserReplayIntegrationreturn type (#4858)browserReplayIntegrationwithoutisWebguard (#4858)encodeUTF8implementation through the SDK (#4885)TextEncoder(available with Hermes in React Native 0.74 or higher) to improve envelope encoding performance. (#4874)breadcrumbsIntegrationdisables React Native incompatible options automatically (#4886)scopeif custom scope is passed tostartSpanManualorstartSpanbrowserSessionIntegrationis added whenenableAutoSessionTrackingis set toTrue(#4732)Cold/Warm App Startspan description toCold/Warm Start(#4636)Features
To enable it add the following code to your Sentry Options:
You can also filter the logs being collected by adding
beforeSendLogsFixes
You can use strings to filter errors or RegEx for filtering with a pattern.
example:
traceFetchis disabled by default on mobile as RN uses a polyfill which will be traced bytraceXHRDependencies
v6.22.0Compare Source
Fixes
metro/countLinesfunction to avoid issues with the private import (#5185)Dependencies
v6.21.0Compare Source
Important Changes
sendDefaultPiiistrue(#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
sendDefaultPiiwas set totrue.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: truein yourSentry.initoptions.We apologize for any inconvenience caused!
Fixes
Dependencies
v6.20.0Compare Source
Features
Fixes
Dependencies
v6.19.0Compare Source
Fixes
sentry-clipath discovery not working on Android (#5009)addIntegrationfrom@sentry/core(#5020)Features
Adds
replaysSessionQualitySession Replay option to control replay quality and performance overhead on mobile (#5001)Dependencies
v6.18.1Compare Source
Fixes
v6.18.0Compare Source
Fixes
Dependencies
v6.17.0Compare Source
Features
Add experimental flag
enableUnhandledCPPExceptionsV2on iOS (#4975)Dependencies
v6.16.1Compare Source
Fixes
Dependencies
v6.16.0Compare Source
Features
Introducing
@sentry/react-native/playground(#4916)The new
withSentryPlaygroundcomponent allows developers to verifythat the SDK is properly configured and reports errors as expected.
Fixes
Sentry.setUseris prefilled in Feedback Widget (#4901)v6.15.1Compare Source
Dependencies
v6.15.0Compare Source
Features
User Feedback Widget Updates
FeedbackButtonfor easy access to the widget (#4378)ScreenshotButtonfor capturing the application visuals (#4714)To learn more visit the documentation.
Re-export
ErrorEventandTransactionEventtypes (#4859)Fixes
parentSpanIdwas removed (#4881)Dependencies
v6.14.0Compare Source
Fixes
traceFetchis disabled by default on mobile as RN uses a polyfill which will be traced bytraceXHRChanges
enableExperimentalViewRenderertoenableViewRendererV2which is enabled by default for up to 5x times more performance in Session Replay on iOS (#4815)Dependencies
v6.13.1Compare Source
Fixes
backgroundColoranimation in unsupported React Native versions (#4794)v6.13.0Compare Source
Changes
REACT_NATIVE_PATHenv in Xcode Debug Files upload scripts (#4789)Fixes
Dependencies
v6.12.0Compare Source
Features
updateId,channel, Emergency Launch Reason and other Expo Updates constantsFixes
extraErrorDataIntegrationfrom@sentry/core(#4762)@sentry-internal/replaywhenincludeWebReplay: false(#4774)Dependencies
v6.11.0Compare Source
Features
Improve Warm App Start reporting on Android (#4641, #4695)
Add
createTimeToInitialDisplay({useFocusEffect})andcreateTimeToFullDisplay({useFocusEffect})to allow record full display on screen focus (#4665)Add support for measuring Time to Initial Display for already seen routes (#4661)
enableTimeToInitialDisplayForPreloadedRoutesoption to the React Navigation integration.Add
useDispatchedActionDataoption to the React Navigation integration to filter out navigation actions that should not create spans (#4684)PRELOAD,SET_PARAMS,TOGGLE_DRAWERand others.Fixes
popTimeToDisplayForin to the Android Old Arch Native interface(#4751)Changes
gradle.projectsEvaluatedtoproject.afterEvaluatein the Sentry Gradle Plugin to fix tasks not being created when using--configure-on-demand(#4687)SENTRY_FORCE_FOREGROUNDfrom Xcode Scripts as the underlying--force-foregroundSentry CLI is no-op since v2.37.0 (#4689)Dependencies
v6.10.0Compare Source
Features
Add thread information to spans (#4579)
Exposed
getDataFromUrias a public API to retrieve data from a URI (#4638)Add
enableExperimentalViewRendererto enable up to 5x times more performance in Session Replay on iOS (#4660)Fixes
SENTRY_DISABLE_AUTO_UPLOADandSENTRY_DISABLE_NATIVE_DEBUG_UPLOADenvironment variables in the configuration of the Sentry Android Gradle Plugin for Expo plugin (#4583)Dependencies
v6.9.1Compare Source
Fixes
Dependencies
v6.9.0Compare Source
Features
User Feedback Widget Beta (#4435)
To collect user feedback from inside your application call
Sentry.showFeedbackWidget().To change the default options add
Sentry.feedbackIntegration().To learn more about the available configuration options visit the documentation.
v6.8.0Compare Source
Features
Adds Sentry Android Gradle Plugin as an experimental Expo plugin feature (#4440)
To enable the plugin add the
enableAndroidGradlePluginin the@sentry/react-native/expoof the Expo application configuration.To learn more about the available configuration options visit the documentation.
Fixes
error:prefix fromcollect-modules.shto avoid failing iOS builds (#4570)Sentry.setUser(null)doesn't crash on iOS with RN 0.77.1 (#4567)tslibin Sentry Metro Plugin (#4573)Dependencies
v6.7.0Compare Source
Features
Add
ignoredComponentsoption toannotateReactComponentsto exclude specific components from React component annotations (#4517)Dependencies
@sentry/babel-plugin-component-annotatefrom v2.20.1 to v3.1.2 (#4516)v6.6.0Compare Source
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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.