You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release removes polyfills previously embedded into the React Native SDK to support
6
+
older React Native versions.
7
+
8
+
In particular, the following polyfills have been removed:
9
+
10
+
-`TextEncoder` and `TextDecoder`: Support for `TextDecoder` has recently been added to React Native,
11
+
and the SDK only uses it with very old PowerSync service versions as binary streams are preferred.
12
+
-`react-native-fetch-api`: The package was effectively unmaintained. We now use `expo/fetch` as a default
13
+
HTTP client. When unavailable, we fall back to the builtin `fetch` polyfill in React Native.
14
+
Note that this doesn't support streams, so we recommend enabling `{ connectionMethod: SyncStreamConnectionMethod.WEB_SOCKET }` for non-Expo apps with PowerSync.
15
+
-`ReadableStream`: We expect that `fetch` implementations correctly implement `Response.getReader()`.
0 commit comments