@lix-js/sdk 0.16.0 → 0.17.0
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/README.md +187 -22
- package/dist/binding-types.d.ts +20 -6
- package/dist/binding.browser.d.ts +2 -0
- package/dist/binding.browser.js +14 -4
- package/dist/binding.node-wasm.d.ts +1 -1
- package/dist/binding.node-wasm.js +5 -3
- package/dist/binding.node.d.ts +2 -0
- package/dist/binding.node.js +34 -8
- package/dist/bundled-plugins/plugin_csv.lixplugin +0 -0
- package/dist/bundled-plugins/plugin_markdown.lixplugin +0 -0
- package/dist/compatibility.d.ts +6 -0
- package/dist/compatibility.js +6 -0
- package/dist/component-host/dispatch.d.ts +12 -0
- package/dist/component-host/dispatch.js +364 -0
- package/dist/component-host/index.d.ts +15 -0
- package/dist/component-host/index.js +84 -0
- package/dist/component-host/instrument.d.ts +6 -0
- package/dist/component-host/instrument.js +260 -0
- package/dist/conversion-provider.d.ts +4 -0
- package/dist/conversion-provider.js +20 -0
- package/dist/hosted-lix.js +1 -1
- package/dist/http-transport.d.ts +25 -0
- package/dist/http-transport.js +162 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/lix.d.ts +20 -10
- package/dist/lix.js +68 -23
- package/dist/migration-binding.browser.d.ts +33 -0
- package/dist/migration-binding.browser.js +46 -0
- package/dist/migration-binding.node.d.ts +6 -0
- package/dist/migration-binding.node.js +5 -0
- package/dist/migration-wasm/lix_js_sdk.d.ts +271 -0
- package/dist/migration-wasm/lix_js_sdk.js +1852 -0
- package/dist/migration-wasm/lix_js_sdk_bg.wasm +4 -0
- package/dist/migration-wasm/lix_js_sdk_bg.wasm.d.ts +101 -0
- package/dist/migration.d.ts +23 -0
- package/dist/migration.js +55 -0
- package/dist/open-lix.js +29 -18
- package/dist/open-progress.d.ts +10 -0
- package/dist/open-progress.js +59 -0
- package/dist/remote/client.d.ts +2 -1
- package/dist/remote/client.js +11 -1
- package/dist/result.d.ts +4 -3
- package/dist/result.js +3 -4
- package/dist/storage-adapter.d.ts +7 -5
- package/dist/storage-ownership.d.ts +5 -0
- package/dist/storage-ownership.js +4 -0
- package/dist/types.d.ts +132 -22
- package/dist/wasm/lix_js_sdk.d.ts +57 -16
- package/dist/wasm/lix_js_sdk.js +268 -60
- package/dist/wasm/lix_js_sdk_bg.wasm +2 -2
- package/dist/wasm/lix_js_sdk_bg.wasm.d.ts +23 -9
- package/dist/worker/client.d.ts +12 -3
- package/dist/worker/client.js +98 -81
- package/dist/worker/durable-local-admission.d.ts +20 -0
- package/dist/worker/durable-local-admission.js +87 -0
- package/dist/worker/entry.shared.browser.d.ts +1 -0
- package/dist/worker/entry.shared.browser.js +211 -0
- package/dist/worker/factory.browser.d.ts +2 -0
- package/dist/worker/factory.browser.js +65 -1
- package/dist/worker/factory.node.d.ts +1 -0
- package/dist/worker/factory.node.js +3 -0
- package/dist/worker/host.d.ts +4 -2
- package/dist/worker/host.js +92 -32
- package/dist/worker/protocol.d.ts +33 -8
- package/dist/worker/protocol.js +25 -7
- package/dist/worker/shared-admission.d.ts +26 -0
- package/dist/worker/shared-admission.js +116 -0
- package/dist/worker/shared-engine.d.ts +34 -0
- package/dist/worker/shared-engine.js +194 -0
- package/package.json +21 -13
- package/dist/remote/server-protocol.d.ts +0 -185
- package/dist/remote/server-protocol.js +0 -417
package/dist/wasm/lix_js_sdk.js
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
/* @ts-self-types="./lix_js_sdk.d.ts" */
|
|
2
2
|
|
|
3
|
+
export class BrowserComponentHost {
|
|
4
|
+
static __wrap(ptr) {
|
|
5
|
+
const obj = Object.create(BrowserComponentHost.prototype);
|
|
6
|
+
obj.__wbg_ptr = ptr;
|
|
7
|
+
BrowserComponentHostFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
8
|
+
return obj;
|
|
9
|
+
}
|
|
10
|
+
__destroy_into_raw() {
|
|
11
|
+
const ptr = this.__wbg_ptr;
|
|
12
|
+
this.__wbg_ptr = 0;
|
|
13
|
+
BrowserComponentHostFinalization.unregister(this);
|
|
14
|
+
return ptr;
|
|
15
|
+
}
|
|
16
|
+
free() {
|
|
17
|
+
const ptr = this.__destroy_into_raw();
|
|
18
|
+
wasm.__wbg_browsercomponenthost_free(ptr, 0);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @param {string} method
|
|
22
|
+
* @param {string} _arguments
|
|
23
|
+
* @returns {string}
|
|
24
|
+
*/
|
|
25
|
+
call(method, _arguments) {
|
|
26
|
+
let deferred4_0;
|
|
27
|
+
let deferred4_1;
|
|
28
|
+
try {
|
|
29
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
30
|
+
const ptr0 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
31
|
+
const len0 = WASM_VECTOR_LEN;
|
|
32
|
+
const ptr1 = passStringToWasm0(_arguments, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
33
|
+
const len1 = WASM_VECTOR_LEN;
|
|
34
|
+
wasm.browsercomponenthost_call(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
35
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
36
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
37
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
38
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
39
|
+
var ptr3 = r0;
|
|
40
|
+
var len3 = r1;
|
|
41
|
+
if (r3) {
|
|
42
|
+
ptr3 = 0; len3 = 0;
|
|
43
|
+
throw takeObject(r2);
|
|
44
|
+
}
|
|
45
|
+
deferred4_0 = ptr3;
|
|
46
|
+
deferred4_1 = len3;
|
|
47
|
+
return getStringFromWasm0(ptr3, len3);
|
|
48
|
+
} finally {
|
|
49
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
50
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (Symbol.dispose) BrowserComponentHost.prototype[Symbol.dispose] = BrowserComponentHost.prototype.free;
|
|
55
|
+
|
|
3
56
|
export class WasmLix {
|
|
4
57
|
static __wrap(ptr) {
|
|
5
58
|
const obj = Object.create(WasmLix.prototype);
|
|
@@ -82,6 +135,16 @@ export class WasmLix {
|
|
|
82
135
|
const ret = wasm.wasmlix_executeBatch(this.__wbg_ptr, addHeapObject(statements), isLikeNone(options) ? 0 : addHeapObject(options));
|
|
83
136
|
return takeObject(ret);
|
|
84
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* @param {string} id
|
|
140
|
+
* @returns {Promise<any>}
|
|
141
|
+
*/
|
|
142
|
+
exportReplicaRecovery(id) {
|
|
143
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
144
|
+
const len0 = WASM_VECTOR_LEN;
|
|
145
|
+
const ret = wasm.wasmlix_exportReplicaRecovery(this.__wbg_ptr, ptr0, len0);
|
|
146
|
+
return takeObject(ret);
|
|
147
|
+
}
|
|
85
148
|
/**
|
|
86
149
|
* @returns {WasmSnapshotExport}
|
|
87
150
|
*/
|
|
@@ -126,10 +189,11 @@ export class WasmLix {
|
|
|
126
189
|
}
|
|
127
190
|
/**
|
|
128
191
|
* @param {any} options
|
|
192
|
+
* @param {Function | null} [telemetry_dispatch]
|
|
129
193
|
* @returns {Promise<WasmLix>}
|
|
130
194
|
*/
|
|
131
|
-
openAnotherSession(options) {
|
|
132
|
-
const ret = wasm.wasmlix_openAnotherSession(this.__wbg_ptr, addHeapObject(options));
|
|
195
|
+
openAnotherSession(options, telemetry_dispatch) {
|
|
196
|
+
const ret = wasm.wasmlix_openAnotherSession(this.__wbg_ptr, addHeapObject(options), isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch));
|
|
133
197
|
return takeObject(ret);
|
|
134
198
|
}
|
|
135
199
|
/**
|
|
@@ -150,6 +214,27 @@ export class WasmLix {
|
|
|
150
214
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
151
215
|
}
|
|
152
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* @param {string} id
|
|
219
|
+
* @returns {Promise<any>}
|
|
220
|
+
*/
|
|
221
|
+
recoverReplica(id) {
|
|
222
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
223
|
+
const len0 = WASM_VECTOR_LEN;
|
|
224
|
+
const ret = wasm.wasmlix_recoverReplica(this.__wbg_ptr, ptr0, len0);
|
|
225
|
+
return takeObject(ret);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @param {string} id
|
|
229
|
+
* @param {any} server
|
|
230
|
+
* @returns {Promise<any>}
|
|
231
|
+
*/
|
|
232
|
+
recoverReplicaWithServer(id, server) {
|
|
233
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
234
|
+
const len0 = WASM_VECTOR_LEN;
|
|
235
|
+
const ret = wasm.wasmlix_recoverReplicaWithServer(this.__wbg_ptr, ptr0, len0, addHeapObject(server));
|
|
236
|
+
return takeObject(ret);
|
|
237
|
+
}
|
|
153
238
|
/**
|
|
154
239
|
* @returns {Promise<any>}
|
|
155
240
|
*/
|
|
@@ -157,6 +242,13 @@ export class WasmLix {
|
|
|
157
242
|
const ret = wasm.wasmlix_redo(this.__wbg_ptr);
|
|
158
243
|
return takeObject(ret);
|
|
159
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* @returns {Promise<any>}
|
|
247
|
+
*/
|
|
248
|
+
replicaRecoverySources() {
|
|
249
|
+
const ret = wasm.wasmlix_replicaRecoverySources(this.__wbg_ptr);
|
|
250
|
+
return takeObject(ret);
|
|
251
|
+
}
|
|
160
252
|
/**
|
|
161
253
|
* @param {any | null} [parent]
|
|
162
254
|
*/
|
|
@@ -188,6 +280,13 @@ export class WasmLix {
|
|
|
188
280
|
const ret = wasm.wasmlix_syncDiskToLix(this.__wbg_ptr);
|
|
189
281
|
return takeObject(ret);
|
|
190
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* @returns {Promise<any>}
|
|
285
|
+
*/
|
|
286
|
+
syncHealth() {
|
|
287
|
+
const ret = wasm.wasmlix_syncHealth(this.__wbg_ptr);
|
|
288
|
+
return takeObject(ret);
|
|
289
|
+
}
|
|
191
290
|
/**
|
|
192
291
|
* @returns {Promise<any>}
|
|
193
292
|
*/
|
|
@@ -216,7 +315,7 @@ export class WasmLixTransaction {
|
|
|
216
315
|
wasm.__wbg_wasmlixtransaction_free(ptr, 0);
|
|
217
316
|
}
|
|
218
317
|
/**
|
|
219
|
-
* @returns {Promise<
|
|
318
|
+
* @returns {Promise<any>}
|
|
220
319
|
*/
|
|
221
320
|
commit() {
|
|
222
321
|
const ret = wasm.wasmlixtransaction_commit(this.__wbg_ptr);
|
|
@@ -364,6 +463,16 @@ export class WasmRemoteLix {
|
|
|
364
463
|
const ret = wasm.wasmremotelix_executeBatch(this.__wbg_ptr, addHeapObject(statements), isLikeNone(options) ? 0 : addHeapObject(options));
|
|
365
464
|
return takeObject(ret);
|
|
366
465
|
}
|
|
466
|
+
/**
|
|
467
|
+
* @param {string} _id
|
|
468
|
+
* @returns {Promise<any>}
|
|
469
|
+
*/
|
|
470
|
+
exportReplicaRecovery(_id) {
|
|
471
|
+
const ptr0 = passStringToWasm0(_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
472
|
+
const len0 = WASM_VECTOR_LEN;
|
|
473
|
+
const ret = wasm.wasmremotelix_exportReplicaRecovery(this.__wbg_ptr, ptr0, len0);
|
|
474
|
+
return takeObject(ret);
|
|
475
|
+
}
|
|
367
476
|
/**
|
|
368
477
|
* @returns {WasmSnapshotExport}
|
|
369
478
|
*/
|
|
@@ -414,6 +523,27 @@ export class WasmRemoteLix {
|
|
|
414
523
|
const ret = wasm.wasmremotelix_openAnotherSession(this.__wbg_ptr, addHeapObject(options));
|
|
415
524
|
return takeObject(ret);
|
|
416
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* @param {string} _id
|
|
528
|
+
* @returns {Promise<any>}
|
|
529
|
+
*/
|
|
530
|
+
recoverReplica(_id) {
|
|
531
|
+
const ptr0 = passStringToWasm0(_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
532
|
+
const len0 = WASM_VECTOR_LEN;
|
|
533
|
+
const ret = wasm.wasmremotelix_recoverReplica(this.__wbg_ptr, ptr0, len0);
|
|
534
|
+
return takeObject(ret);
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* @param {string} _id
|
|
538
|
+
* @param {any} _server
|
|
539
|
+
* @returns {Promise<any>}
|
|
540
|
+
*/
|
|
541
|
+
recoverReplicaWithServer(_id, _server) {
|
|
542
|
+
const ptr0 = passStringToWasm0(_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
543
|
+
const len0 = WASM_VECTOR_LEN;
|
|
544
|
+
const ret = wasm.wasmremotelix_recoverReplicaWithServer(this.__wbg_ptr, ptr0, len0, addHeapObject(_server));
|
|
545
|
+
return takeObject(ret);
|
|
546
|
+
}
|
|
417
547
|
/**
|
|
418
548
|
* @returns {Promise<any>}
|
|
419
549
|
*/
|
|
@@ -421,6 +551,13 @@ export class WasmRemoteLix {
|
|
|
421
551
|
const ret = wasm.wasmremotelix_redo(this.__wbg_ptr);
|
|
422
552
|
return takeObject(ret);
|
|
423
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* @returns {Promise<any>}
|
|
556
|
+
*/
|
|
557
|
+
replicaRecoverySources() {
|
|
558
|
+
const ret = wasm.wasmremotelix_replicaRecoverySources(this.__wbg_ptr);
|
|
559
|
+
return takeObject(ret);
|
|
560
|
+
}
|
|
424
561
|
/**
|
|
425
562
|
* @param {any | null} [_parent]
|
|
426
563
|
*/
|
|
@@ -442,6 +579,13 @@ export class WasmRemoteLix {
|
|
|
442
579
|
const ret = wasm.wasmremotelix_syncDiskToLix(this.__wbg_ptr);
|
|
443
580
|
return takeObject(ret);
|
|
444
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* @returns {Promise<any>}
|
|
584
|
+
*/
|
|
585
|
+
syncHealth() {
|
|
586
|
+
const ret = wasm.wasmremotelix_syncHealth(this.__wbg_ptr);
|
|
587
|
+
return takeObject(ret);
|
|
588
|
+
}
|
|
445
589
|
/**
|
|
446
590
|
* @returns {Promise<any>}
|
|
447
591
|
*/
|
|
@@ -470,7 +614,7 @@ export class WasmRemoteLixTransaction {
|
|
|
470
614
|
wasm.__wbg_wasmremotelixtransaction_free(ptr, 0);
|
|
471
615
|
}
|
|
472
616
|
/**
|
|
473
|
-
* @returns {Promise<
|
|
617
|
+
* @returns {Promise<any>}
|
|
474
618
|
*/
|
|
475
619
|
commit() {
|
|
476
620
|
const ret = wasm.wasmremotelixtransaction_commit(this.__wbg_ptr);
|
|
@@ -638,50 +782,76 @@ export function deleteHosted(server) {
|
|
|
638
782
|
}
|
|
639
783
|
|
|
640
784
|
/**
|
|
785
|
+
* Read-only routing metadata; available in the current-format runtime.
|
|
641
786
|
* @param {any} provider
|
|
642
|
-
* @
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
787
|
+
* @returns {Promise<any>}
|
|
788
|
+
*/
|
|
789
|
+
export function inspectJsStorageRepository(provider) {
|
|
790
|
+
const ret = wasm.inspectJsStorageRepository(addHeapObject(provider));
|
|
791
|
+
return takeObject(ret);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* @param {any} provider
|
|
796
|
+
* @param {Function | null | undefined} telemetry_dispatch
|
|
797
|
+
* @param {any | null | undefined} telemetry_parent
|
|
798
|
+
* @param {any | null | undefined} server
|
|
799
|
+
* @param {Function | null | undefined} open_progress_dispatch
|
|
800
|
+
* @param {Function} component_dispatch
|
|
801
|
+
* @param {string | null} [durability]
|
|
646
802
|
* @returns {Promise<WasmLix>}
|
|
647
803
|
*/
|
|
648
|
-
export function openJsStorage(provider, telemetry_dispatch, telemetry_parent, server, open_progress_dispatch) {
|
|
649
|
-
|
|
804
|
+
export function openJsStorage(provider, telemetry_dispatch, telemetry_parent, server, open_progress_dispatch, component_dispatch, durability) {
|
|
805
|
+
var ptr0 = isLikeNone(durability) ? 0 : passStringToWasm0(durability, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
806
|
+
var len0 = WASM_VECTOR_LEN;
|
|
807
|
+
const ret = wasm.openJsStorage(addHeapObject(provider), isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), isLikeNone(telemetry_parent) ? 0 : addHeapObject(telemetry_parent), isLikeNone(server) ? 0 : addHeapObject(server), isLikeNone(open_progress_dispatch) ? 0 : addHeapObject(open_progress_dispatch), addHeapObject(component_dispatch), ptr0, len0);
|
|
650
808
|
return takeObject(ret);
|
|
651
809
|
}
|
|
652
810
|
|
|
653
811
|
/**
|
|
654
812
|
* @param {any} provider
|
|
655
|
-
* @param {Function | null}
|
|
656
|
-
* @param {any | null}
|
|
657
|
-
* @param {Function | null}
|
|
813
|
+
* @param {Function | null | undefined} telemetry_dispatch
|
|
814
|
+
* @param {any | null | undefined} telemetry_parent
|
|
815
|
+
* @param {Function | null | undefined} open_progress_dispatch
|
|
816
|
+
* @param {Function} component_dispatch
|
|
817
|
+
* @param {string | null} [durability]
|
|
658
818
|
* @returns {WasmSnapshotRestore}
|
|
659
819
|
*/
|
|
660
|
-
export function openJsStorageFromSnapshot(provider, telemetry_dispatch, telemetry_parent, open_progress_dispatch) {
|
|
661
|
-
|
|
820
|
+
export function openJsStorageFromSnapshot(provider, telemetry_dispatch, telemetry_parent, open_progress_dispatch, component_dispatch, durability) {
|
|
821
|
+
var ptr0 = isLikeNone(durability) ? 0 : passStringToWasm0(durability, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
822
|
+
var len0 = WASM_VECTOR_LEN;
|
|
823
|
+
const ret = wasm.openJsStorageFromSnapshot(addHeapObject(provider), isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), isLikeNone(telemetry_parent) ? 0 : addHeapObject(telemetry_parent), isLikeNone(open_progress_dispatch) ? 0 : addHeapObject(open_progress_dispatch), addHeapObject(component_dispatch), ptr0, len0);
|
|
662
824
|
return WasmSnapshotRestore.__wrap(ret);
|
|
663
825
|
}
|
|
664
826
|
|
|
665
827
|
/**
|
|
666
|
-
* @param {Function | null}
|
|
667
|
-
* @param {any | null}
|
|
668
|
-
* @param {any | null}
|
|
669
|
-
* @param {Function | null}
|
|
828
|
+
* @param {Function | null | undefined} telemetry_dispatch
|
|
829
|
+
* @param {any | null | undefined} telemetry_parent
|
|
830
|
+
* @param {any | null | undefined} server
|
|
831
|
+
* @param {Function | null | undefined} open_progress_dispatch
|
|
832
|
+
* @param {Function} component_dispatch
|
|
833
|
+
* @param {string | null} [durability]
|
|
670
834
|
* @returns {Promise<WasmLix>}
|
|
671
835
|
*/
|
|
672
|
-
export function openMemory(telemetry_dispatch, telemetry_parent, server, open_progress_dispatch) {
|
|
673
|
-
|
|
836
|
+
export function openMemory(telemetry_dispatch, telemetry_parent, server, open_progress_dispatch, component_dispatch, durability) {
|
|
837
|
+
var ptr0 = isLikeNone(durability) ? 0 : passStringToWasm0(durability, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
838
|
+
var len0 = WASM_VECTOR_LEN;
|
|
839
|
+
const ret = wasm.openMemory(isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), isLikeNone(telemetry_parent) ? 0 : addHeapObject(telemetry_parent), isLikeNone(server) ? 0 : addHeapObject(server), isLikeNone(open_progress_dispatch) ? 0 : addHeapObject(open_progress_dispatch), addHeapObject(component_dispatch), ptr0, len0);
|
|
674
840
|
return takeObject(ret);
|
|
675
841
|
}
|
|
676
842
|
|
|
677
843
|
/**
|
|
678
|
-
* @param {Function | null}
|
|
679
|
-
* @param {any | null}
|
|
680
|
-
* @param {Function | null}
|
|
844
|
+
* @param {Function | null | undefined} telemetry_dispatch
|
|
845
|
+
* @param {any | null | undefined} telemetry_parent
|
|
846
|
+
* @param {Function | null | undefined} open_progress_dispatch
|
|
847
|
+
* @param {Function} component_dispatch
|
|
848
|
+
* @param {string | null} [durability]
|
|
681
849
|
* @returns {WasmSnapshotRestore}
|
|
682
850
|
*/
|
|
683
|
-
export function openMemoryFromSnapshot(telemetry_dispatch, telemetry_parent, open_progress_dispatch) {
|
|
684
|
-
|
|
851
|
+
export function openMemoryFromSnapshot(telemetry_dispatch, telemetry_parent, open_progress_dispatch, component_dispatch, durability) {
|
|
852
|
+
var ptr0 = isLikeNone(durability) ? 0 : passStringToWasm0(durability, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
853
|
+
var len0 = WASM_VECTOR_LEN;
|
|
854
|
+
const ret = wasm.openMemoryFromSnapshot(isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), isLikeNone(telemetry_parent) ? 0 : addHeapObject(telemetry_parent), isLikeNone(open_progress_dispatch) ? 0 : addHeapObject(open_progress_dispatch), addHeapObject(component_dispatch), ptr0, len0);
|
|
685
855
|
return WasmSnapshotRestore.__wrap(ret);
|
|
686
856
|
}
|
|
687
857
|
|
|
@@ -700,6 +870,30 @@ export function openRemote(url, fetch, headers, initial_active_branch_id) {
|
|
|
700
870
|
const ret = wasm.openRemote(ptr0, len0, addHeapObject(fetch), addHeapObject(headers), ptr1, len1);
|
|
701
871
|
return takeObject(ret);
|
|
702
872
|
}
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Parse the engine SQL dialect for hosts that authorize public SQL.
|
|
876
|
+
* @param {string} sql
|
|
877
|
+
* @param {number} provided_param_count
|
|
878
|
+
* @returns {any}
|
|
879
|
+
*/
|
|
880
|
+
export function parseSqlScript(sql, provided_param_count) {
|
|
881
|
+
try {
|
|
882
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
883
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
884
|
+
const len0 = WASM_VECTOR_LEN;
|
|
885
|
+
wasm.parseSqlScript(retptr, ptr0, len0, provided_param_count);
|
|
886
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
887
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
888
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
889
|
+
if (r2) {
|
|
890
|
+
throw takeObject(r1);
|
|
891
|
+
}
|
|
892
|
+
return takeObject(r0);
|
|
893
|
+
} finally {
|
|
894
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
703
897
|
function __wbg_get_imports() {
|
|
704
898
|
const import0 = {
|
|
705
899
|
__proto__: null,
|
|
@@ -793,22 +987,30 @@ function __wbg_get_imports() {
|
|
|
793
987
|
__wbg__wbg_cb_unref_61db23ac97f16c31: function(arg0) {
|
|
794
988
|
getObject(arg0)._wbg_cb_unref();
|
|
795
989
|
},
|
|
796
|
-
|
|
990
|
+
__wbg_acquirePartialReplicaOwner_eec421a6abd55550: function() { return handleError(function (arg0, arg1, arg2) {
|
|
991
|
+
const ret = getObject(arg0).acquirePartialReplicaOwner(getStringFromWasm0(arg1, arg2));
|
|
992
|
+
return addHeapObject(ret);
|
|
993
|
+
}, arguments); },
|
|
994
|
+
__wbg_acquireSession_efd474d194c89c7c: function(arg0) {
|
|
797
995
|
const ret = getObject(arg0).acquireSession();
|
|
798
996
|
return addHeapObject(ret);
|
|
799
997
|
},
|
|
800
|
-
|
|
998
|
+
__wbg_beginRead_c29ba5aceee12f65: function(arg0, arg1) {
|
|
801
999
|
const ret = getObject(arg0).beginRead(takeObject(arg1));
|
|
802
1000
|
return addHeapObject(ret);
|
|
803
1001
|
},
|
|
804
|
-
|
|
1002
|
+
__wbg_beginScan_0a623d7363773a8c: function(arg0, arg1, arg2, arg3) {
|
|
805
1003
|
const ret = getObject(arg0).beginScan(takeObject(arg1), takeObject(arg2), takeObject(arg3));
|
|
806
1004
|
return addHeapObject(ret);
|
|
807
1005
|
},
|
|
808
|
-
|
|
1006
|
+
__wbg_beginWrite_243047d9cbfeca9e: function(arg0, arg1) {
|
|
809
1007
|
const ret = getObject(arg0).beginWrite(takeObject(arg1));
|
|
810
1008
|
return addHeapObject(ret);
|
|
811
1009
|
},
|
|
1010
|
+
__wbg_browsercomponenthost_new: function(arg0) {
|
|
1011
|
+
const ret = BrowserComponentHost.__wrap(arg0);
|
|
1012
|
+
return addHeapObject(ret);
|
|
1013
|
+
},
|
|
812
1014
|
__wbg_call_40e4174f169eaca7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
813
1015
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
814
1016
|
return addHeapObject(ret);
|
|
@@ -821,18 +1023,21 @@ function __wbg_get_imports() {
|
|
|
821
1023
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
822
1024
|
return addHeapObject(ret);
|
|
823
1025
|
}, arguments); },
|
|
824
|
-
|
|
1026
|
+
__wbg_changed_09a2471dfa033a65: function(arg0) {
|
|
825
1027
|
const ret = getObject(arg0).changed();
|
|
826
1028
|
return addHeapObject(ret);
|
|
827
1029
|
},
|
|
828
|
-
|
|
1030
|
+
__wbg_close_037c736acbd898fe: function(arg0) {
|
|
1031
|
+
getObject(arg0).close();
|
|
1032
|
+
},
|
|
1033
|
+
__wbg_close_84f9cb63f6cabe57: function(arg0) {
|
|
829
1034
|
getObject(arg0).close();
|
|
830
1035
|
},
|
|
831
|
-
|
|
1036
|
+
__wbg_close_9f2d9c9e61b826ae: function(arg0) {
|
|
832
1037
|
const ret = getObject(arg0).close();
|
|
833
1038
|
return addHeapObject(ret);
|
|
834
1039
|
},
|
|
835
|
-
|
|
1040
|
+
__wbg_commit_0426d36d5c3467bd: function(arg0) {
|
|
836
1041
|
const ret = getObject(arg0).commit();
|
|
837
1042
|
return addHeapObject(ret);
|
|
838
1043
|
},
|
|
@@ -840,11 +1045,11 @@ function __wbg_get_imports() {
|
|
|
840
1045
|
const ret = Reflect.construct(getObject(arg0), getObject(arg1));
|
|
841
1046
|
return addHeapObject(ret);
|
|
842
1047
|
}, arguments); },
|
|
843
|
-
|
|
1048
|
+
__wbg_deleteMany_592dee42b3e47e6b: function(arg0, arg1, arg2) {
|
|
844
1049
|
const ret = getObject(arg0).deleteMany(takeObject(arg1), takeObject(arg2));
|
|
845
1050
|
return addHeapObject(ret);
|
|
846
1051
|
},
|
|
847
|
-
|
|
1052
|
+
__wbg_deleteRange_e742782bb7dd946f: function(arg0, arg1, arg2) {
|
|
848
1053
|
const ret = getObject(arg0).deleteRange(takeObject(arg1), takeObject(arg2));
|
|
849
1054
|
return addHeapObject(ret);
|
|
850
1055
|
},
|
|
@@ -871,7 +1076,7 @@ function __wbg_get_imports() {
|
|
|
871
1076
|
const ret = Array.from(getObject(arg0));
|
|
872
1077
|
return addHeapObject(ret);
|
|
873
1078
|
},
|
|
874
|
-
|
|
1079
|
+
__wbg_getMany_954f9ded5c747f31: function(arg0, arg1) {
|
|
875
1080
|
const ret = getObject(arg0).getMany(takeObject(arg1));
|
|
876
1081
|
return addHeapObject(ret);
|
|
877
1082
|
},
|
|
@@ -996,7 +1201,7 @@ function __wbg_get_imports() {
|
|
|
996
1201
|
const a = state0.a;
|
|
997
1202
|
state0.a = 0;
|
|
998
1203
|
try {
|
|
999
|
-
return
|
|
1204
|
+
return __wasm_bindgen_func_elem_99619(a, state0.b, arg0, arg1);
|
|
1000
1205
|
} finally {
|
|
1001
1206
|
state0.a = a;
|
|
1002
1207
|
}
|
|
@@ -1026,7 +1231,7 @@ function __wbg_get_imports() {
|
|
|
1026
1231
|
const a = state0.a;
|
|
1027
1232
|
state0.a = 0;
|
|
1028
1233
|
try {
|
|
1029
|
-
return
|
|
1234
|
+
return __wasm_bindgen_func_elem_99619(a, state0.b, arg0, arg1);
|
|
1030
1235
|
} finally {
|
|
1031
1236
|
state0.a = a;
|
|
1032
1237
|
}
|
|
@@ -1037,7 +1242,7 @@ function __wbg_get_imports() {
|
|
|
1037
1242
|
state0.a = 0;
|
|
1038
1243
|
}
|
|
1039
1244
|
},
|
|
1040
|
-
|
|
1245
|
+
__wbg_nextPage_0f9d04d46afb4abb: function(arg0, arg1) {
|
|
1041
1246
|
const ret = getObject(arg0).nextPage(arg1 >>> 0);
|
|
1042
1247
|
return addHeapObject(ret);
|
|
1043
1248
|
},
|
|
@@ -1076,7 +1281,7 @@ function __wbg_get_imports() {
|
|
|
1076
1281
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1077
1282
|
return ret;
|
|
1078
1283
|
},
|
|
1079
|
-
|
|
1284
|
+
__wbg_putMany_ee434f7186403754: function(arg0, arg1, arg2) {
|
|
1080
1285
|
const ret = getObject(arg0).putMany(takeObject(arg1), takeObject(arg2));
|
|
1081
1286
|
return addHeapObject(ret);
|
|
1082
1287
|
},
|
|
@@ -1087,15 +1292,15 @@ function __wbg_get_imports() {
|
|
|
1087
1292
|
const ret = getObject(arg0).queueMicrotask;
|
|
1088
1293
|
return addHeapObject(ret);
|
|
1089
1294
|
},
|
|
1090
|
-
|
|
1091
|
-
const ret = getObject(arg0).
|
|
1295
|
+
__wbg_ready_6d4eba7d7a164914: function() { return handleError(function (arg0) {
|
|
1296
|
+
const ret = getObject(arg0).ready;
|
|
1092
1297
|
return addHeapObject(ret);
|
|
1093
|
-
},
|
|
1298
|
+
}, arguments); },
|
|
1094
1299
|
__wbg_resolve_25a7e548d5881dca: function(arg0) {
|
|
1095
1300
|
const ret = Promise.resolve(getObject(arg0));
|
|
1096
1301
|
return addHeapObject(ret);
|
|
1097
1302
|
},
|
|
1098
|
-
|
|
1303
|
+
__wbg_rollback_4951ba72d8d65007: function(arg0) {
|
|
1099
1304
|
const ret = getObject(arg0).rollback();
|
|
1100
1305
|
return addHeapObject(ret);
|
|
1101
1306
|
},
|
|
@@ -1179,23 +1384,23 @@ function __wbg_get_imports() {
|
|
|
1179
1384
|
const ret = WasmRemoteObserveEvents.__wrap(arg0);
|
|
1180
1385
|
return addHeapObject(ret);
|
|
1181
1386
|
},
|
|
1182
|
-
|
|
1387
|
+
__wbg_watchForChanges_aadd2b8cd4d55844: function(arg0) {
|
|
1183
1388
|
const ret = getObject(arg0).watchForChanges();
|
|
1184
1389
|
return addHeapObject(ret);
|
|
1185
1390
|
},
|
|
1186
1391
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1187
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1188
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1392
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1996, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
|
|
1393
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_20812);
|
|
1189
1394
|
return addHeapObject(ret);
|
|
1190
1395
|
},
|
|
1191
1396
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1192
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1193
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1397
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21938, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1398
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_99617);
|
|
1194
1399
|
return addHeapObject(ret);
|
|
1195
1400
|
},
|
|
1196
1401
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1197
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1198
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1402
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1995, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1403
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_20811);
|
|
1199
1404
|
return addHeapObject(ret);
|
|
1200
1405
|
},
|
|
1201
1406
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -1244,19 +1449,19 @@ function __wbg_get_imports() {
|
|
|
1244
1449
|
};
|
|
1245
1450
|
}
|
|
1246
1451
|
|
|
1247
|
-
function
|
|
1248
|
-
wasm.
|
|
1452
|
+
function __wasm_bindgen_func_elem_20811(arg0, arg1) {
|
|
1453
|
+
wasm.__wasm_bindgen_func_elem_20811(arg0, arg1);
|
|
1249
1454
|
}
|
|
1250
1455
|
|
|
1251
|
-
function
|
|
1252
|
-
const ret = wasm.
|
|
1456
|
+
function __wasm_bindgen_func_elem_20812(arg0, arg1, arg2) {
|
|
1457
|
+
const ret = wasm.__wasm_bindgen_func_elem_20812(arg0, arg1, addHeapObject(arg2));
|
|
1253
1458
|
return takeObject(ret);
|
|
1254
1459
|
}
|
|
1255
1460
|
|
|
1256
|
-
function
|
|
1461
|
+
function __wasm_bindgen_func_elem_99617(arg0, arg1, arg2) {
|
|
1257
1462
|
try {
|
|
1258
1463
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1259
|
-
wasm.
|
|
1464
|
+
wasm.__wasm_bindgen_func_elem_99617(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1260
1465
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1261
1466
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1262
1467
|
if (r1) {
|
|
@@ -1267,10 +1472,13 @@ function __wasm_bindgen_func_elem_95597(arg0, arg1, arg2) {
|
|
|
1267
1472
|
}
|
|
1268
1473
|
}
|
|
1269
1474
|
|
|
1270
|
-
function
|
|
1271
|
-
wasm.
|
|
1475
|
+
function __wasm_bindgen_func_elem_99619(arg0, arg1, arg2, arg3) {
|
|
1476
|
+
wasm.__wasm_bindgen_func_elem_99619(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1272
1477
|
}
|
|
1273
1478
|
|
|
1479
|
+
const BrowserComponentHostFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1480
|
+
? { register: () => {}, unregister: () => {} }
|
|
1481
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_browsercomponenthost_free(ptr, 1));
|
|
1274
1482
|
const WasmLixFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1275
1483
|
? { register: () => {}, unregister: () => {} }
|
|
1276
1484
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlix_free(ptr, 1));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/wasm/lix_js_sdk_bg.wasm
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 51272624 bytes
|
|
4
|
+
sha256: 1b1a35b55d02451dc8ef2c418bf9b9a3e55733ad7e73cc39ecaf1bda88f11661
|