@vrtmrz/livesync-commonlib 0.1.9 → 0.1.10

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.
@@ -262,6 +262,7 @@ Are you sure you wish to proceed?`;
262
262
  await this.suspendReflectingDatabase(!autoResume);
263
263
  await this.control.applySettings();
264
264
  await this.resetLocalDatabase();
265
+ this.clearFastFetchCheckpoint();
265
266
  await delay(1e3);
266
267
  await this.database.openDatabase({
267
268
  databaseEvents: this.databaseEvents,
@@ -300,6 +301,14 @@ Are you sure you wish to proceed?`;
300
301
  await this.fetchLocal(false, true, autoResume);
301
302
  return;
302
303
  }
304
+ if (settings.useRequestAPI) {
305
+ this._log(
306
+ "Fast database fetch is unavailable while 'Use Internal API' is enabled. Falling back to Standard Fetch.",
307
+ LOG_LEVEL_NOTICE
308
+ );
309
+ await this.fetchLocal(false, true, autoResume);
310
+ return;
311
+ }
303
312
  await this.replicator.runBoundedRemoteActivity(() => this.performFetchLocalDBFast(settings, autoResume), {
304
313
  label: "fast-fetch"
305
314
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrtmrz/livesync-commonlib",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Shared data, storage, and replication primitives for Self-hosted LiveSync clients.",
5
5
  "type": "module",
6
6
  "license": "MIT",