Replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Refatoração
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- react-native, typescript
- Domínio
- backend
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- TypeScript
- Estrelas
- 1.8k
- Forks
- 371
- Merge médio
- 22h 3min
- PRs com merge (30d)
- 106
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getsentry/sentry-react-native
-
React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
getsentry/sentry-react-native#7073 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Improvement React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
getsentry/sentry-react-native#7055 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
React-Native Replays Task
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
getsentry/sentry-react-native#6680 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Improvement React-Native
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
getsentry/sentry-react-native#6143 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
React-Native Task User Feedbacks
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
getsentry/sentry-react-native#5932 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de getsentry/sentry-react-native
Issues semelhantes
-
area:config bug priority:medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Doezer/Questarr#1451 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
sidebandstudio/clawtrate#1156 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
WenyuChiou/agent-board#1993 ·
Mantenedores costumam responder em até 1 dia
-
bug design
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Colorado-Startups/coloradostartups.org#151 ·
Mantenedores costumam responder em até 1 dia
-
question
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
jarrodwatts/claude-hud#883 · 1 comentário ·
Mantenedores costumam responder em até 1 dia