From 725e608ad86387f1642239c0fac9202d07dd0460 Mon Sep 17 00:00:00 2001 From: Alexander Pantiukhov Date: Fri, 9 Oct 2026 13:56:41 +0200 Subject: [PATCH 1/2] fix(core): Do not mark sendDefaultPii as deprecated in React Native options ReactNativeOptions and ReactNativeClientOptions now omit sendDefaultPii from the @sentry/core options. TypeScript then uses the declaration from BaseReactNativeOptions, which is not deprecated. Fixes #6830 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++++ packages/core/etc/sentry-react-native.api.md | 2 +- packages/core/src/js/options.ts | 8 +++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9729b4fe04..7b7d215f38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ - Add the `applicationKey` and `moduleMetadata` options to `withSentryConfig` and `getSentryExpoConfig`, and export `thirdPartyErrorFilterIntegration` ([#6863](https://github.com/getsentry/sentry-react-native/pull/6863)) - Set the same key in `applicationKey` and in the `filterKeys` option of `thirdPartyErrorFilterIntegration` to filter errors from third-party code, for example browser extensions on Expo web. +### Fixes + +- Do not mark `sendDefaultPii` as deprecated in the React Native options ([#PLACEHOLDER](https://github.com/getsentry/sentry-react-native/pull/PLACEHOLDER)) + ### Dependencies - Bump JavaScript SDK from v10.76.0 to v10.76.2 ([#6866](https://github.com/getsentry/sentry-react-native/pull/6866)) diff --git a/packages/core/etc/sentry-react-native.api.md b/packages/core/etc/sentry-react-native.api.md index 2d2506ce89..f666d3121e 100644 --- a/packages/core/etc/sentry-react-native.api.md +++ b/packages/core/etc/sentry-react-native.api.md @@ -896,7 +896,7 @@ export interface ReactNativeNavigationOptions { // Warning: (ae-forgotten-export) The symbol "ReactNativeTransportOptions" needs to be exported by the entry point index.d.ts // // @public -export interface ReactNativeOptions extends Omit, '_experiments' | 'dataCollection'>, BaseReactNativeOptions { +export interface ReactNativeOptions extends Omit, '_experiments' | 'dataCollection' | 'sendDefaultPii'>, BaseReactNativeOptions { } // @public (undocumented) diff --git a/packages/core/src/js/options.ts b/packages/core/src/js/options.ts index 491f10065e..7760bcc5d1 100644 --- a/packages/core/src/js/options.ts +++ b/packages/core/src/js/options.ts @@ -770,13 +770,15 @@ export interface ReactNativeTransportOptions extends BrowserTransportOptions { // `dataCollection` is omitted until the option is fully supported in React Native. It is exposed by // `@sentry/core` but is not yet honored by the native SDKs (iOS/Android) nor by the RN-specific // `sendDefaultPii` gates (e.g. IP inference, deep links, navigation params). Use `sendDefaultPii` -// instead. +// instead. `sendDefaultPii` is omitted to use the declaration from `BaseReactNativeOptions`, which is not deprecated. export interface ReactNativeOptions - extends Omit, '_experiments' | 'dataCollection'>, BaseReactNativeOptions {} + extends + Omit, '_experiments' | 'dataCollection' | 'sendDefaultPii'>, + BaseReactNativeOptions {} export interface ReactNativeClientOptions extends - Omit, 'tunnel' | '_experiments' | 'dataCollection'>, + Omit, 'tunnel' | '_experiments' | 'dataCollection' | 'sendDefaultPii'>, BaseReactNativeOptions {} export interface ReactNativeWrapperOptions { From 5e9d94f217d817ac10c45a5be99c7b648a35abad Mon Sep 17 00:00:00 2001 From: Alexander Pantiukhov Date: Fri, 9 Oct 2026 13:56:57 +0200 Subject: [PATCH 2/2] chore: Add PR number to CHANGELOG Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b7d215f38..6830378a55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ ### Fixes -- Do not mark `sendDefaultPii` as deprecated in the React Native options ([#PLACEHOLDER](https://github.com/getsentry/sentry-react-native/pull/PLACEHOLDER)) +- Do not mark `sendDefaultPii` as deprecated in the React Native options ([#6864](https://github.com/getsentry/sentry-react-native/pull/6864)) ### Dependencies