From 9689acf98e31a7f8fc598b2f8d9343b236d9d9df Mon Sep 17 00:00:00 2001 From: Rodrigo Lino da Costa Date: Wed, 9 Sep 2026 09:53:20 -0300 Subject: [PATCH 1/6] fix: upgrade React Native Sentry SDK --- package-lock.json | 729 +++++++++++++++++++++++++++++++++++++--------- package.json | 4 +- 2 files changed, 597 insertions(+), 136 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9bdfa1f7ded6..d3035c68f7f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -53,8 +53,8 @@ "@react-ng/bounds-observer": "^0.2.1", "@rnmapbox/maps": "10.3.2", "@sbaiahmed1/react-native-biometrics": "0.15.0", - "@sentry/core": "10.47.0", - "@sentry/react-native": "8.7.0", + "@sentry/core": "10.73.0", + "@sentry/react-native": "8.25.0", "@shopify/flash-list": "2.3.0", "@shopify/react-native-skia": "^2.4.18", "@ua/react-native-airship": "26.5.0", @@ -16161,56 +16161,6 @@ "react-native": "*" } }, - "node_modules/@sentry-internal/browser-utils": { - "version": "10.47.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-10.47.0.tgz", - "integrity": "sha512-bVFRAeJWMBcBCvJKIFCMJ1/yQToL4vPGqfmlnDZeypcxkqUDKQ/Y3ziLHXoDL2sx0lagcgU2vH1QhCQ67Aujjw==", - "license": "MIT", - "dependencies": { - "@sentry/core": "10.47.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@sentry-internal/feedback": { - "version": "10.47.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-10.47.0.tgz", - "integrity": "sha512-pdvMmi4dQpX5S/vAAzrhHPIw3T3HjUgDNgUiCBrlp7N9/6zGO2gNPhUnNekP+CjgI/z0rvf49RLqlDenpNrMOg==", - "license": "MIT", - "dependencies": { - "@sentry/core": "10.47.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@sentry-internal/replay": { - "version": "10.47.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-10.47.0.tgz", - "integrity": "sha512-ScdovxP7hJxgMt70+7hFvwT02GIaIUAxdEM/YPsayZBeCoAukPW8WiwztJfoKtsfPyKJ5A6f0H3PIxTPcA9Row==", - "license": "MIT", - "dependencies": { - "@sentry-internal/browser-utils": "10.47.0", - "@sentry/core": "10.47.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@sentry-internal/replay-canvas": { - "version": "10.47.0", - "resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-10.47.0.tgz", - "integrity": "sha512-A5OY8friSe6g8WAK4L8IeOPiEd9D3Ps40DzRH5j2f6SUja0t90mKMvHRcRf8zq0d4BkdB+JM7tjOkwxpuv8heA==", - "license": "MIT", - "dependencies": { - "@sentry-internal/replay": "10.47.0", - "@sentry/core": "10.47.0" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/@sentry/babel-plugin-component-annotate": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-5.2.0.tgz", @@ -16222,16 +16172,30 @@ } }, "node_modules/@sentry/browser": { - "version": "10.47.0", - "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-10.47.0.tgz", - "integrity": "sha512-rC0agZdxKA5XWfL4VwPOr/rJMogXDqZgnVzr93YWpFn9DMZT/7LzxSJVPIJwRUjx3bFEby3PcTa3YaX7pxm1AA==", + "version": "10.73.0", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-10.73.0.tgz", + "integrity": "sha512-HqTe1S5RrWLufhX2LaFP3yNoMxfNDroh120bq1zdGHZfFDBMJQ0CDXxHO+L4UJfQ5dWdCCzWbXIAiZuWGa/DFQ==", "license": "MIT", "dependencies": { - "@sentry-internal/browser-utils": "10.47.0", - "@sentry-internal/feedback": "10.47.0", - "@sentry-internal/replay": "10.47.0", - "@sentry-internal/replay-canvas": "10.47.0", - "@sentry/core": "10.47.0" + "@sentry/browser-utils": "10.73.0", + "@sentry/conventions": "^0.16.0", + "@sentry/core": "10.73.0", + "@sentry/feedback": "10.73.0", + "@sentry/replay": "10.73.0", + "@sentry/replay-canvas": "10.73.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/browser-utils": { + "version": "10.73.0", + "resolved": "https://registry.npmjs.org/@sentry/browser-utils/-/browser-utils-10.73.0.tgz", + "integrity": "sha512-qQygxJZ+RV779+iL1+lrJ4f4sZLgbgW0/JWPNp0YlcEAE62yCsdKbqoTEjB/EugdS4mSjBMX0chZC6rblu2Ycw==", + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.16.0", + "@sentry/core": "10.73.0" }, "engines": { "node": ">=18" @@ -16687,23 +16651,239 @@ "node": ">=18" } }, + "node_modules/@sentry/conventions": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@sentry/conventions/-/conventions-0.16.0.tgz", + "integrity": "sha512-fO9PLmHdVURcSPUpWCItWAtgKiMwGdJHbovoSEyLplX5sxs2ugvI4CBPTrkkgqhObnZOD0CnWBKDzSVQYBKEyQ==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, "node_modules/@sentry/core": { - "version": "10.47.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-10.47.0.tgz", - "integrity": "sha512-nsYRAx3EWezDut+Zl+UwwP07thh9uY7CfSAi2whTdcJl5hu1nSp2z8bba7Vq/MGbNLnazkd3A+GITBEML924JA==", + "version": "10.73.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-10.73.0.tgz", + "integrity": "sha512-FLO1UgH19RyasVpofu612WCOgb2nEH0dZy+R72d7p65XU9i0wxlMKm3+sgfwKmiSJp1Qhilaaxs4Jg6BbiM5HA==", "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.16.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps": { + "version": "8.25.0", + "resolved": "https://registry.npmjs.org/@sentry/expo-upload-sourcemaps/-/expo-upload-sourcemaps-8.25.0.tgz", + "integrity": "sha512-eiAXxyO20iHiwIWNQ67MMa8arNn1/XM65+8RvDrv3/tBxFnWvfcBX0vjqU/oWERUYANfZiQ/tjDjo9aMov8C3Q==", + "license": "MIT", + "dependencies": { + "@sentry/cli": "3.7.0" + }, + "bin": { + "expo-upload-sourcemaps": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@expo/env": "*", + "dotenv": "*" + }, + "peerDependenciesMeta": { + "@expo/env": { + "optional": true + }, + "dotenv": { + "optional": true + } + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-3.7.0.tgz", + "integrity": "sha512-UV6/hUaEL7X1ATx5RHPfDEObh+nTRwOeUkNwF6R+HDo6iAki063GiLOmkfroemkVD0L4370SSvGtc5+Y7MZkhQ==", + "hasInstallScript": true, + "license": "FSL-1.1-MIT", + "dependencies": { + "progress": "^2.0.3", + "proxy-from-env": "^1.1.0", + "undici": "^6.22.0", + "which": "^2.0.2" + }, + "bin": { + "sentry-cli": "bin/sentry-cli" + }, + "engines": { + "node": ">= 18" + }, + "optionalDependencies": { + "@sentry/cli-darwin": "3.7.0", + "@sentry/cli-linux-arm": "3.7.0", + "@sentry/cli-linux-arm64": "3.7.0", + "@sentry/cli-linux-i686": "3.7.0", + "@sentry/cli-linux-x64": "3.7.0", + "@sentry/cli-win32-arm64": "3.7.0", + "@sentry/cli-win32-i686": "3.7.0", + "@sentry/cli-win32-x64": "3.7.0" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli-darwin": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-darwin/-/cli-darwin-3.7.0.tgz", + "integrity": "sha512-Kb6Oem+6lfxkWSH8iz8DHwYmbMtYxFoTk3VHfeTkpz60TRj+0OPga/0ZEsCCgG/Df17E7z2kbkoe5Ld+dEj3Tw==", + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli-linux-arm": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm/-/cli-linux-arm-3.7.0.tgz", + "integrity": "sha512-PKEFwwRCOG92u2dXusLbRK4cZ7XXlaUY8TkhaZy/PJ/FNsST7Sh+MbdWQCgPB0FsvZrgImcKIEyCJZtc0GunJg==", + "cpu": [ + "arm" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "linux", + "freebsd", + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli-linux-arm64": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm64/-/cli-linux-arm64-3.7.0.tgz", + "integrity": "sha512-m6VlsDJBo9/9ufASv4m4heKS0zfgUJdcSvKgIQerZaLwKOfhY8OP7zhlJPkFmnFjOjyvNyaqzoR00EnlprdwFw==", + "cpu": [ + "arm64" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "linux", + "freebsd", + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli-linux-i686": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-i686/-/cli-linux-i686-3.7.0.tgz", + "integrity": "sha512-6NeOPqsPuyrOgVGPFunPxgqHCes+a8r6pbCgq9+qSD3oa5fk9H0KOKB0sIC0YyH43OGzdzmwn0XNbdF6jwJO6A==", + "cpu": [ + "x86", + "ia32" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "linux", + "freebsd", + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli-linux-x64": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-x64/-/cli-linux-x64-3.7.0.tgz", + "integrity": "sha512-74R9fuAldhC38Aoco8XQWTBvs2T2NatrDvI/ISHihej2oSnbQmL7krJF3yWn33MchQWrsFKgg7mboqemJnreZA==", + "cpu": [ + "x64" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "linux", + "freebsd", + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli-win32-arm64": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-arm64/-/cli-win32-arm64-3.7.0.tgz", + "integrity": "sha512-xhmTUW3N3m8iZ4mkV8SrNOr5UN8+6zpvlvJxCK6Z15Tp8S14N1T+hfKeyL2xpLxBcd7Q7oW1dYXUl5b7BHNqjw==", + "cpu": [ + "arm64" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli-win32-i686": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-i686/-/cli-win32-i686-3.7.0.tgz", + "integrity": "sha512-/CvFzrCWUB0URWKYQeoNs8UbPJcBz6KD/AX27reyQxPd8S3AnTwcaYfCf8SRHEH9Iu+1IKzi5tUUNUB18b7ijg==", + "cpu": [ + "x86", + "ia32" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/expo-upload-sourcemaps/node_modules/@sentry/cli-win32-x64": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-x64/-/cli-win32-x64-3.7.0.tgz", + "integrity": "sha512-PNW1O6sZw3JXhhJFgOiW7isFHX/qbniIDxswM7kb0wF2aVUpLXLltbezchWwTAxIRXo9gcu/oMTK0rntdqL5Eg==", + "cpu": [ + "x64" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/feedback": { + "version": "10.73.0", + "resolved": "https://registry.npmjs.org/@sentry/feedback/-/feedback-10.73.0.tgz", + "integrity": "sha512-D6nSngX+e46Mae2/oh2bxBvxNK1z2NERbuMAhB5sx9x4xMBWIyGnYYTECehvEqV9+AqGAgxxhOZoYIG3AmRwww==", + "license": "MIT", + "dependencies": { + "@sentry/core": "10.73.0" + }, "engines": { "node": ">=18" } }, "node_modules/@sentry/react": { - "version": "10.47.0", - "resolved": "https://registry.npmjs.org/@sentry/react/-/react-10.47.0.tgz", - "integrity": "sha512-ZtJV6xxF8jUVE9e3YQUG3Do0XapG1GjniyLyqMPgN6cNvs/HaRJODf7m60By+VGqcl5XArEjEPTvx8CdPUXDfA==", + "version": "10.73.0", + "resolved": "https://registry.npmjs.org/@sentry/react/-/react-10.73.0.tgz", + "integrity": "sha512-wJrzS98ddPvhGS/MKNHZyE8X7ecd4KwKdz7fHino2qkqBBrF4cxWr+q/uLTIk5PYWMkeJ4oKMjHAjOqmzGR4tg==", "license": "MIT", "dependencies": { - "@sentry/browser": "10.47.0", - "@sentry/core": "10.47.0" + "@sentry/browser": "10.73.0", + "@sentry/conventions": "^0.16.0", + "@sentry/core": "10.73.0" }, "engines": { "node": ">=18" @@ -16713,17 +16893,17 @@ } }, "node_modules/@sentry/react-native": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/@sentry/react-native/-/react-native-8.7.0.tgz", - "integrity": "sha512-15c7L/DW+Po2/6jmwEB+9A1F6SEKOjfUsKZ3wW059Qsksk2gkCS0eeOlkYs20L4ucnstDdDtQD846tZsaeGf7Q==", + "version": "8.25.0", + "resolved": "https://registry.npmjs.org/@sentry/react-native/-/react-native-8.25.0.tgz", + "integrity": "sha512-iYsa32WfiZN8JDaSxT1n0YwFUqvmAOWSRQaOonpxg7kkC77EQP1bOIkfWQvIfXbhrhwmRPTR8jhSQcLw0c/DDQ==", "license": "MIT", "dependencies": { - "@sentry/babel-plugin-component-annotate": "5.1.1", - "@sentry/browser": "10.47.0", - "@sentry/cli": "3.3.5", - "@sentry/core": "10.47.0", - "@sentry/react": "10.47.0", - "@sentry/types": "10.47.0" + "@sentry/browser": "10.73.0", + "@sentry/bundler-plugins": "10.73.0", + "@sentry/cli": "3.7.0", + "@sentry/core": "10.73.0", + "@sentry/expo-upload-sourcemaps": "8.25.0", + "@sentry/react": "10.73.0" }, "bin": { "sentry-eas-build-on-complete": "scripts/eas-build-hook.js", @@ -16742,19 +16922,205 @@ } } }, - "node_modules/@sentry/react-native/node_modules/@sentry/babel-plugin-component-annotate": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@sentry/babel-plugin-component-annotate/-/babel-plugin-component-annotate-5.1.1.tgz", - "integrity": "sha512-x2wEpBHwsTyTF2rWsLKJlzrRF1TTIGOfX+ngdE+Yd5DBkoS58HwQv824QOviPGQRla4/ypISqAXzjdDPL/zalg==", + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins": { + "version": "10.73.0", + "resolved": "https://registry.npmjs.org/@sentry/bundler-plugins/-/bundler-plugins-10.73.0.tgz", + "integrity": "sha512-4X5m2hoqgKO6SxHR7MF9QnvxPNk0hwTJFixDJ/pzQGVM+C34j/rSabouBqd0M+ZdxFeAt/9kA5X0TyeceNo9YQ==", "license": "MIT", + "dependencies": { + "@babel/core": "^7.18.5", + "@sentry/cli": "^2.58.6", + "@sentry/core": "10.73.0", + "dotenv": "^17.4.2", + "find-up": "^5.0.0", + "glob": "^13.0.6", + "magic-string": "~0.30.8" + }, "engines": { "node": ">= 18" + }, + "peerDependencies": { + "rollup": ">=3.2.0", + "webpack": ">=5.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + }, + "webpack": { + "optional": true + } + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-2.58.6.tgz", + "integrity": "sha512-baBcNPLLfUi9WuL+Tpri9BFaAdvugZIKelC5X0tt0Zdy+K0K+PCVSrnNmwMWU/HyaF/SEv6b6UHnXIdqanBlcg==", + "hasInstallScript": true, + "license": "FSL-1.1-MIT", + "dependencies": { + "https-proxy-agent": "^5.0.0", + "node-fetch": "^2.6.7", + "progress": "^2.0.3", + "proxy-from-env": "^1.1.0", + "which": "^2.0.2" + }, + "bin": { + "sentry-cli": "bin/sentry-cli" + }, + "engines": { + "node": ">= 10" + }, + "optionalDependencies": { + "@sentry/cli-darwin": "2.58.6", + "@sentry/cli-linux-arm": "2.58.6", + "@sentry/cli-linux-arm64": "2.58.6", + "@sentry/cli-linux-i686": "2.58.6", + "@sentry/cli-linux-x64": "2.58.6", + "@sentry/cli-win32-arm64": "2.58.6", + "@sentry/cli-win32-i686": "2.58.6", + "@sentry/cli-win32-x64": "2.58.6" + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli-darwin": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli-darwin/-/cli-darwin-2.58.6.tgz", + "integrity": "sha512-udAVvcyfNa0R+95GvPz/+43/N3TC0TYKdkQ7D7jhPSzbcMc7l2fxRNN5yB3UpCA5fWFnW4toeaqwDBhb/Wh3LA==", + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli-linux-arm": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm/-/cli-linux-arm-2.58.6.tgz", + "integrity": "sha512-pD0LAt5PcUzAinBwvDqc66x9+2CabHEv486yP0gRjWO7SakbaxmfVq/EXd8VLq/Tzi39LAu422UYK1lpW3MILw==", + "cpu": [ + "arm" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "linux", + "freebsd", + "android" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli-linux-arm64": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm64/-/cli-linux-arm64-2.58.6.tgz", + "integrity": "sha512-q8mEcNNmeXMy5i+jWT30TVpH7LcP4HD21CD5XRSPAd/a912HF6EpK0ybf/1USO14WOhoXbAGi9txwaWabSe33g==", + "cpu": [ + "arm64" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "linux", + "freebsd", + "android" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli-linux-i686": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-i686/-/cli-linux-i686-2.58.6.tgz", + "integrity": "sha512-q8vNJi1eOV/4vxAFWBsEwLHoSYapaZHIf4j76KJGJXFKTkEbsjCOOsKbwUIBTQQhRgV4DFWh3ryfsPS/que4Kg==", + "cpu": [ + "x86", + "ia32" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "linux", + "freebsd", + "android" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli-linux-x64": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-x64/-/cli-linux-x64-2.58.6.tgz", + "integrity": "sha512-DZu956Mhi3ZRjTBe1WdbGV46ldVbA8d2rgp/fh51GsI25zjBHah4wZnPTSzpc+YqxU6pJpg579B/r3jrIK530Q==", + "cpu": [ + "x64" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "linux", + "freebsd", + "android" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli-win32-arm64": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-arm64/-/cli-win32-arm64-2.58.6.tgz", + "integrity": "sha512-nj0Ff/kmAB73EPDhR8B4O9r+NUHK5GkPCkGWC+kXVemqAJWL5jcJ5KdxG0l/S0z6RoEoltID8/43/B+TaMlT7A==", + "cpu": [ + "arm64" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli-win32-i686": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-i686/-/cli-win32-i686-2.58.6.tgz", + "integrity": "sha512-WNZiDzPbgsEMQWq4avsQ391v/xWKJDIWWWo9GYl+N/w5qcYKkoDW7wQG7T9FasI6ENn68phChTOAPXXxbfAdOg==", + "cpu": [ + "x86", + "ia32" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@sentry/react-native/node_modules/@sentry/bundler-plugins/node_modules/@sentry/cli-win32-x64": { + "version": "2.58.6", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-x64/-/cli-win32-x64-2.58.6.tgz", + "integrity": "sha512-R35WJ17oF4D2eqI1DR2sQQqr0fjRTt5xoP16WrTu91XM2lndRMFsnjh+/GttbxapLCBNlrjzia99MJ0PZHZpgA==", + "cpu": [ + "x64" + ], + "license": "FSL-1.1-MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-3.3.5.tgz", - "integrity": "sha512-eyLHTj0rpeCsOUX+1ZU8UEWRXy6nXvTXNdhtAt1t6YXan9gSsAexZf28zVmDcYcP8WRbK0D2JMLp7NcaQCQgEA==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-3.7.0.tgz", + "integrity": "sha512-UV6/hUaEL7X1ATx5RHPfDEObh+nTRwOeUkNwF6R+HDo6iAki063GiLOmkfroemkVD0L4370SSvGtc5+Y7MZkhQ==", "hasInstallScript": true, "license": "FSL-1.1-MIT", "dependencies": { @@ -16770,20 +17136,20 @@ "node": ">= 18" }, "optionalDependencies": { - "@sentry/cli-darwin": "3.3.5", - "@sentry/cli-linux-arm": "3.3.5", - "@sentry/cli-linux-arm64": "3.3.5", - "@sentry/cli-linux-i686": "3.3.5", - "@sentry/cli-linux-x64": "3.3.5", - "@sentry/cli-win32-arm64": "3.3.5", - "@sentry/cli-win32-i686": "3.3.5", - "@sentry/cli-win32-x64": "3.3.5" + "@sentry/cli-darwin": "3.7.0", + "@sentry/cli-linux-arm": "3.7.0", + "@sentry/cli-linux-arm64": "3.7.0", + "@sentry/cli-linux-i686": "3.7.0", + "@sentry/cli-linux-x64": "3.7.0", + "@sentry/cli-win32-arm64": "3.7.0", + "@sentry/cli-win32-i686": "3.7.0", + "@sentry/cli-win32-x64": "3.7.0" } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli-darwin": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli-darwin/-/cli-darwin-3.3.5.tgz", - "integrity": "sha512-E/SIY6+j2nt6Ri9nMt78sYle3LiF6uZyz4HGmvcEMU6HXjegmAayhy0J10JST+vZTzN6VixD8sUsa5UeJiOPcg==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-darwin/-/cli-darwin-3.7.0.tgz", + "integrity": "sha512-Kb6Oem+6lfxkWSH8iz8DHwYmbMtYxFoTk3VHfeTkpz60TRj+0OPga/0ZEsCCgG/Df17E7z2kbkoe5Ld+dEj3Tw==", "license": "FSL-1.1-MIT", "optional": true, "os": [ @@ -16794,9 +17160,9 @@ } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli-linux-arm": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm/-/cli-linux-arm-3.3.5.tgz", - "integrity": "sha512-EGuEIvC2OQyar/vu+jAQEmovTMgxpoxdx5knnzL5dLhIemjEUNqwv/sXq+m/Aj+ThqCMofcTWB2TOZXsTtl0Tw==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm/-/cli-linux-arm-3.7.0.tgz", + "integrity": "sha512-PKEFwwRCOG92u2dXusLbRK4cZ7XXlaUY8TkhaZy/PJ/FNsST7Sh+MbdWQCgPB0FsvZrgImcKIEyCJZtc0GunJg==", "cpu": [ "arm" ], @@ -16812,9 +17178,9 @@ } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli-linux-arm64": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm64/-/cli-linux-arm64-3.3.5.tgz", - "integrity": "sha512-/W7HTk2OFKD0bguTvQR1ue6pkFQWaGiqPafOSIQKyq0aGfbZhBn/Uj+IRefgMZMhJQ29xRz0y/iGRGKE+ef4Vg==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-arm64/-/cli-linux-arm64-3.7.0.tgz", + "integrity": "sha512-m6VlsDJBo9/9ufASv4m4heKS0zfgUJdcSvKgIQerZaLwKOfhY8OP7zhlJPkFmnFjOjyvNyaqzoR00EnlprdwFw==", "cpu": [ "arm64" ], @@ -16830,9 +17196,9 @@ } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli-linux-i686": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli-linux-i686/-/cli-linux-i686-3.3.5.tgz", - "integrity": "sha512-qODMEWLEeUNp3IUlwwISB37EXSo8qgMmHQuLKfxDjpIKw+7NAFfptOloqPrHkLWK3TzFr+Nv643wIKZaYrz28Q==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-i686/-/cli-linux-i686-3.7.0.tgz", + "integrity": "sha512-6NeOPqsPuyrOgVGPFunPxgqHCes+a8r6pbCgq9+qSD3oa5fk9H0KOKB0sIC0YyH43OGzdzmwn0XNbdF6jwJO6A==", "cpu": [ "x86", "ia32" @@ -16849,9 +17215,9 @@ } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli-linux-x64": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli-linux-x64/-/cli-linux-x64-3.3.5.tgz", - "integrity": "sha512-DCz7lQ4PySjQ1WvWOQ/uTdwauRo1D7hSHazxZ+fUAnK/epSPM9qLkjDMlD8uM5CaLoR8+ZTs7N94vV5LZs2QpA==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-linux-x64/-/cli-linux-x64-3.7.0.tgz", + "integrity": "sha512-74R9fuAldhC38Aoco8XQWTBvs2T2NatrDvI/ISHihej2oSnbQmL7krJF3yWn33MchQWrsFKgg7mboqemJnreZA==", "cpu": [ "x64" ], @@ -16867,9 +17233,9 @@ } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli-win32-arm64": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli-win32-arm64/-/cli-win32-arm64-3.3.5.tgz", - "integrity": "sha512-VMNsHiyZcP8Ft3fcK/1zoO4L66soe1eSfXg2tglFQSc/2MYA5v1Br9B1GtjBwDIc3EmdPtFZhOGLyqIzszMxJw==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-arm64/-/cli-win32-arm64-3.7.0.tgz", + "integrity": "sha512-xhmTUW3N3m8iZ4mkV8SrNOr5UN8+6zpvlvJxCK6Z15Tp8S14N1T+hfKeyL2xpLxBcd7Q7oW1dYXUl5b7BHNqjw==", "cpu": [ "arm64" ], @@ -16883,9 +17249,9 @@ } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli-win32-i686": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli-win32-i686/-/cli-win32-i686-3.3.5.tgz", - "integrity": "sha512-BE6aHOIpsm4jgavsvvXNcSikAr/8NSva3rk1N3BzoOLuX+dcFxBI60K1i2VzB1vsgtivJJo9YySNCi60dBgWTg==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-i686/-/cli-win32-i686-3.7.0.tgz", + "integrity": "sha512-/CvFzrCWUB0URWKYQeoNs8UbPJcBz6KD/AX27reyQxPd8S3AnTwcaYfCf8SRHEH9Iu+1IKzi5tUUNUB18b7ijg==", "cpu": [ "x86", "ia32" @@ -16900,9 +17266,9 @@ } }, "node_modules/@sentry/react-native/node_modules/@sentry/cli-win32-x64": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@sentry/cli-win32-x64/-/cli-win32-x64-3.3.5.tgz", - "integrity": "sha512-MSU+PtBuiLjEbiPFOvxk4CI3TCagwkIg9kvJ+DrI3+pBY0Sga/dOyeWKTIgb01xSVcfjdw0UkpU52VCvzTT9ew==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/@sentry/cli-win32-x64/-/cli-win32-x64-3.7.0.tgz", + "integrity": "sha512-PNW1O6sZw3JXhhJFgOiW7isFHX/qbniIDxswM7kb0wF2aVUpLXLltbezchWwTAxIRXo9gcu/oMTK0rntdqL5Eg==", "cpu": [ "x64" ], @@ -16915,13 +17281,117 @@ "node": ">=18" } }, - "node_modules/@sentry/types": { - "version": "10.47.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-10.47.0.tgz", - "integrity": "sha512-WhV/ZO/a+3pU00rjXtb6WeZFZYn0Kz3JTc8Xvp7cx/D+kQJBm6b942TGb32UvnsglALLBxRyIBG+QO2u5r6cXw==", + "node_modules/@sentry/react-native/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/@sentry/react-native/node_modules/brace-expansion": { + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", + "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@sentry/react-native/node_modules/dotenv": { + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/@sentry/react-native/node_modules/glob": { + "version": "13.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", + "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^10.2.2", + "minipass": "^7.1.3", + "path-scurry": "^2.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@sentry/react-native/node_modules/lru-cache": { + "version": "11.5.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", + "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/@sentry/react-native/node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@sentry/react-native/node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@sentry/replay": { + "version": "10.73.0", + "resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-10.73.0.tgz", + "integrity": "sha512-nN2wjN/Y0J5BOJV5hqRHUEBfxwUsipp1PKjcDHh6Fpxnrtfldu3Y99E8cQInseo5heFdzEvrOHBBrqWZXOHVKQ==", + "license": "MIT", + "dependencies": { + "@sentry/browser-utils": "10.73.0", + "@sentry/core": "10.73.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@sentry/replay-canvas": { + "version": "10.73.0", + "resolved": "https://registry.npmjs.org/@sentry/replay-canvas/-/replay-canvas-10.73.0.tgz", + "integrity": "sha512-sxa2lKkHPfF/j5xFpW7gocthWXRqyoHz8KCPy6yGc8plT477nl57iGSKhQDYsx1Ny10TLjs7YkIuPP1GY/Ax2Q==", "license": "MIT", "dependencies": { - "@sentry/core": "10.47.0" + "@sentry/core": "10.73.0", + "@sentry/replay": "10.73.0" }, "engines": { "node": ">=18" @@ -18709,9 +19179,9 @@ "license": "MIT" }, "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", "license": "MIT" }, "node_modules/@types/geojson": { @@ -20330,7 +20800,6 @@ }, "node_modules/agent-base": { "version": "6.0.2", - "dev": true, "license": "MIT", "dependencies": { "debug": "4" @@ -23935,7 +24404,7 @@ }, "node_modules/dotenv": { "version": "16.4.5", - "dev": true, + "devOptional": true, "license": "BSD-2-Clause", "engines": { "node": ">=12" @@ -26464,7 +26933,6 @@ }, "node_modules/find-up": { "version": "5.0.0", - "devOptional": true, "license": "MIT", "dependencies": { "locate-path": "^6.0.0", @@ -26492,7 +26960,6 @@ }, "node_modules/find-up/node_modules/path-exists": { "version": "4.0.0", - "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -27795,7 +28262,6 @@ }, "node_modules/https-proxy-agent": { "version": "5.0.1", - "dev": true, "license": "MIT", "dependencies": { "agent-base": "6", @@ -32008,7 +32474,6 @@ }, "node_modules/locate-path": { "version": "6.0.0", - "devOptional": true, "license": "MIT", "dependencies": { "p-locate": "^5.0.0" @@ -32262,7 +32727,6 @@ "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" @@ -34011,7 +34475,6 @@ }, "node_modules/p-limit": { "version": "3.1.0", - "devOptional": true, "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" @@ -34025,7 +34488,6 @@ }, "node_modules/p-locate": { "version": "5.0.0", - "devOptional": true, "license": "MIT", "dependencies": { "p-limit": "^3.0.2" @@ -41612,7 +42074,6 @@ }, "node_modules/yocto-queue": { "version": "0.1.0", - "devOptional": true, "license": "MIT", "engines": { "node": ">=10" diff --git a/package.json b/package.json index fdcc3ba362b3..ccf72c05fabf 100644 --- a/package.json +++ b/package.json @@ -129,8 +129,8 @@ "@react-ng/bounds-observer": "^0.2.1", "@rnmapbox/maps": "10.3.2", "@sbaiahmed1/react-native-biometrics": "0.15.0", - "@sentry/core": "10.47.0", - "@sentry/react-native": "8.7.0", + "@sentry/core": "10.73.0", + "@sentry/react-native": "8.25.0", "@shopify/flash-list": "2.3.0", "@shopify/react-native-skia": "^2.4.18", "@ua/react-native-airship": "26.5.0", From 556d228c48675ea3af640d6aa07dbd8bd08580f4 Mon Sep 17 00:00:00 2001 From: Rodrigo Lino da Costa Date: Wed, 9 Sep 2026 10:06:55 -0300 Subject: [PATCH 2/6] fix: update Sentry patches --- ...owser+10.47.0+001+request-id-support.patch | 68 -------- .../@sentry+browser+10.73.0.patch | 60 +++++++ patches/sentry-browser/details.md | 4 +- ...0.47.0+001+data-sentry-label-support.patch | 156 ------------------ ...+core+10.47.0+002+request-id-support.patch | 16 -- .../@sentry+core+10.73.0+001+initial.patch | 123 ++++++++++++++ patches/sentry-core/details.md | 6 +- .../@sentry+react-native+8.7.0.patch | 33 ---- patches/sentry-react-native/details.md | 8 - 9 files changed, 187 insertions(+), 287 deletions(-) delete mode 100644 patches/sentry-browser/@sentry+browser+10.47.0+001+request-id-support.patch create mode 100644 patches/sentry-browser/@sentry+browser+10.73.0.patch delete mode 100644 patches/sentry-core/@sentry+core+10.47.0+001+data-sentry-label-support.patch delete mode 100644 patches/sentry-core/@sentry+core+10.47.0+002+request-id-support.patch create mode 100644 patches/sentry-core/@sentry+core+10.73.0+001+initial.patch delete mode 100644 patches/sentry-react-native/@sentry+react-native+8.7.0.patch delete mode 100644 patches/sentry-react-native/details.md diff --git a/patches/sentry-browser/@sentry+browser+10.47.0+001+request-id-support.patch b/patches/sentry-browser/@sentry+browser+10.47.0+001+request-id-support.patch deleted file mode 100644 index 8fde3791d606..000000000000 --- a/patches/sentry-browser/@sentry+browser+10.47.0+001+request-id-support.patch +++ /dev/null @@ -1,68 +0,0 @@ -diff --git a/node_modules/@sentry/browser/build/npm/cjs/dev/tracing/request.js b/node_modules/@sentry/browser/build/npm/cjs/dev/tracing/request.js -index eefbf8e..748fbfb 100644 ---- a/node_modules/@sentry/browser/build/npm/cjs/dev/tracing/request.js -+++ b/node_modules/@sentry/browser/build/npm/cjs/dev/tracing/request.js -@@ -229,6 +229,12 @@ function xhrCallback( - if (span) { - if (shouldCreateSpanResult && sentryXhrData.status_code !== undefined) { - core.setHttpStatus(span, sentryXhrData.status_code); -+ if (handlerData.xhr.getAllResponseHeaders().toLowerCase().includes('x-request-id')) { -+ const requestId = handlerData.xhr.getResponseHeader('x-request-id'); -+ if (requestId) { -+ span.setAttribute('request-id', requestId); -+ } -+ } - span.end(); - - onRequestSpanEnd?.(span, { -diff --git a/node_modules/@sentry/browser/build/npm/cjs/prod/tracing/request.js b/node_modules/@sentry/browser/build/npm/cjs/prod/tracing/request.js -index eefbf8e..748fbfb 100644 ---- a/node_modules/@sentry/browser/build/npm/cjs/prod/tracing/request.js -+++ b/node_modules/@sentry/browser/build/npm/cjs/prod/tracing/request.js -@@ -229,6 +229,12 @@ function xhrCallback( - if (span) { - if (shouldCreateSpanResult && sentryXhrData.status_code !== undefined) { - core.setHttpStatus(span, sentryXhrData.status_code); -+ if (handlerData.xhr.getAllResponseHeaders().toLowerCase().includes('x-request-id')) { -+ const requestId = handlerData.xhr.getResponseHeader('x-request-id'); -+ if (requestId) { -+ span.setAttribute('request-id', requestId); -+ } -+ } - span.end(); - - onRequestSpanEnd?.(span, { -diff --git a/node_modules/@sentry/browser/build/npm/esm/dev/tracing/request.js b/node_modules/@sentry/browser/build/npm/esm/dev/tracing/request.js -index 15f9a43..7c3b557 100644 ---- a/node_modules/@sentry/browser/build/npm/esm/dev/tracing/request.js -+++ b/node_modules/@sentry/browser/build/npm/esm/dev/tracing/request.js -@@ -227,6 +227,12 @@ function xhrCallback( - if (span) { - if (shouldCreateSpanResult && sentryXhrData.status_code !== undefined) { - setHttpStatus(span, sentryXhrData.status_code); -+ if (handlerData.xhr.getAllResponseHeaders().toLowerCase().includes('x-request-id')) { -+ const requestId = handlerData.xhr.getResponseHeader('x-request-id'); -+ if (requestId) { -+ span.setAttribute('request-id', requestId); -+ } -+ } - span.end(); - - onRequestSpanEnd?.(span, { -diff --git a/node_modules/@sentry/browser/build/npm/esm/prod/tracing/request.js b/node_modules/@sentry/browser/build/npm/esm/prod/tracing/request.js -index 15f9a43..7c3b557 100644 ---- a/node_modules/@sentry/browser/build/npm/esm/prod/tracing/request.js -+++ b/node_modules/@sentry/browser/build/npm/esm/prod/tracing/request.js -@@ -227,6 +227,12 @@ function xhrCallback( - if (span) { - if (shouldCreateSpanResult && sentryXhrData.status_code !== undefined) { - setHttpStatus(span, sentryXhrData.status_code); -+ if (handlerData.xhr.getAllResponseHeaders().toLowerCase().includes('x-request-id')) { -+ const requestId = handlerData.xhr.getResponseHeader('x-request-id'); -+ if (requestId) { -+ span.setAttribute('request-id', requestId); -+ } -+ } - span.end(); - - onRequestSpanEnd?.(span, { diff --git a/patches/sentry-browser/@sentry+browser+10.73.0.patch b/patches/sentry-browser/@sentry+browser+10.73.0.patch new file mode 100644 index 000000000000..d12f66cd57fa --- /dev/null +++ b/patches/sentry-browser/@sentry+browser+10.73.0.patch @@ -0,0 +1,60 @@ +diff --git a/node_modules/@sentry/browser/build/npm/cjs/dev/tracing/request.js b/node_modules/@sentry/browser/build/npm/cjs/dev/tracing/request.js +index e964754..f31df07 100644 +--- a/node_modules/@sentry/browser/build/npm/cjs/dev/tracing/request.js ++++ b/node_modules/@sentry/browser/build/npm/cjs/dev/tracing/request.js +@@ -149,6 +149,10 @@ function xhrCallback(handlerData, shouldCreateSpan, shouldAttachHeaders2, spans, + if (span2) { + if (shouldCreateSpanResult && sentryXhrData.status_code !== void 0) { + browser.setHttpStatus(span2, sentryXhrData.status_code); ++ const requestId = xhr.getResponseHeader("x-request-id"); ++ if (requestId) { ++ span2.setAttribute("request-id", requestId); ++ } + span2.end(); + onRequestSpanEnd?.(span2, { + headers: utils.createHeadersSafely(browserUtils.parseXhrResponseHeaders(xhr)), +diff --git a/node_modules/@sentry/browser/build/npm/cjs/prod/tracing/request.js b/node_modules/@sentry/browser/build/npm/cjs/prod/tracing/request.js +index e964754..f31df07 100644 +--- a/node_modules/@sentry/browser/build/npm/cjs/prod/tracing/request.js ++++ b/node_modules/@sentry/browser/build/npm/cjs/prod/tracing/request.js +@@ -149,6 +149,10 @@ function xhrCallback(handlerData, shouldCreateSpan, shouldAttachHeaders2, spans, + if (span2) { + if (shouldCreateSpanResult && sentryXhrData.status_code !== void 0) { + browser.setHttpStatus(span2, sentryXhrData.status_code); ++ const requestId = xhr.getResponseHeader("x-request-id"); ++ if (requestId) { ++ span2.setAttribute("request-id", requestId); ++ } + span2.end(); + onRequestSpanEnd?.(span2, { + headers: utils.createHeadersSafely(browserUtils.parseXhrResponseHeaders(xhr)), +diff --git a/node_modules/@sentry/browser/build/npm/esm/dev/tracing/request.js b/node_modules/@sentry/browser/build/npm/esm/dev/tracing/request.js +index ff4e893..f5ec87d 100644 +--- a/node_modules/@sentry/browser/build/npm/esm/dev/tracing/request.js ++++ b/node_modules/@sentry/browser/build/npm/esm/dev/tracing/request.js +@@ -147,6 +147,10 @@ function xhrCallback(handlerData, shouldCreateSpan, shouldAttachHeaders2, spans, + if (span2) { + if (shouldCreateSpanResult && sentryXhrData.status_code !== void 0) { + setHttpStatus(span2, sentryXhrData.status_code); ++ const requestId = xhr.getResponseHeader("x-request-id"); ++ if (requestId) { ++ span2.setAttribute("request-id", requestId); ++ } + span2.end(); + onRequestSpanEnd?.(span2, { + headers: createHeadersSafely(parseXhrResponseHeaders(xhr)), +diff --git a/node_modules/@sentry/browser/build/npm/esm/prod/tracing/request.js b/node_modules/@sentry/browser/build/npm/esm/prod/tracing/request.js +index ff4e893..f5ec87d 100644 +--- a/node_modules/@sentry/browser/build/npm/esm/prod/tracing/request.js ++++ b/node_modules/@sentry/browser/build/npm/esm/prod/tracing/request.js +@@ -147,6 +147,10 @@ function xhrCallback(handlerData, shouldCreateSpan, shouldAttachHeaders2, spans, + if (span2) { + if (shouldCreateSpanResult && sentryXhrData.status_code !== void 0) { + setHttpStatus(span2, sentryXhrData.status_code); ++ const requestId = xhr.getResponseHeader("x-request-id"); ++ if (requestId) { ++ span2.setAttribute("request-id", requestId); ++ } + span2.end(); + onRequestSpanEnd?.(span2, { + headers: createHeadersSafely(parseXhrResponseHeaders(xhr)), diff --git a/patches/sentry-browser/details.md b/patches/sentry-browser/details.md index 47312e3a290a..97ce8350c521 100644 --- a/patches/sentry-browser/details.md +++ b/patches/sentry-browser/details.md @@ -1,8 +1,8 @@ # `@sentry/browser` patches -### [@sentry+browser+10.47.0+001+request-id-support.patch](@sentry+browser+10.47.0+001+request-id-support.patch) +### [@sentry+browser+10.73.0.patch](@sentry+browser+10.73.0.patch) -Reason: improve developer experience by adding `request-id` to spans related to API calls. This takes request-id from response headers and write it to the span related to that response. With that information it is easier to connect backend request / logs with data retrieved from Sentry. +Reason: improve developer experience by adding `request-id` to XHR spans related to API calls. This takes `request-id` from response headers and writes it to the associated span, making it easier to correlate Sentry data with backend logs. - Upstream PR/issue: N/A - E/App issue: https://github.com/Expensify/App/issues/75588 - PR Introducing Patch: https://github.com/Expensify/App/pull/79883 diff --git a/patches/sentry-core/@sentry+core+10.47.0+001+data-sentry-label-support.patch b/patches/sentry-core/@sentry+core+10.47.0+001+data-sentry-label-support.patch deleted file mode 100644 index 3791c1e786fe..000000000000 --- a/patches/sentry-core/@sentry+core+10.47.0+001+data-sentry-label-support.patch +++ /dev/null @@ -1,156 +0,0 @@ -diff --git a/node_modules/@sentry/core/build/cjs/utils/browser.js b/node_modules/@sentry/core/build/cjs/utils/browser.js -index 1bdc52f..71de87f 100644 ---- a/node_modules/@sentry/core/build/cjs/utils/browser.js -+++ b/node_modules/@sentry/core/build/cjs/utils/browser.js -@@ -9,8 +9,8 @@ const DEFAULT_MAX_STRING_LENGTH = 80; - - /** - * Given a child DOM element, returns a query-selector statement describing that -- * and its ancestors -- * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz] -+ * and its ancestors, prefixed with data-sentry-label if found on ancestor -+ * e.g. [HTMLElement] => [data-sentry-label="MyLabel"] div.css-146c3p1.r-1udh08x.r-1udbk01.r-1iln25a > svg - * @returns generated DOM path - */ - function htmlTreeAsString( -@@ -53,7 +53,47 @@ function htmlTreeAsString( - currentElem = currentElem.parentNode; - } - -- return out.reverse().join(separator); -+ const cssSelector = out.reverse().join(separator); -+ -+ // Search for data-sentry-label and data-tag="pressable" up to 15 levels -+ let labelElem = null; -+ let dataLabel = null; -+ let pressableElem = null; -+ let current = elem; -+ for (let i = 0; i < 15 && current; i++) { -+ // @ts-expect-error WINDOW has HTMLElement -+ if (WINDOW.HTMLElement && current instanceof HTMLElement && current.dataset) { -+ if (current.getAttribute('aria-disabled') === 'true') { -+ current = current.parentNode; -+ continue; -+ } -+ if (!dataLabel && current.dataset['sentryLabel']) { -+ dataLabel = current.dataset['sentryLabel']; -+ labelElem = current; -+ } -+ if (!pressableElem && current.dataset['tag'] === 'pressable') { -+ pressableElem = current; -+ } -+ if (dataLabel && pressableElem) break; -+ } -+ current = current.parentNode; -+ } -+ -+ if (!dataLabel) { -+ return cssSelector; -+ } -+ -+ // If the first active pressable and the first label are on the same element, the label alone identifies the interaction -+ if (pressableElem && labelElem === pressableElem) { -+ return `[data-sentry-label="${dataLabel}"]`; -+ } -+ -+ // If the label was found within the 5-level CSS selector, return as is -+ if (cssSelector.includes('[data-sentry-label="')) { -+ return cssSelector; -+ } -+ -+ return `[data-sentry-label="${dataLabel}"] ${cssSelector}`; - } catch { - return ''; - } -@@ -77,8 +117,12 @@ function _htmlElementAsString(el, keyAttrs) { - - // @ts-expect-error WINDOW has HTMLElement - if (WINDOW.HTMLElement) { -- // If using the component name annotation plugin, this value may be available on the DOM node - if (elem instanceof HTMLElement && elem.dataset) { -+ // Check for data-sentry-label first - return in attribute format [data-sentry-label="value"] -+ if (elem.dataset['sentryLabel']) { -+ return `[data-sentry-label="${elem.dataset['sentryLabel']}"]`; -+ } -+ // If using the component name annotation plugin, this value may be available on the DOM node - if (elem.dataset['sentryComponent']) { - return elem.dataset['sentryComponent']; - } -diff --git a/node_modules/@sentry/core/build/esm/utils/browser.js b/node_modules/@sentry/core/build/esm/utils/browser.js -index 5e593f3..e024d2f 100644 ---- a/node_modules/@sentry/core/build/esm/utils/browser.js -+++ b/node_modules/@sentry/core/build/esm/utils/browser.js -@@ -7,8 +7,8 @@ const DEFAULT_MAX_STRING_LENGTH = 80; - - /** - * Given a child DOM element, returns a query-selector statement describing that -- * and its ancestors -- * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz] -+ * and its ancestors, prefixed with data-sentry-label if found on ancestor -+ * e.g. [HTMLElement] => [data-sentry-label="MyLabel"] div.css-146c3p1.r-1udh08x.r-1udbk01.r-1iln25a > svg - * @returns generated DOM path - */ - function htmlTreeAsString( -@@ -51,7 +51,47 @@ function htmlTreeAsString( - currentElem = currentElem.parentNode; - } - -- return out.reverse().join(separator); -+ const cssSelector = out.reverse().join(separator); -+ -+ // Search for data-sentry-label and data-tag="pressable" up to 15 levels -+ let labelElem = null; -+ let dataLabel = null; -+ let pressableElem = null; -+ let current = elem; -+ for (let i = 0; i < 15 && current; i++) { -+ // @ts-expect-error WINDOW has HTMLElement -+ if (WINDOW.HTMLElement && current instanceof HTMLElement && current.dataset) { -+ if (current.getAttribute('aria-disabled') === 'true') { -+ current = current.parentNode; -+ continue; -+ } -+ if (!dataLabel && current.dataset['sentryLabel']) { -+ dataLabel = current.dataset['sentryLabel']; -+ labelElem = current; -+ } -+ if (!pressableElem && current.dataset['tag'] === 'pressable') { -+ pressableElem = current; -+ } -+ if (dataLabel && pressableElem) break; -+ } -+ current = current.parentNode; -+ } -+ -+ if (!dataLabel) { -+ return cssSelector; -+ } -+ -+ // If the first active pressable and the first label are on the same element, the label alone identifies the interaction -+ if (pressableElem && labelElem === pressableElem) { -+ return `[data-sentry-label="${dataLabel}"]`; -+ } -+ -+ // If the label was found within the 5-level CSS selector, return as is -+ if (cssSelector.includes('[data-sentry-label="')) { -+ return cssSelector; -+ } -+ -+ return `[data-sentry-label="${dataLabel}"] ${cssSelector}`; - } catch { - return ''; - } -@@ -75,8 +115,12 @@ function _htmlElementAsString(el, keyAttrs) { - - // @ts-expect-error WINDOW has HTMLElement - if (WINDOW.HTMLElement) { -- // If using the component name annotation plugin, this value may be available on the DOM node - if (elem instanceof HTMLElement && elem.dataset) { -+ // Check for data-sentry-label first - return in attribute format [data-sentry-label="value"] -+ if (elem.dataset['sentryLabel']) { -+ return `[data-sentry-label="${elem.dataset['sentryLabel']}"]`; -+ } -+ // If using the component name annotation plugin, this value may be available on the DOM node - if (elem.dataset['sentryComponent']) { - return elem.dataset['sentryComponent']; - } diff --git a/patches/sentry-core/@sentry+core+10.47.0+002+request-id-support.patch b/patches/sentry-core/@sentry+core+10.47.0+002+request-id-support.patch deleted file mode 100644 index d2ab2a024cc3..000000000000 --- a/patches/sentry-core/@sentry+core+10.47.0+002+request-id-support.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/node_modules/@sentry/core/build/esm/fetch.js b/node_modules/@sentry/core/build/esm/fetch.js -index 57426a7..29b1182 100644 ---- a/node_modules/@sentry/core/build/esm/fetch.js -+++ b/node_modules/@sentry/core/build/esm/fetch.js -@@ -241,7 +241,10 @@ function _addTracingHeadersToFetchRequest( - function endSpan(span, handlerData) { - if (handlerData.response) { - setHttpStatus(span, handlerData.response.status); -- -+ const requestId = handlerData.response?.headers?.get('x-request-id'); -+ if (requestId) { -+ span.setAttribute('request-id', requestId) -+ } - const contentLength = handlerData.response?.headers?.get('content-length'); - - if (contentLength) { diff --git a/patches/sentry-core/@sentry+core+10.73.0+001+initial.patch b/patches/sentry-core/@sentry+core+10.73.0+001+initial.patch new file mode 100644 index 000000000000..e7b617fb3000 --- /dev/null +++ b/patches/sentry-core/@sentry+core+10.73.0+001+initial.patch @@ -0,0 +1,123 @@ +diff --git a/node_modules/@sentry/core/build/cjs/utils/browser.js b/node_modules/@sentry/core/build/cjs/utils/browser.js +index 9880e2d..6aee1b0 100644 +--- a/node_modules/@sentry/core/build/cjs/utils/browser.js ++++ b/node_modules/@sentry/core/build/cjs/utils/browser.js +@@ -29,7 +29,38 @@ function htmlTreeAsString(elem, options = {}) { + len += nextStr.length; + currentElem = currentElem.parentNode; + } +- return out.reverse().join(separator); ++ const cssSelector = out.reverse().join(separator); ++ let labelElem = null; ++ let dataLabel = null; ++ let pressableElem = null; ++ let current = elem; ++ for (let i = 0; i < 15 && current; i++) { ++ if (WINDOW.HTMLElement && current instanceof HTMLElement && current.dataset) { ++ if (current.getAttribute("aria-disabled") === "true") { ++ current = current.parentNode; ++ continue; ++ } ++ if (!dataLabel && current.dataset["sentryLabel"]) { ++ dataLabel = current.dataset["sentryLabel"]; ++ labelElem = current; ++ } ++ if (!pressableElem && current.dataset["tag"] === "pressable") { ++ pressableElem = current; ++ } ++ if (dataLabel && pressableElem) break; ++ } ++ current = current.parentNode; ++ } ++ if (!dataLabel) { ++ return cssSelector; ++ } ++ if (pressableElem && labelElem === pressableElem) { ++ return `[data-sentry-label="${dataLabel}"]`; ++ } ++ if (cssSelector.includes('[data-sentry-label="')) { ++ return cssSelector; ++ } ++ return `[data-sentry-label="${dataLabel}"] ${cssSelector}`; + } catch { + return ""; + } +@@ -42,6 +73,9 @@ function _htmlElementAsString(el, keyAttrs) { + } + if (WINDOW.HTMLElement) { + if (elem instanceof HTMLElement && elem.dataset) { ++ if (elem.dataset["sentryLabel"]) { ++ return `[data-sentry-label="${elem.dataset["sentryLabel"]}"]`; ++ } + if (elem.dataset["sentryComponent"]) { + return elem.dataset["sentryComponent"]; + } +diff --git a/node_modules/@sentry/core/build/esm/fetch.js b/node_modules/@sentry/core/build/esm/fetch.js +index b8fac8e..14ac969 100644 +--- a/node_modules/@sentry/core/build/esm/fetch.js ++++ b/node_modules/@sentry/core/build/esm/fetch.js +@@ -146,6 +146,10 @@ function _INTERNAL_getTracingHeadersForFetchRequest(request, fetchOptionsObj, sp + function endSpan(span, handlerData) { + if (handlerData.response) { + setHttpStatus(span, handlerData.response.status); ++ const requestId = handlerData.response.headers?.get("x-request-id"); ++ if (requestId) { ++ span.setAttribute("request-id", requestId); ++ } + const contentLength = handlerData.response?.headers?.get("content-length"); + if (contentLength) { + const contentLengthNum = parseInt(contentLength); +diff --git a/node_modules/@sentry/core/build/esm/utils/browser.js b/node_modules/@sentry/core/build/esm/utils/browser.js +index ca93f32..502acba 100644 +--- a/node_modules/@sentry/core/build/esm/utils/browser.js ++++ b/node_modules/@sentry/core/build/esm/utils/browser.js +@@ -27,7 +27,38 @@ function htmlTreeAsString(elem, options = {}) { + len += nextStr.length; + currentElem = currentElem.parentNode; + } +- return out.reverse().join(separator); ++ const cssSelector = out.reverse().join(separator); ++ let labelElem = null; ++ let dataLabel = null; ++ let pressableElem = null; ++ let current = elem; ++ for (let i = 0; i < 15 && current; i++) { ++ if (WINDOW.HTMLElement && current instanceof HTMLElement && current.dataset) { ++ if (current.getAttribute("aria-disabled") === "true") { ++ current = current.parentNode; ++ continue; ++ } ++ if (!dataLabel && current.dataset["sentryLabel"]) { ++ dataLabel = current.dataset["sentryLabel"]; ++ labelElem = current; ++ } ++ if (!pressableElem && current.dataset["tag"] === "pressable") { ++ pressableElem = current; ++ } ++ if (dataLabel && pressableElem) break; ++ } ++ current = current.parentNode; ++ } ++ if (!dataLabel) { ++ return cssSelector; ++ } ++ if (pressableElem && labelElem === pressableElem) { ++ return `[data-sentry-label="${dataLabel}"]`; ++ } ++ if (cssSelector.includes('[data-sentry-label="')) { ++ return cssSelector; ++ } ++ return `[data-sentry-label="${dataLabel}"] ${cssSelector}`; + } catch { + return ""; + } +@@ -40,6 +71,9 @@ function _htmlElementAsString(el, keyAttrs) { + } + if (WINDOW.HTMLElement) { + if (elem instanceof HTMLElement && elem.dataset) { ++ if (elem.dataset["sentryLabel"]) { ++ return `[data-sentry-label="${elem.dataset["sentryLabel"]}"]`; ++ } + if (elem.dataset["sentryComponent"]) { + return elem.dataset["sentryComponent"]; + } diff --git a/patches/sentry-core/details.md b/patches/sentry-core/details.md index 134555901c11..4639dcb13add 100644 --- a/patches/sentry-core/details.md +++ b/patches/sentry-core/details.md @@ -1,6 +1,6 @@ # `@sentry/core` patches -### [@sentry+core+10.47.0+001+data-sentry-label-support.patch](@sentry+core+10.47.0+001+data-sentry-label-support.patch) +### [@sentry+core+10.73.0+001+initial.patch](@sentry+core+10.73.0+001+initial.patch) - Reason: Enhances the `htmlTreeAsString` function to support `data-sentry-label` attributes for better element identification in Sentry spans. The patch: - Always includes `data-sentry-label` in the list of checked attributes for each DOM element @@ -12,9 +12,7 @@ - E/App issue: https://github.com/Expensify/App/issues/76128 - PR Introducing Patch: https://github.com/Expensify/App/pull/76547 -### [@sentry+core+10.47.0+002+request-id-support.patch](@sentry+core+10.47.0+002+request-id-support.patch) - -Reason: improve developer experience by adding `request-id` to spans related to API calls. This takes request-id from response headers and write it to the span related to that response. With that information it is easier to connect backend request / logs with data retrieved from Sentry. +The patch also adds `request-id` from fetch response headers to spans, making it easier to correlate Sentry data with backend logs. - Upstream PR/issue: N/A - E/App issue: https://github.com/Expensify/App/issues/75588 - PR Introducing Patch: https://github.com/Expensify/App/pull/79883 diff --git a/patches/sentry-react-native/@sentry+react-native+8.7.0.patch b/patches/sentry-react-native/@sentry+react-native+8.7.0.patch deleted file mode 100644 index 0b50294fd9b2..000000000000 --- a/patches/sentry-react-native/@sentry+react-native+8.7.0.patch +++ /dev/null @@ -1,33 +0,0 @@ -diff --git a/node_modules/@sentry/react-native/scripts/sentry_utils.rb b/node_modules/@sentry/react-native/scripts/sentry_utils.rb -index 5dc57a3..8887025 100644 ---- a/node_modules/@sentry/react-native/scripts/sentry_utils.rb -+++ b/node_modules/@sentry/react-native/scripts/sentry_utils.rb -@@ -1,8 +1,24 @@ - def parse_rn_package_json() -- rn_path = File.dirname(`node --print "require.resolve('react-native/package.json')"`) -- env_rn_path = ENV['REACT_NATIVE_NODE_MODULES_DIR'] -- if env_rn_path != nil -- rn_path = env_rn_path -+ # Try to resolve from installation root first (similar to react-native-svg and react-native-reanimated) -+ rn_path = nil -+ begin -+ rn_path = File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native/package.json')" 2>/dev/null`.strip) -+ rescue -+ # node resolution failed, will try ENV fallback -+ end -+ -+ # Fall back to ENV variable if node resolution didn't work -+ if rn_path.nil? || rn_path.empty? -+ env_rn_path = ENV['REACT_NATIVE_NODE_MODULES_DIR'] -+ if env_rn_path != nil -+ # Check if ENV points to node_modules or node_modules/react-native -+ # Support both conventions for compatibility -+ if File.exist?(File.join(env_rn_path, 'package.json')) -+ rn_path = env_rn_path # Already points to react-native directory -+ elsif File.exist?(File.join(env_rn_path, 'react-native/package.json')) -+ rn_path = File.join(env_rn_path, 'react-native') # Points to node_modules -+ end -+ end - end - - rn_package_json_path = File.join(rn_path, 'package.json') diff --git a/patches/sentry-react-native/details.md b/patches/sentry-react-native/details.md deleted file mode 100644 index 08bc276e8095..000000000000 --- a/patches/sentry-react-native/details.md +++ /dev/null @@ -1,8 +0,0 @@ -# `@sentry/react-native` patches - -### [@sentry+react-native+8.7.0.patch](@sentry+react-native+8.7.0.patch) - -- Reason: Fixes React Native path resolution in the Sentry Ruby script during iOS builds. The original implementation failed to locate `react-native/package.json` in our hybrid app setup. The patch changes the resolution strategy to first try resolving from the installation root (similar to react-native-svg and react-native-reanimated), and falls back to ENV variables with support for both node_modules conventions. -- Upstream PR/issue: N/A (specific to our hybrid app environment) -- E/App issue: N/A -- PR Introducing Patch: https://github.com/Expensify/App/pull/70298 From 76dc6ad378b42886e634322ed8848bfd33b84ab9 Mon Sep 17 00:00:00 2001 From: Rodrigo Lino da Costa Date: Wed, 9 Sep 2026 10:36:28 -0300 Subject: [PATCH 3/6] fix: alias optional Expo Router module --- config/rsbuild/rsbuild.common.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/rsbuild/rsbuild.common.ts b/config/rsbuild/rsbuild.common.ts index a2f72d8b0859..4db2c942a6b8 100644 --- a/config/rsbuild/rsbuild.common.ts +++ b/config/rsbuild/rsbuild.common.ts @@ -175,6 +175,9 @@ const getSharedConfiguration = ({file = '.env', isDevServer = false}: Environmen // @sentry/react-native references the optional expo-updates module. We do not install it, // so web/Storybook bundles should treat it as unavailable instead of failing resolution. 'expo-updates': false, + // @sentry/react-native references Expo Router internally. We do not install it, so web/Storybook + // bundles should treat it as unavailable instead of failing resolution. + 'expo-router/build/global-state/router-store': false, // Use legacy build of pdfjs-dist to support older browsers 'pdfjs-dist$': path.resolve(dirname, '../../node_modules/pdfjs-dist/legacy/build/pdf.mjs'), '@assets': path.resolve(dirname, '../../assets'), From f9d8733fa1e9746aabcfb10463af426a820c274b Mon Sep 17 00:00:00 2001 From: Rodrigo Lino da Costa Date: Wed, 9 Sep 2026 10:42:23 -0300 Subject: [PATCH 4/6] fix: support HybridApp React Native path --- .../@sentry+react-native+8.25.0.patch | 33 +++++++++++++++++++ patches/sentry-react-native/details.md | 7 ++++ 2 files changed, 40 insertions(+) create mode 100644 patches/sentry-react-native/@sentry+react-native+8.25.0.patch create mode 100644 patches/sentry-react-native/details.md diff --git a/patches/sentry-react-native/@sentry+react-native+8.25.0.patch b/patches/sentry-react-native/@sentry+react-native+8.25.0.patch new file mode 100644 index 000000000000..55ec959b4a5e --- /dev/null +++ b/patches/sentry-react-native/@sentry+react-native+8.25.0.patch @@ -0,0 +1,33 @@ +diff --git a/node_modules/@sentry/react-native/scripts/sentry_utils.rb b/node_modules/@sentry/react-native/scripts/sentry_utils.rb +index 8d6e899..ed1c088 100644 +--- a/node_modules/@sentry/react-native/scripts/sentry_utils.rb ++++ b/node_modules/@sentry/react-native/scripts/sentry_utils.rb +@@ -1,8 +1,24 @@ + def parse_rn_package_json() +- rn_path = File.dirname(`node --print "require.resolve('react-native/package.json')"`) +- env_rn_path = ENV['REACT_NATIVE_NODE_MODULES_DIR'] +- if env_rn_path != nil +- rn_path = env_rn_path ++ # Try to resolve from installation root first (similar to react-native-svg and react-native-reanimated) ++ rn_path = nil ++ begin ++ rn_path = File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native/package.json')" 2>/dev/null`.strip) ++ rescue ++ # node resolution failed, will try ENV fallback ++ end ++ ++ # Fall back to ENV variable if node resolution didn't work ++ if rn_path.nil? || rn_path.empty? ++ env_rn_path = ENV['REACT_NATIVE_NODE_MODULES_DIR'] ++ if env_rn_path != nil ++ # Check if ENV points to node_modules or node_modules/react-native ++ # Support both conventions for compatibility ++ if File.exist?(File.join(env_rn_path, 'package.json')) ++ rn_path = env_rn_path # Already points to react-native directory ++ elsif File.exist?(File.join(env_rn_path, 'react-native/package.json')) ++ rn_path = File.join(env_rn_path, 'react-native') # Points to node_modules ++ end ++ end + end + + rn_package_json_path = File.join(rn_path, 'package.json') diff --git a/patches/sentry-react-native/details.md b/patches/sentry-react-native/details.md new file mode 100644 index 000000000000..93e13bd5e065 --- /dev/null +++ b/patches/sentry-react-native/details.md @@ -0,0 +1,7 @@ +# `@sentry/react-native` patches + +### [@sentry+react-native+8.25.0.patch](@sentry+react-native+8.25.0.patch) + +- Reason: The HybridApp Podfile sets `REACT_NATIVE_NODE_MODULES_DIR` to the node_modules directory. The Sentry podspec expects that variable to point directly to the React Native package. This patch resolves React Native from the CocoaPods installation root first and supports both path conventions as a fallback. +- Upstream PR/issue: N/A (specific to our hybrid app environment) +- E/App issue: https://github.com/Expensify/App/issues/100694 From c5d542d8609d1686f7effef2af6607701b38de1b Mon Sep 17 00:00:00 2001 From: Rodrigo Lino da Costa Date: Wed, 9 Sep 2026 10:46:06 -0300 Subject: [PATCH 5/6] chore: preserve Sentry patch documentation --- patches/sentry-react-native/details.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patches/sentry-react-native/details.md b/patches/sentry-react-native/details.md index 93e13bd5e065..ded6d2fbd54b 100644 --- a/patches/sentry-react-native/details.md +++ b/patches/sentry-react-native/details.md @@ -2,6 +2,7 @@ ### [@sentry+react-native+8.25.0.patch](@sentry+react-native+8.25.0.patch) -- Reason: The HybridApp Podfile sets `REACT_NATIVE_NODE_MODULES_DIR` to the node_modules directory. The Sentry podspec expects that variable to point directly to the React Native package. This patch resolves React Native from the CocoaPods installation root first and supports both path conventions as a fallback. +- Reason: Fixes React Native path resolution in the Sentry Ruby script during iOS builds. The original implementation failed to locate `react-native/package.json` in our hybrid app setup. The patch changes the resolution strategy to first try resolving from the installation root (similar to react-native-svg and react-native-reanimated), and falls back to ENV variables with support for both node_modules conventions. - Upstream PR/issue: N/A (specific to our hybrid app environment) -- E/App issue: https://github.com/Expensify/App/issues/100694 +- E/App issue: N/A +- PR Introducing Patch: https://github.com/Expensify/App/pull/70298 From 4017341f713f18e4621f933243ee3dd429fef47c Mon Sep 17 00:00:00 2001 From: Rodrigo Lino da Costa Date: Wed, 9 Sep 2026 10:48:11 -0300 Subject: [PATCH 6/6] chore: preserve browser patch documentation --- patches/sentry-browser/details.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/sentry-browser/details.md b/patches/sentry-browser/details.md index 97ce8350c521..c93b65ba26d2 100644 --- a/patches/sentry-browser/details.md +++ b/patches/sentry-browser/details.md @@ -2,7 +2,7 @@ ### [@sentry+browser+10.73.0.patch](@sentry+browser+10.73.0.patch) -Reason: improve developer experience by adding `request-id` to XHR spans related to API calls. This takes `request-id` from response headers and writes it to the associated span, making it easier to correlate Sentry data with backend logs. +Reason: improve developer experience by adding `request-id` to spans related to API calls. This takes request-id from response headers and write it to the span related to that response. With that information it is easier to connect backend request / logs with data retrieved from Sentry. - Upstream PR/issue: N/A - E/App issue: https://github.com/Expensify/App/issues/75588 - PR Introducing Patch: https://github.com/Expensify/App/pull/79883