3.34.3
(fix): Improve React Native compatibility in the SDK runtime and fetcher:
- Move React Native detection before Node.js detection since React Native may have a process polyfill
- Use
ReturnType<typeof setTimeout>instead ofNodeJS.Timeoutfor better cross-platform compatibility - Remove
ResponseWithBodytype guard that incorrectly failed in React Native environments whereresponse.bodymay be null - Update
BinaryResponsetype to use Response types directly for better compatibility - Add structured error responses with
body-is-nullreason for SSE and streaming endpoints whenresponse.bodyis unavailable - Simplify JSON parsing error handling to return consistent error structure with
non-jsonreason