@powersync/web 0.0.0-dev-20250625140957 → 0.0.0-dev-20250710151329
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/index.umd.js +6 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/worker/SharedSyncImplementation.umd.js +5 -5
- package/dist/worker/SharedSyncImplementation.umd.js.map +1 -1
- package/dist/worker/WASQLiteDB.umd.js +2 -2
- package/dist/worker/WASQLiteDB.umd.js.map +1 -1
- package/lib/package.json +2 -2
- package/lib/src/db/PowerSyncDatabase.js +3 -2
- package/lib/src/db/adapters/LockedAsyncDatabaseAdapter.js +3 -3
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -38547,7 +38547,7 @@ class PowerSyncDatabase extends _powersync_common__WEBPACK_IMPORTED_MODULE_0__.A
|
|
|
38547
38547
|
return (0,_shared_navigator__WEBPACK_IMPORTED_MODULE_2__.getNavigatorLocks)().request(`lock-${this.database.name}`, cb);
|
|
38548
38548
|
}
|
|
38549
38549
|
generateSyncStreamImplementation(connector, options) {
|
|
38550
|
-
const remote = new _sync_WebRemote__WEBPACK_IMPORTED_MODULE_7__.WebRemote(connector);
|
|
38550
|
+
const remote = new _sync_WebRemote__WEBPACK_IMPORTED_MODULE_7__.WebRemote(connector, this.logger);
|
|
38551
38551
|
const syncOptions = {
|
|
38552
38552
|
...this.options,
|
|
38553
38553
|
retryDelayMs: options.retryDelayMs,
|
|
@@ -38559,7 +38559,8 @@ class PowerSyncDatabase extends _powersync_common__WEBPACK_IMPORTED_MODULE_0__.A
|
|
|
38559
38559
|
await this.waitForReady();
|
|
38560
38560
|
await connector.uploadData(this);
|
|
38561
38561
|
},
|
|
38562
|
-
identifier: this.database.name
|
|
38562
|
+
identifier: this.database.name,
|
|
38563
|
+
logger: this.logger
|
|
38563
38564
|
};
|
|
38564
38565
|
switch (true) {
|
|
38565
38566
|
case this.resolvedFlags.ssrMode:
|
|
@@ -38839,7 +38840,7 @@ class LockedAsyncDatabaseAdapter extends _powersync_common__WEBPACK_IMPORTED_MOD
|
|
|
38839
38840
|
return this.readLock(this.wrapTransaction(fn));
|
|
38840
38841
|
}
|
|
38841
38842
|
writeTransaction(fn, options) {
|
|
38842
|
-
return this.writeLock(this.wrapTransaction(fn));
|
|
38843
|
+
return this.writeLock(this.wrapTransaction(fn, true));
|
|
38843
38844
|
}
|
|
38844
38845
|
generateDBHelpers(tx) {
|
|
38845
38846
|
return {
|
|
@@ -38874,9 +38875,9 @@ class LockedAsyncDatabaseAdapter extends _powersync_common__WEBPACK_IMPORTED_MOD
|
|
|
38874
38875
|
/**
|
|
38875
38876
|
* Wraps a lock context into a transaction context
|
|
38876
38877
|
*/
|
|
38877
|
-
wrapTransaction(cb) {
|
|
38878
|
+
wrapTransaction(cb, write = false) {
|
|
38878
38879
|
return async (tx) => {
|
|
38879
|
-
await this._execute('BEGIN
|
|
38880
|
+
await this._execute(write ? 'BEGIN EXCLUSIVE' : 'BEGIN');
|
|
38880
38881
|
let finalized = false;
|
|
38881
38882
|
const commit = async () => {
|
|
38882
38883
|
if (finalized) {
|