@powersync/react-native 0.0.0-dev-20250508151317 → 0.0.0-dev-20250512105900

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,26 +10,7 @@ export const STREAMING_POST_TIMEOUT_MS = 30_000;
10
10
  * a polyfill.
11
11
  */
12
12
  class ReactNativeFetchProvider extends FetchImplementationProvider {
13
- logger;
14
- constructor(logger = DEFAULT_REMOTE_LOGGER) {
15
- super();
16
- this.logger = logger;
17
- }
18
13
  getFetch() {
19
- /**
20
- * From Expo 52, Expo provides a fetch implementation which supports HTTP streams.
21
- * https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api
22
- */
23
- try {
24
- const f = require('expo/fetch').fetch;
25
- if (f) {
26
- this.logger.debug('Using Expo fetch implementation');
27
- return f;
28
- }
29
- }
30
- catch (e) {
31
- // If expo is not installed, fallback
32
- }
33
14
  return fetch.bind(globalThis);
34
15
  }
35
16
  }
@@ -39,7 +20,7 @@ export class ReactNativeRemote extends AbstractRemote {
39
20
  constructor(connector, logger = DEFAULT_REMOTE_LOGGER, options) {
40
21
  super(connector, logger, {
41
22
  ...(options ?? {}),
42
- fetchImplementation: options?.fetchImplementation ?? new ReactNativeFetchProvider(logger)
23
+ fetchImplementation: options?.fetchImplementation ?? new ReactNativeFetchProvider()
43
24
  });
44
25
  this.connector = connector;
45
26
  this.logger = logger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powersync/react-native",
3
- "version": "0.0.0-dev-20250508151317",
3
+ "version": "0.0.0-dev-20250512105900",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"