@powersync/common 0.0.0-dev-20250710151329 → 0.0.0-dev-20250710154318

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.
@@ -213,8 +213,11 @@ The next upload iteration will be delayed.`);
213
213
  }
214
214
  else {
215
215
  // Uploading is completed
216
- this.logger.debug('Upload complete, updating write checkpoint');
217
- await this.options.adapter.updateLocalTarget(() => this.getWriteCheckpoint());
216
+ this.logger.debug('Upload complete, creating write checkpoint');
217
+ const neededUpdate = await this.options.adapter.updateLocalTarget(() => this.getWriteCheckpoint());
218
+ if (neededUpdate == false) {
219
+ this.logger.debug('No write checkpoint needed');
220
+ }
218
221
  break;
219
222
  }
220
223
  }
@@ -871,8 +874,9 @@ The next upload iteration will be delayed.`);
871
874
  // We have pending entries in the local upload queue or are waiting to confirm a write
872
875
  // checkpoint, which prevented this checkpoint from applying. Wait for that to complete and
873
876
  // try again.
874
- this.logger.debug('Could not apply checkpoint due to local data. Waiting for in-progress upload before retrying.');
877
+ this.logger.debug(`Could not apply checkpoint ${checkpoint.last_op_id} due to local data. Waiting for in-progress upload before retrying.`);
875
878
  await Promise.race([pending, onAbortPromise(abort)]);
879
+ this.logger.debug(`Pending uploads complete, retrying local checkpoint at ${checkpoint.last_op_id}`);
876
880
  if (abort.aborted) {
877
881
  return { applied: false, endIteration: true };
878
882
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powersync/common",
3
- "version": "0.0.0-dev-20250710151329",
3
+ "version": "0.0.0-dev-20250710154318",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"