getsentry / getsentry/sentry-react-native
Remove deprecated `enableExperimentalViewRenderer` replay option in v9
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.8k
- Forks
- 366
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 94
Descripción
## Summary
The `MobileReplayOptions.enableExperimentalViewRenderer` option was deprecated in favor of `enableViewRendererV2` in #4815 (2025-05). A compat shim in `mobileReplayIntegration` copies the old value to `enableViewRendererV2` when the new option is unset.
Per the [SDK Deprecation Lifecycle Standard](https://develop.sentry.dev/sdk/), this should be removed in the next major (v9).
## Action for v9
In `packages/core/src/js/replay/mobilereplay.ts`:
- Remove the `enableExperimentalViewRenderer` type definition (`MobileReplayOptions`, ~line 77).
- Remove it from `defaultOptions` (~line 253).
- Remove the compat shim that maps it onto `enableViewRendererV2` (~lines 270-271).
- Update/adjust any related tests.
## References
- Deprecated in #4815 (`ref(session-replay): iOS: Use enableViewRendererV2 instead of the deprecated ...`)
- Replacement: `enableViewRendererV2`
- Sibling v9 removal task: #5882
- [SDK Deprecation Lifecycle Standard](https://develop.sentry.dev/sdk/)
Guía de contribución
Línea de trabajo
Comienza en packages/core/src/js/replay/mobilereplay.ts comprobando el tipo MobileReplayOptions, defaultOptions y el shim de compatibilidad mobileReplayIntegration identificados en el issue. Después, localiza las pruebas relacionadas y ajústalas al comportamiento de v9. Se considera terminado cuando se hayan eliminado la opción obsoleta y el mapping, enableViewRendererV2 siga siendo compatible y las pruebas relacionadas pasen.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react-native, typescript
- Área
- mobile-dev
- Tipo de issue
- Refactorización
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Activo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 88/100