Skip to content

Commit c5ee1b6

Browse files
!remove(sdk): Delete deprecated captureUserFeedback (#4855)
* !remove(sdk): Delete deprecated `captureUserFeedback` * fix changelog * fix unused imports
1 parent 6a8b747 commit c5ee1b6

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
99
## Unreleased
1010

11+
### Major Changes
12+
13+
- `Sentry.captureUserFeedback` removed, use `Sentry.captureFeedback` instead ([#4855](https://github.com/getsentry/sentry-react-native/pull/4855))
14+
1115
### Changes
1216

1317
- Use `Replay` interface for `browserReplayIntegration` return type ([#4858](https://github.com/getsentry/sentry-react-native/pull/4858))

packages/core/src/js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export { SDK_NAME, SDK_VERSION } from './version';
6060
export type { ReactNativeOptions } from './options';
6161
export { ReactNativeClient } from './client';
6262

63-
export { init, wrap, nativeCrash, flush, close, captureUserFeedback, withScope, crashedLastRun } from './sdk';
63+
export { init, wrap, nativeCrash, flush, close, withScope, crashedLastRun } from './sdk';
6464
export { TouchEventBoundary, withTouchEventBoundary } from './touchevents';
6565

6666
export {

packages/core/src/js/sdk.tsx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
/* eslint-disable complexity */
2-
import type { Breadcrumb, BreadcrumbHint, Integration, Scope, SendFeedbackParams, UserFeedback } from '@sentry/core';
3-
import { captureFeedback, getClient, getGlobalScope, getIntegrationsToSetup, getIsolationScope, initAndBind, logger, makeDsn, stackParserFromStackParserOptions, withScope as coreWithScope } from '@sentry/core';
2+
import type { Breadcrumb, BreadcrumbHint, Integration, Scope } from '@sentry/core';
3+
import {
4+
getClient,
5+
getGlobalScope,
6+
getIntegrationsToSetup,
7+
getIsolationScope,
8+
initAndBind,
9+
logger,
10+
makeDsn,
11+
stackParserFromStackParserOptions,
12+
withScope as coreWithScope,
13+
} from '@sentry/core';
414
import {
515
defaultStackParser,
616
makeFetchTransport,
@@ -219,20 +229,6 @@ export async function close(): Promise<void> {
219229
}
220230
}
221231

222-
/**
223-
* Captures user feedback and sends it to Sentry.
224-
* @deprecated Use `Sentry.captureFeedback` instead.
225-
*/
226-
export function captureUserFeedback(feedback: UserFeedback): void {
227-
const feedbackParams: SendFeedbackParams = {
228-
name: feedback.name,
229-
email: feedback.email,
230-
message: feedback.comments,
231-
associatedEventId: feedback.event_id,
232-
};
233-
captureFeedback(feedbackParams);
234-
}
235-
236232
/**
237233
* Creates a new scope with and executes the given operation within.
238234
* The scope is automatically removed once the operation

0 commit comments

Comments
 (0)