Migrate iOS enableUnhandledCPPExceptionsV2 off the deprecated experimental alias
Los mantenedores suelen responder en 1 día
@antonis ya está trabajando en esto.
Desde el 24/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Description
sentry-cocoa #9134 promotes enableUnhandledCPPExceptionsV2 from SentryOptions.experimental up to a top-level SentryOptions property. The old experimental.enableUnhandledCPPExceptionsV2 is kept as a shared-value deprecated alias and, per the deprecation annotation, will be removed in the next cocoa minor release.
The RN SDK reads and writes this option in packages/core/ios/RNSentryExperimentalOptions.m:
sentryOptions.experimental.enableUnhandledCPPExceptionsV2 = enabled; // setter
return sentryOptions.experimental.enableUnhandledCPPExceptionsV2; // getter
Impact
- At the cocoa release that ships #9134 (a v9 minor): RN still compiles and behaves identically — the alias shares the same backing value — but these two lines will emit deprecation warnings (the ObjC property gains
DEPRECATED_MSG_ATTRIBUTE). - At the following cocoa minor, where the alias is removed:
sentryOptions.experimental.enableUnhandledCPPExceptionsV2will fail to compile.
We currently bundle cocoa 9.29.0, so there is no runtime breakage today. This is a tracking issue to migrate ahead of the removal.
Action
Switch to the top-level property (exposed on the ObjC wrapper SentryObjCOptions.h) at the next cocoa bump that contains #9134:
sentryOptions.enableUnhandledCPPExceptionsV2 = enabled;
return sentryOptions.enableUnhandledCPPExceptionsV2;
- Behavior is identical; the top-level property exists in the same release, so this also clears the deprecation warning immediately.
- The JS
_experiments.enableUnhandledCPPExceptionsV2key and RN's public API stay unchanged — this is purely the native mapping inRNSentryExperimentalOptions.m.
References
- sentry-cocoa PR: https://github.com/getsentry/sentry-cocoa/pull/9134
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.8k
- Forks
- 367
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 100
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-react-native
-
React-Native Replays Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
getsentry/sentry-react-native#6680 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Improvement React-Native
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/sentry-react-native#6143 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
React-Native Task User Feedbacks
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
getsentry/sentry-react-native#5932 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
React-Native Replays Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
getsentry/sentry-react-native#5882 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Good First Issue React-Native Task
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
getsentry/sentry-react-native#5771 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-react-native
Issues similares
-
Add: Digi World (Romania) SDAbiertocheck:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Fission-AI/OpenSpec#1986 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
nestjs/docs.nestjs.com#3554 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
publicodes/publicodes#868 ·
-
namespace operations
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
EclipseFdn/open-vsx.org#13488 ·
Los mantenedores suelen responder en 2 días