Remove deprecated APIs in the next major

未關閉
#6,969 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
45/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
react-native, typescript

研究方向

Start with the listed entry points: options.ts, client.ts, touchevents.tsx, index.ts, tracing/timetodisplay.tsx, and tracing/integrations/appStart.ts. Remove the deprecated APIs and options identified in the issue, then update the referenced TODOs in test/client.test.ts and test/sdk.test.ts. Check the v8 to v9 migration guide work tracked in #6735; done means the untracked removals and follow-up notes are addressed.

由索引模型根據 Issue 內容生成。

描述

React-Native Task

Description

Several APIs and options are still exported after one or more majors, some with JSDoc that says "will be removed in the next major version". Remove them in the next major.

Items that already have their own issue are listed for reference only.

To remove (no dedicated issue)
  • initialScope option (options.ts). Use Sentry.getGlobalScope().setTag(...) / setUser(...) instead.
  • ReactNativeClient.captureUserFeedback (client.ts). Use Sentry.captureFeedback instead. Also update the remaining test TODO in test/client.test.ts.
  • ignoredDisplayNames prop on TouchEventBoundary (touchevents.tsx). Use ignoreNames instead.
  • useThreadsForMessageStack option (options.ts). Use beforeSend instead.
  • bufferSize on ReactNativeTransportOptions (options.ts). Use the root maxQueueSize option instead.
  • instrumentLangGraph re-export (index.ts). Use instrumentStateGraph instead.
  • startTimeToInitialDisplaySpan / startTimeToFullDisplaySpan (tracing/timetodisplay.tsx). Use the <TimeToInitialDisplay> / <TimeToFullDisplay> components instead.
  • Internal captureAppStart (tracing/integrations/appStart.ts). Use Sentry.appLoaded() instead.
Tracked separately
  • #5882: _experiments.replaysSessionSampleRate / replaysOnErrorSampleRate
  • #6681: _experiments.androidProfilingOptions
  • #6680: enableExperimentalViewRenderer
  • #5932: FeedbackWidget* aliases
  • #5896: FeedbackButton, showFeedbackButton, hideFeedbackButton
  • #6143: TTID/TTFD record prop
  • #6001: sendDefaultPii
Follow-up
  • Remove the related // TODO: No longer an experiment on major version. notes in test/sdk.test.ts.
  • Document each removal in the v8 → v9 migration guide (#6735).
  • Consider a check that flags @deprecated APIs older than one major, so this list doesn't build up again.
主要語言
TypeScript
星號
1.8k
分支
371
平均合併
1 天 6 小時
30 天內合併 PR
103

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

getsentry/sentry-react-native 的其他 Issue

查看 getsentry/sentry-react-native 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。