diff --git a/CHANGELOG.md b/CHANGELOG.md index 12b79ca1c8..6ce935234e 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 ([#6864](https://github.com/getsentry/sentry-react-native/pull/6864)) + ## 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 {