Replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`
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
- 55/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react-native, typescript
- Área
- backend
Línea de trabajo
Start in packages/core/src/js/client.ts and inspect the three spies in packages/core/test/client.test.ts. First confirm that the required @sentry/core release exports flushLogsBuffer; then replace the old name in those locations and verify the client tests. Done means the client and test spies use the new export and the JS SDK team is told the alias is no longer used by RN.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
@sentry/core is dropping its _INTERNAL_-prefixed exports (getsentry/sentry-javascript#26744). _INTERNAL_flushLogsBuffer is renamed to flushLogsBuffer. The old name stays as a deprecated alias for now because React Native still uses it. The alias can't be removed until we switch.
This is the only _INTERNAL_ export from @sentry/core that the RN SDK uses.
⚠️ This will be implemented in the next major.
Usages
packages/core/src/js/client.ts: called on the client'sflushevent and from the idle timer afterafterCaptureLog, whenenableLogsis on.packages/core/test/client.test.ts: three tests usejest.spyOn(SentryCore, '_INTERNAL_flushLogsBuffer'). The export name is a string here, so the type checker won't catch it. Rename these by hand.
Tasks
- Bump
@sentry/coreto a release that exportsflushLogsBuffer(getsentry/sentry-javascript#26744 merged and released). - Replace
_INTERNAL_flushLogsBufferwithflushLogsBufferinclient.tsand the test spies. - Tell the JS SDK team the alias is no longer used by RN, so it can be removed.
Notes
- Users won't see any change, and no changelog entry is needed. We can make the switch as soon as the new name is released, before the next major if that's convenient. It is tracked for the next major because the JS SDK can only drop the alias after we switch.
- Related: #6969
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.8k
- Forks
- 371
- Merge medio
- 22 h 3 min
- PR fusionados (30 d)
- 106
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
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-react-native#7073 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Improvement React-Native
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
getsentry/sentry-react-native#7055 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
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
Todos los issues de getsentry/sentry-react-native
Issues similares
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFDPosiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
vercel-labs/ui#1494 ·
Los mantenedores suelen responder en 1 día
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothingPosiblemente ocupada @chaitanya0305 la tomó hoy. Abiertobug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
BaaRai/ARTEX#652 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
compiler-explorer/compiler-explorer#9710 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día