sendDefaultPii is reported as deprecated on ReactNativeOptions although dataCollection is hidden
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react-native, typescript
- Área
- mobile
Línea de trabajo
Comienza con las declaraciones de ReactNativeOptions y BaseReactNativeOptions y, después, inspecciona el tipo Options heredado en @sentry/core/build/types/types/options.d.ts. Verifica el comportamiento del servicio de lenguaje de TypeScript en torno a la lista de Omit y ejecuta las comprobaciones de tipos o las pruebas del repositorio. Se considera terminado cuando sendDefaultPii sigue estando disponible para React Native sin activar el diagnóstico de deprecated.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What React Native libraries do you use?
Expo (mobile only), Expo Application Services (EAS), React Navigation, Hermes, RN New Architecture
Are you using sentry.io or on-premise?
sentry.io (SaS)
Are you using any other error monitoring solution alongside Sentry?
Yes, Firebase Crashlytics
@sentry/react-native SDK Version
8.29.0 (@sentry/core 10.75.2)
How does your development environment look like?
- expo ~57.0.26
- react-native 0.86.3
- typescript ~6.0.3
- oxlint 1.86.0 with oxlint-tsgolint 7.0.2003,
typescript/no-deprecatedenabled
Sentry.init()
Sentry.init({
dsn: '...',
enabled: !__DEV__,
environment: env.isProduction ? 'prod' : 'dev',
sendDefaultPii: true,
enableLogs: true,
replaysOnErrorSampleRate: 1.0,
tracesSampleRate: 1.0,
integrations: [Sentry.mobileReplayIntegration(), navigationIntegration],
});
Steps to Reproduce
- Use
@sentry/react-native8.29.0. - Pass
sendDefaultPii: truetoSentry.init(). - Run a type-aware deprecation check, such as
typescript/no-deprecatedin oxlint.
Expected Result
sendDefaultPii is not reported as deprecated on ReactNativeOptions.
#6345 hid dataCollection from the React Native options and says to keep using sendDefaultPii until full support lands (#5996).
The wizard v8 template also still generates sendDefaultPii: true for React Native.
Actual Result
typescript(no-deprecated): `sendDefaultPii` is deprecated. Use the option instead, which lets you control each category of collected data individually. `sendDefaultPii` will be removed in the next major version (v11). ...
BaseReactNativeOptions redeclares sendDefaultPii without @deprecated, but ReactNativeOptions extends Omit<Options<ReactNativeTransportOptions>, '_experiments' | 'dataCollection'> first.
The resolved sendDefaultPii property therefore has a single declaration, the deprecated one from @sentry/core/build/types/types/options.d.ts.
I checked this with the TypeScript language service.
When 'sendDefaultPii' is added to the Omit list, the property resolves to the BaseReactNativeOptions declaration and the @deprecated tag is gone:
export interface ReactNativeOptions
extends Omit<Options<ReactNativeTransportOptions>, '_experiments' | 'dataCollection' | 'sendDefaultPii'>,
BaseReactNativeOptions {}
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.8k
- Forks
- 369
- Merge medio
- 18 h 31 min
- PR fusionados (30 d)
- 100
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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
-
Link Checker ReportAbiertoautomated issue report
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
databendlabs/databend-docs#3511 ·
-
area/dashboard kind/bug QA/dev-automation
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
rancher/dashboard#19379 · 2 comentarios ·
Los mantenedores suelen responder en 5 días
-
perf(core): getComments() runs the approved count and the comment list as two sequential queriesAbiertoarea/core bot:bug bot:working
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
emdash-cms/emdash#3905 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
lingdojo/kana-dojo#31728 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
selective-claw: freshTailTurns=0 keeps ALL turns verbatim and summarizes none (slice(-0) === slice(0))Posiblemente ocupada @zjncs la tomó hoy. Abiertocomponent:tokenless
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
agentic-os-org/ANOLISA#6112 · 1 comentario ·
Los mantenedores suelen responder en 1 día