@powersync/web 0.0.0-dev-20260503073249 → 0.0.0-dev-20260504100448
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 +0 -4664
- package/dist/index.umd.js.map +1 -1
- package/dist/worker/SharedSyncImplementation.umd.js +14 -784
- package/dist/worker/SharedSyncImplementation.umd.js.map +1 -1
- package/dist/worker/WASQLiteDB.umd.js +14 -660
- package/dist/worker/WASQLiteDB.umd.js.map +1 -1
- package/lib/package.json +1 -4
- package/lib/src/db/sync/SharedWebStreamingSyncImplementation.d.ts +0 -1
- package/lib/src/db/sync/SharedWebStreamingSyncImplementation.js +0 -3
- package/lib/src/db/sync/WebRemote.d.ts +1 -3
- package/lib/src/db/sync/WebRemote.js +0 -12
- package/lib/src/worker/sync/SharedSyncImplementation.d.ts +0 -2
- package/lib/src/worker/sync/SharedSyncImplementation.js +0 -8
- package/lib/src/worker/sync/WorkerClient.d.ts +0 -1
- package/lib/src/worker/sync/WorkerClient.js +0 -3
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -7
- package/src/db/sync/SharedWebStreamingSyncImplementation.ts +0 -4
- package/src/db/sync/WebRemote.ts +0 -16
- package/src/worker/sync/SharedSyncImplementation.ts +0 -10
- package/src/worker/sync/WorkerClient.ts +0 -4
- package/dist/worker/node_modules_pnpm_bson_6_10_4_node_modules_bson_lib_bson_mjs.umd.js +0 -4646
- package/dist/worker/node_modules_pnpm_bson_6_10_4_node_modules_bson_lib_bson_mjs.umd.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/web",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260504100448",
|
|
4
4
|
"description": "PowerSync Web SDK",
|
|
5
5
|
"main": "lib/src/index.js",
|
|
6
6
|
"module": "lib/src/index.js",
|
|
@@ -56,26 +56,23 @@
|
|
|
56
56
|
"license": "Apache-2.0",
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@journeyapps/wa-sqlite": "^1.5.0",
|
|
59
|
-
"@powersync/common": "0.0.0-dev-
|
|
59
|
+
"@powersync/common": "0.0.0-dev-20260504100448"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"bson": "^6.10.4",
|
|
63
62
|
"comlink": "^4.4.2",
|
|
64
63
|
"commander": "^12.1.0",
|
|
65
|
-
"@powersync/common": "0.0.0-dev-
|
|
64
|
+
"@powersync/common": "0.0.0-dev-20260504100448"
|
|
66
65
|
},
|
|
67
66
|
"devDependencies": {
|
|
68
67
|
"@journeyapps/wa-sqlite": "^1.7.0",
|
|
69
68
|
"@types/uuid": "^9.0.6",
|
|
70
|
-
"
|
|
69
|
+
"bson": "^6.10.4",
|
|
71
70
|
"glob": "^11.0.0",
|
|
72
71
|
"p-defer": "^4.0.1",
|
|
73
72
|
"source-map-loader": "^5.0.0",
|
|
74
|
-
"stream-browserify": "^3.0.0",
|
|
75
73
|
"terser-webpack-plugin": "^5.3.9",
|
|
76
74
|
"uuid": "^11.1.0",
|
|
77
75
|
"vite": "^7.3.1",
|
|
78
|
-
"vm-browserify": "^1.1.2",
|
|
79
76
|
"webpack": "^5.90.1",
|
|
80
77
|
"webpack-cli": "^5.1.4",
|
|
81
78
|
"webpack-node-externals": "^3.0.0"
|
|
@@ -233,10 +233,6 @@ export class SharedWebStreamingSyncImplementation extends WebStreamingSyncImplem
|
|
|
233
233
|
return this.syncManager.getWriteCheckpoint();
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
async hasCompletedSync(): Promise<boolean> {
|
|
237
|
-
return this.syncManager.hasCompletedSync();
|
|
238
|
-
}
|
|
239
|
-
|
|
240
236
|
async dispose(): Promise<void> {
|
|
241
237
|
await this.waitForReady();
|
|
242
238
|
|
package/src/db/sync/WebRemote.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbstractRemote,
|
|
3
3
|
AbstractRemoteOptions,
|
|
4
|
-
BSONImplementation,
|
|
5
4
|
DEFAULT_REMOTE_LOGGER,
|
|
6
5
|
FetchImplementation,
|
|
7
6
|
FetchImplementationProvider,
|
|
@@ -21,8 +20,6 @@ class WebFetchProvider extends FetchImplementationProvider {
|
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
export class WebRemote extends AbstractRemote {
|
|
24
|
-
private _bson: BSONImplementation | undefined;
|
|
25
|
-
|
|
26
23
|
constructor(
|
|
27
24
|
protected connector: RemoteConnector,
|
|
28
25
|
protected logger: ILogger = DEFAULT_REMOTE_LOGGER,
|
|
@@ -43,17 +40,4 @@ export class WebRemote extends AbstractRemote {
|
|
|
43
40
|
}
|
|
44
41
|
return ua.join(' ');
|
|
45
42
|
}
|
|
46
|
-
|
|
47
|
-
async getBSON(): Promise<BSONImplementation> {
|
|
48
|
-
if (this._bson) {
|
|
49
|
-
return this._bson;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Dynamic import to be used only when needed.
|
|
54
|
-
*/
|
|
55
|
-
const { BSON } = await import('bson');
|
|
56
|
-
this._bson = BSON;
|
|
57
|
-
return this._bson;
|
|
58
|
-
}
|
|
59
43
|
}
|
|
@@ -162,10 +162,6 @@ export class SharedSyncImplementation extends BaseObserver<SharedSyncImplementat
|
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
get lastSyncedAt(): Date | undefined {
|
|
166
|
-
return this.connectionManager.syncStreamImplementation?.lastSyncedAt;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
165
|
get isConnected(): boolean {
|
|
170
166
|
return this.connectionManager.syncStreamImplementation?.isConnected ?? false;
|
|
171
167
|
}
|
|
@@ -362,12 +358,6 @@ export class SharedSyncImplementation extends BaseObserver<SharedSyncImplementat
|
|
|
362
358
|
});
|
|
363
359
|
}
|
|
364
360
|
|
|
365
|
-
async hasCompletedSync(): Promise<boolean> {
|
|
366
|
-
return this.withSyncImplementation(async (sync) => {
|
|
367
|
-
return sync.hasCompletedSync();
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
|
|
371
361
|
async getWriteCheckpoint(): Promise<string> {
|
|
372
362
|
return this.withSyncImplementation(async (sync) => {
|
|
373
363
|
return sync.getWriteCheckpoint();
|