Skip to content

Commit 77fd95a

Browse files
fix(options): Remove "tunnel" from SDK options (#3787)
* feat(ReactNativeClientOptions): Remove "tunnel" option Remove the "tunnel" option from the ReactNativeClientOptions type due to lack of support in React Native. * fix build * add changelog * fix link * fix lint --------- Co-authored-by: AliReza <[email protected]>
1 parent 4294805 commit 77fd95a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Fixes
66

7+
- Remove `tunnel` from SDK Options ([#3787](https://github.com/getsentry/sentry-react-native/pull/3787))
78
- Fix Apple non UIKit builds ([#3784](https://github.com/getsentry/sentry-react-native/pull/3784))
89

910
### Dependencies

src/js/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class ReactNativeClient extends BaseClient<ReactNativeClientOptions> {
101101
const envelope = createUserFeedbackEnvelope(feedback, {
102102
metadata: this._options._metadata,
103103
dsn: this.getDsn(),
104-
tunnel: this._options.tunnel,
104+
tunnel: undefined,
105105
});
106106
this._sendEnvelope(envelope);
107107
}

src/js/options.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ export interface ReactNativeTransportOptions extends BrowserTransportOptions {
203203

204204
export interface ReactNativeOptions extends Options<ReactNativeTransportOptions>, BaseReactNativeOptions {}
205205

206-
export interface ReactNativeClientOptions extends ClientOptions<ReactNativeTransportOptions>, BaseReactNativeOptions {}
206+
export interface ReactNativeClientOptions
207+
extends Omit<ClientOptions<ReactNativeTransportOptions>, 'tunnel'>,
208+
BaseReactNativeOptions {}
207209

208210
export interface ReactNativeWrapperOptions {
209211
/** Props for the root React profiler */

0 commit comments

Comments
 (0)