GeezerVison is showing github.com — Replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer` · Issue #7108 · getsentry/sentry-react-native
Replace deprecated _INTERNAL_flushLogsBuffer with flushLogsBuffer #7108
Description
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's flush event and from the idle timer after afterCaptureLog, when enableLogs is on.
packages/core/test/client.test.ts: three tests use jest.spyOn(SentryCore, '_INTERNAL_flushLogsBuffer'). The export name is a string here, so the type checker won't catch it. Rename these by hand.
Tasks
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: Remove deprecated APIs in the next major #6969
Activity
linear-code commented on Nov 25, 2026
changed the title
[-]Next major: replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`[/-] [+]Replace deprecated `_INTERNAL_flushLogsBuffer` with `flushLogsBuffer`[/+] on Nov 25, 2026
Metadata
Metadata
Development
No branches or pull requestsIssue actions