@powersync/common 0.0.0-dev-20251201150812 → 0.0.0-dev-20251209082930

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.
@@ -7816,7 +7816,7 @@ The next upload iteration will be delayed.`);
7816
7816
  uploadError: ex
7817
7817
  }
7818
7818
  });
7819
- await this.delayRetry(controller.signal, this.options.crudUploadThrottleMs);
7819
+ await this.delayRetry(controller.signal);
7820
7820
  if (!this.isConnected) {
7821
7821
  // Exit the upload loop if the sync stream is no longer connected
7822
7822
  break;
@@ -8527,14 +8527,14 @@ The next upload iteration will be delayed.`);
8527
8527
  // trigger this for all updates
8528
8528
  this.iterateListeners((cb) => cb.statusUpdated?.(options));
8529
8529
  }
8530
- async delayRetry(signal, delayMs) {
8530
+ async delayRetry(signal) {
8531
8531
  return new Promise((resolve) => {
8532
8532
  if (signal?.aborted) {
8533
8533
  // If the signal is already aborted, resolve immediately
8534
8534
  resolve();
8535
8535
  return;
8536
8536
  }
8537
- const delay = delayMs ?? this.options.retryDelayMs;
8537
+ const { retryDelayMs } = this.options;
8538
8538
  let timeoutId;
8539
8539
  const endDelay = () => {
8540
8540
  resolve();
@@ -8545,7 +8545,7 @@ The next upload iteration will be delayed.`);
8545
8545
  signal?.removeEventListener('abort', endDelay);
8546
8546
  };
8547
8547
  signal?.addEventListener('abort', endDelay, { once: true });
8548
- timeoutId = setTimeout(endDelay, delay);
8548
+ timeoutId = setTimeout(endDelay, retryDelayMs);
8549
8549
  });
8550
8550
  }
8551
8551
  updateSubscriptions(subscriptions) {
@@ -9075,11 +9075,11 @@ class AbstractPowerSyncDatabase extends BaseObserver {
9075
9075
  .map((n) => parseInt(n));
9076
9076
  }
9077
9077
  catch (e) {
9078
- throw new Error(`Unsupported powersync extension version. Need >=0.4.5 <1.0.0, got: ${this.sdkVersion}. Details: ${e.message}`);
9078
+ throw new Error(`Unsupported powersync extension version. Need >=0.4.10 <1.0.0, got: ${this.sdkVersion}. Details: ${e.message}`);
9079
9079
  }
9080
- // Validate >=0.4.5 <1.0.0
9081
- if (versionInts[0] != 0 || versionInts[1] < 4 || (versionInts[1] == 4 && versionInts[2] < 5)) {
9082
- throw new Error(`Unsupported powersync extension version. Need >=0.4.5 <1.0.0, got: ${this.sdkVersion}`);
9080
+ // Validate >=0.4.10 <1.0.0
9081
+ if (versionInts[0] != 0 || versionInts[1] < 4 || (versionInts[1] == 4 && versionInts[2] < 10)) {
9082
+ throw new Error(`Unsupported powersync extension version. Need >=0.4.10 <1.0.0, got: ${this.sdkVersion}`);
9083
9083
  }
9084
9084
  }
9085
9085
  async resolveOfflineSyncStatus() {