diff --git a/CHANGELOG.md b/CHANGELOG.md index d0a5c5e5cb..7ae60ecf95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ - Fix user `geo` being dropped from the native scope by forwarding it as a structured object instead of a JSON string ([#6309](https://github.com/getsentry/sentry-react-native/pull/6309)) - Remove unused `React/RCTTextView.h` import that broke iOS builds on React Native 0.87, where the header was removed as part of the legacy architecture cleanup ([#6322](https://github.com/getsentry/sentry-react-native/pull/6322)) +### Internal + +- Hide the `dataCollection` option until it 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, so setting it would silently have no effect. Use `sendDefaultPii` instead. ([#6345](https://github.com/getsentry/sentry-react-native/pull/6345)) + ### Dependencies - Bump JavaScript SDK from v10.58.0 to v10.60.0 ([#6321](https://github.com/getsentry/sentry-react-native/pull/6321), [#6332](https://github.com/getsentry/sentry-react-native/pull/6332)) diff --git a/packages/core/etc/sentry-react-native.api.md b/packages/core/etc/sentry-react-native.api.md index adccaaaa7b..ecaca332e5 100644 --- a/packages/core/etc/sentry-react-native.api.md +++ b/packages/core/etc/sentry-react-native.api.md @@ -591,7 +591,7 @@ export const reactNativeNavigationIntegration: (input: ReactNativeNavigationOpti // Warning: (ae-forgotten-export) The symbol "BaseReactNativeOptions" needs to be exported by the entry point index.d.ts // // @public -export interface ReactNativeOptions extends Omit, '_experiments'>, BaseReactNativeOptions { +export interface ReactNativeOptions extends Omit, '_experiments' | 'dataCollection'>, BaseReactNativeOptions { } // Warning: (ae-forgotten-export) The symbol "ReactNativeTracingOptions" needs to be exported by the entry point index.d.ts diff --git a/packages/core/src/js/options.ts b/packages/core/src/js/options.ts index e3593cf465..d836144351 100644 --- a/packages/core/src/js/options.ts +++ b/packages/core/src/js/options.ts @@ -512,11 +512,17 @@ export interface ReactNativeTransportOptions extends BrowserTransportOptions { * @see ReactNativeFrontend for more information. */ +// `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. export interface ReactNativeOptions - extends Omit, '_experiments'>, BaseReactNativeOptions {} + extends Omit, '_experiments' | 'dataCollection'>, BaseReactNativeOptions {} export interface ReactNativeClientOptions - extends Omit, 'tunnel' | '_experiments'>, BaseReactNativeOptions {} + extends + Omit, 'tunnel' | '_experiments' | 'dataCollection'>, + BaseReactNativeOptions {} export interface ReactNativeWrapperOptions { /** Props for the root React profiler */