Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion packages/core/etc/sentry-react-native.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<Options<ReactNativeTransportOptions>, '_experiments' | 'dataCollection'>, BaseReactNativeOptions {
export interface ReactNativeOptions extends Omit<Options<ReactNativeTransportOptions>, '_experiments' | 'dataCollection' | 'sendDefaultPii'>, BaseReactNativeOptions {
}

// @public (undocumented)
Expand Down
8 changes: 5 additions & 3 deletions packages/core/src/js/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Options<ReactNativeTransportOptions>, '_experiments' | 'dataCollection'>, BaseReactNativeOptions {}
extends
Omit<Options<ReactNativeTransportOptions>, '_experiments' | 'dataCollection' | 'sendDefaultPii'>,
BaseReactNativeOptions {}

export interface ReactNativeClientOptions
extends
Omit<ClientOptions<ReactNativeTransportOptions>, 'tunnel' | '_experiments' | 'dataCollection'>,
Omit<ClientOptions<ReactNativeTransportOptions>, 'tunnel' | '_experiments' | 'dataCollection' | 'sendDefaultPii'>,
BaseReactNativeOptions {}

export interface ReactNativeWrapperOptions {
Expand Down
Loading