From 8666bd64ddad7c9d3bd31119b8c0eb80505d5d11 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 | 6 ++++++ packages/core/etc/sentry-react-native.api.md | 2 +- packages/core/src/js/options.ts | 8 +++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12b79ca1c8..861de595f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ > make sure you follow our [migration guide](https://docs.sentry.io/platforms/react-native/migration/) first. +## Unreleased + +### Fixes + +- Do not mark `sendDefaultPii` as deprecated in the React Native options ([#PLACEHOLDER](https://github.com/getsentry/sentry-react-native/pull/PLACEHOLDER)) + ## 8.30.0 ### Features diff --git a/packages/core/etc/sentry-react-native.api.md b/packages/core/etc/sentry-react-native.api.md index 39d8eaee6e..1d8cb01c38 100644 --- a/packages/core/etc/sentry-react-native.api.md +++ b/packages/core/etc/sentry-react-native.api.md @@ -895,7 +895,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 40b635950feb8f45a22b3ef7f17b70f33ba1905a 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 861de595f0..6ce935234e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,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)) ## 8.30.0