Replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 55/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react-native, typescript
- Ambito
- backend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 1.8k
- Fork
- 371
- Merge medio
- 22h 3m
- PR unite (30g)
- 106
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/sentry-react-native
-
React-Native
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getsentry/sentry-react-native#7073 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Improvement React-Native
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
getsentry/sentry-react-native#7055 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
React-Native Replays Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
getsentry/sentry-react-native#6680 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Improvement React-Native
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getsentry/sentry-react-native#6143 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
React-Native Task User Feedbacks
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
getsentry/sentry-react-native#5932 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di getsentry/sentry-react-native
Issue simili
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFDForse già presa @goranai l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vercel-labs/ui#1494 ·
I maintainer di solito rispondono entro 1 giorno
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothingForse già presa @chaitanya0305 l’ha presa oggi. Apertabug P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
BaaRai/ARTEX#652 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
compiler-explorer/compiler-explorer#9710 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno