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