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