getsentry / getsentry/sentry-react-native
Remove deprecated `_experiments.androidProfilingOptions` in v9
- Lingua principale
- TypeScript
- Stelle
- 1.8k
- Fork
- 366
- Merge medio
- 1g 6h
- PR unite (30g)
- 94
Descrizione
## Summary
The `_experiments.androidProfilingOptions` option was deprecated in favor of `_experiments.profilingOptions` in #5611 (2026-02). Its JSDoc already states it "will be removed in the next major version." Fallback code currently resolves `profilingOptions ?? androidProfilingOptions` for backwards compatibility.
Per the [SDK Deprecation Lifecycle Standard](https://develop.sentry.dev/sdk/), this should be removed in the next major (v9).
## Action for v9
- `packages/core/src/js/options.ts` (~line 499): remove the `androidProfilingOptions` type definition from the `_experiments` block.
- `packages/core/src/js/client.ts` (~line 255): drop the `?? this._options._experiments?.androidProfilingOptions` fallback.
- `packages/core/src/js/wrapper.ts` (~lines 67, 309, 316-317): remove the `androidProfilingOptions` parameter and the `profilingOptions ?? androidProfilingOptions` compat resolution.
- Update/adjust any related tests.
## References
- Deprecated in #5611 (`iOS UI Profiling`)
- Replacement: `_experiments.profilingOptions`
- Sibling v9 removal task: #5882
- [SDK Deprecation Lifecycle Standard](https://develop.sentry.dev/sdk/)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con le posizioni indicate in packages/core/src/js/options.ts, client.ts e wrapper.ts, quindi esamina i test correlati per androidProfilingOptions e profilingOptions. Conferma che il tipo deprecato, il fallback, il parametro e la risoluzione della compatibilità siano stati rimossi per v9, mentre il percorso sostitutivo profilingOptions rimanga coperto da test superati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react-native, typescript
- Ambito
- mobile
- Tipo di issue
- Refactoring
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 78/100