@powersync/common 1.57.2 → 1.57.3
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.
- package/dist/bundle.cjs +13 -8
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.mjs +13 -8
- package/dist/bundle.mjs.map +1 -1
- package/dist/bundle.node.cjs +13 -8
- package/dist/bundle.node.cjs.map +1 -1
- package/dist/bundle.node.mjs +13 -8
- package/dist/bundle.node.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/client/AbstractPowerSyncDatabase.d.ts +1 -1
- package/lib/client/AbstractPowerSyncDatabase.js +1 -1
- package/lib/client/sync/stream/AbstractStreamingSyncImplementation.js +1 -0
- package/lib/client/sync/stream/AbstractStreamingSyncImplementation.js.map +1 -1
- package/lib/utils/ControlledExecutor.js +10 -6
- package/lib/utils/ControlledExecutor.js.map +1 -1
- package/package.json +1 -1
- package/src/client/AbstractPowerSyncDatabase.ts +1 -1
- package/src/client/sync/stream/AbstractStreamingSyncImplementation.ts +1 -0
- package/src/utils/ControlledExecutor.ts +9 -6
package/dist/bundle.node.cjs
CHANGED
|
@@ -2392,12 +2392,16 @@ class ControlledExecutor {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
async execute(param) {
|
|
2394
2394
|
this.runningTask = this.task(param);
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
this.
|
|
2400
|
-
this.
|
|
2395
|
+
try {
|
|
2396
|
+
await this.runningTask;
|
|
2397
|
+
}
|
|
2398
|
+
finally {
|
|
2399
|
+
this.runningTask = undefined;
|
|
2400
|
+
if (this.pendingTaskParam) {
|
|
2401
|
+
const pendingParam = this.pendingTaskParam;
|
|
2402
|
+
this.pendingTaskParam = undefined;
|
|
2403
|
+
this.execute(pendingParam);
|
|
2404
|
+
}
|
|
2401
2405
|
}
|
|
2402
2406
|
}
|
|
2403
2407
|
}
|
|
@@ -8606,7 +8610,7 @@ function requireDist () {
|
|
|
8606
8610
|
|
|
8607
8611
|
var distExports = requireDist();
|
|
8608
8612
|
|
|
8609
|
-
var version = "1.57.
|
|
8613
|
+
var version = "1.57.3";
|
|
8610
8614
|
var PACKAGE = {
|
|
8611
8615
|
version: version};
|
|
8612
8616
|
|
|
@@ -9479,6 +9483,7 @@ class AbstractStreamingSyncImplementation extends BaseObserver {
|
|
|
9479
9483
|
async _uploadAllCrud(signal) {
|
|
9480
9484
|
return this.obtainLock({
|
|
9481
9485
|
type: exports.LockType.CRUD,
|
|
9486
|
+
signal,
|
|
9482
9487
|
callback: async () => {
|
|
9483
9488
|
/**
|
|
9484
9489
|
* Keep track of the first item in the CRUD queue for the last `uploadCrud` iteration.
|
|
@@ -11103,7 +11108,7 @@ SELECT * FROM crud_entries;
|
|
|
11103
11108
|
}
|
|
11104
11109
|
/**
|
|
11105
11110
|
* Open a read-only transaction.
|
|
11106
|
-
*
|
|
11111
|
+
* When multiple connections are available, read transactions can run concurrently to a write transaction.
|
|
11107
11112
|
* Changes from any write transaction are not visible to read transactions started before it.
|
|
11108
11113
|
*
|
|
11109
11114
|
* @param callback - Function to execute within the transaction
|