jazz-wasm 2.0.0-alpha.41 → 2.0.0-alpha.43
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/package.json +1 -1
- package/pkg/jazz_wasm.d.ts +0 -35
- package/pkg/jazz_wasm.js +4 -130
- package/pkg/jazz_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/pkg/jazz_wasm.d.ts
CHANGED
|
@@ -140,15 +140,6 @@ export class WasmRuntime {
|
|
|
140
140
|
* Delete a row by ObjectId.
|
|
141
141
|
*/
|
|
142
142
|
delete(object_id: string): any;
|
|
143
|
-
/**
|
|
144
|
-
* Delete a row and return a Promise that resolves when the tier acks.
|
|
145
|
-
*/
|
|
146
|
-
deleteDurable(object_id: string, tier: string): Promise<any>;
|
|
147
|
-
/**
|
|
148
|
-
* Delete a row and return a Promise that resolves when the tier acks,
|
|
149
|
-
* scoped to an explicit session principal.
|
|
150
|
-
*/
|
|
151
|
-
deleteDurableWithSession(object_id: string, write_context_json: string | null | undefined, tier: string): Promise<any>;
|
|
152
143
|
/**
|
|
153
144
|
* Delete a row immediately, returning the logical batch id that tracks
|
|
154
145
|
* replayable persisted fate for this write.
|
|
@@ -201,17 +192,6 @@ export class WasmRuntime {
|
|
|
201
192
|
* The inserted row as `{ id, values, batchId }`.
|
|
202
193
|
*/
|
|
203
194
|
insert(table: string, values: any, object_id?: string | null): any;
|
|
204
|
-
/**
|
|
205
|
-
* Insert a row and return a Promise that resolves when the tier acks.
|
|
206
|
-
*
|
|
207
|
-
* `tier` must be one of: "local", "edge", "global".
|
|
208
|
-
*/
|
|
209
|
-
insertDurable(table: string, values: any, tier: string, object_id?: string | null): Promise<any>;
|
|
210
|
-
/**
|
|
211
|
-
* Insert a row and return a Promise that resolves when the tier acks,
|
|
212
|
-
* scoped to an explicit session principal.
|
|
213
|
-
*/
|
|
214
|
-
insertDurableWithSession(table: string, values: any, write_context_json: string | null | undefined, tier: string, object_id?: string | null): Promise<any>;
|
|
215
195
|
/**
|
|
216
196
|
* Insert a row immediately, returning the logical batch id that tracks
|
|
217
197
|
* replayable persisted fate for this write.
|
|
@@ -331,15 +311,6 @@ export class WasmRuntime {
|
|
|
331
311
|
* Push updated auth credentials into the live transport.
|
|
332
312
|
*/
|
|
333
313
|
updateAuth(auth_json: string): void;
|
|
334
|
-
/**
|
|
335
|
-
* Update a row and return a Promise that resolves when the tier acks.
|
|
336
|
-
*/
|
|
337
|
-
updateDurable(object_id: string, values: any, tier: string): Promise<any>;
|
|
338
|
-
/**
|
|
339
|
-
* Update a row and return a Promise that resolves when the tier acks,
|
|
340
|
-
* scoped to an explicit session principal.
|
|
341
|
-
*/
|
|
342
|
-
updateDurableWithSession(object_id: string, values: any, write_context_json: string | null | undefined, tier: string): Promise<any>;
|
|
343
314
|
/**
|
|
344
315
|
* Update a row immediately, returning the logical batch id that tracks
|
|
345
316
|
* replayable persisted fate for this write.
|
|
@@ -451,8 +422,6 @@ export interface InitOutput {
|
|
|
451
422
|
readonly wasmruntime_connect: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
452
423
|
readonly wasmruntime_createSubscription: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number];
|
|
453
424
|
readonly wasmruntime_delete: (a: number, b: number, c: number) => [number, number, number];
|
|
454
|
-
readonly wasmruntime_deleteDurable: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
455
|
-
readonly wasmruntime_deleteDurableWithSession: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
456
425
|
readonly wasmruntime_deletePersisted: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
457
426
|
readonly wasmruntime_deletePersistedWithSession: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
458
427
|
readonly wasmruntime_deleteWithSession: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
@@ -466,8 +435,6 @@ export interface InitOutput {
|
|
|
466
435
|
readonly wasmruntime_getSchema: (a: number) => [number, number, number];
|
|
467
436
|
readonly wasmruntime_getSchemaHash: (a: number) => [number, number];
|
|
468
437
|
readonly wasmruntime_insert: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
469
|
-
readonly wasmruntime_insertDurable: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
470
|
-
readonly wasmruntime_insertDurableWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
|
|
471
438
|
readonly wasmruntime_insertPersisted: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
472
439
|
readonly wasmruntime_insertPersistedWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
473
440
|
readonly wasmruntime_insertWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
@@ -489,8 +456,6 @@ export interface InitOutput {
|
|
|
489
456
|
readonly wasmruntime_unsubscribe: (a: number, b: number) => void;
|
|
490
457
|
readonly wasmruntime_update: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
491
458
|
readonly wasmruntime_updateAuth: (a: number, b: number, c: number) => [number, number];
|
|
492
|
-
readonly wasmruntime_updateDurable: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
493
|
-
readonly wasmruntime_updateDurableWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
494
459
|
readonly wasmruntime_updatePersisted: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
|
495
460
|
readonly wasmruntime_updatePersistedWithSession: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number) => [number, number, number];
|
|
496
461
|
readonly wasmruntime_updateWithSession: (a: number, b: number, c: number, d: any, e: number, f: number) => [number, number, number];
|
package/pkg/jazz_wasm.js
CHANGED
|
@@ -454,44 +454,6 @@ export class WasmRuntime {
|
|
|
454
454
|
}
|
|
455
455
|
return takeFromExternrefTable0(ret[0]);
|
|
456
456
|
}
|
|
457
|
-
/**
|
|
458
|
-
* Delete a row and return a Promise that resolves when the tier acks.
|
|
459
|
-
* @param {string} object_id
|
|
460
|
-
* @param {string} tier
|
|
461
|
-
* @returns {Promise<any>}
|
|
462
|
-
*/
|
|
463
|
-
deleteDurable(object_id, tier) {
|
|
464
|
-
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
465
|
-
const len0 = WASM_VECTOR_LEN;
|
|
466
|
-
const ptr1 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
467
|
-
const len1 = WASM_VECTOR_LEN;
|
|
468
|
-
const ret = wasm.wasmruntime_deleteDurable(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
469
|
-
if (ret[2]) {
|
|
470
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
471
|
-
}
|
|
472
|
-
return takeFromExternrefTable0(ret[0]);
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Delete a row and return a Promise that resolves when the tier acks,
|
|
476
|
-
* scoped to an explicit session principal.
|
|
477
|
-
* @param {string} object_id
|
|
478
|
-
* @param {string | null | undefined} write_context_json
|
|
479
|
-
* @param {string} tier
|
|
480
|
-
* @returns {Promise<any>}
|
|
481
|
-
*/
|
|
482
|
-
deleteDurableWithSession(object_id, write_context_json, tier) {
|
|
483
|
-
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
484
|
-
const len0 = WASM_VECTOR_LEN;
|
|
485
|
-
var ptr1 = isLikeNone(write_context_json) ? 0 : passStringToWasm0(write_context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
486
|
-
var len1 = WASM_VECTOR_LEN;
|
|
487
|
-
const ptr2 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
488
|
-
const len2 = WASM_VECTOR_LEN;
|
|
489
|
-
const ret = wasm.wasmruntime_deleteDurableWithSession(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
490
|
-
if (ret[2]) {
|
|
491
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
492
|
-
}
|
|
493
|
-
return takeFromExternrefTable0(ret[0]);
|
|
494
|
-
}
|
|
495
457
|
/**
|
|
496
458
|
* Delete a row immediately, returning the logical batch id that tracks
|
|
497
459
|
* replayable persisted fate for this write.
|
|
@@ -687,54 +649,6 @@ export class WasmRuntime {
|
|
|
687
649
|
}
|
|
688
650
|
return takeFromExternrefTable0(ret[0]);
|
|
689
651
|
}
|
|
690
|
-
/**
|
|
691
|
-
* Insert a row and return a Promise that resolves when the tier acks.
|
|
692
|
-
*
|
|
693
|
-
* `tier` must be one of: "local", "edge", "global".
|
|
694
|
-
* @param {string} table
|
|
695
|
-
* @param {any} values
|
|
696
|
-
* @param {string} tier
|
|
697
|
-
* @param {string | null} [object_id]
|
|
698
|
-
* @returns {Promise<any>}
|
|
699
|
-
*/
|
|
700
|
-
insertDurable(table, values, tier, object_id) {
|
|
701
|
-
const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
702
|
-
const len0 = WASM_VECTOR_LEN;
|
|
703
|
-
const ptr1 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
704
|
-
const len1 = WASM_VECTOR_LEN;
|
|
705
|
-
var ptr2 = isLikeNone(object_id) ? 0 : passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
706
|
-
var len2 = WASM_VECTOR_LEN;
|
|
707
|
-
const ret = wasm.wasmruntime_insertDurable(this.__wbg_ptr, ptr0, len0, values, ptr1, len1, ptr2, len2);
|
|
708
|
-
if (ret[2]) {
|
|
709
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
710
|
-
}
|
|
711
|
-
return takeFromExternrefTable0(ret[0]);
|
|
712
|
-
}
|
|
713
|
-
/**
|
|
714
|
-
* Insert a row and return a Promise that resolves when the tier acks,
|
|
715
|
-
* scoped to an explicit session principal.
|
|
716
|
-
* @param {string} table
|
|
717
|
-
* @param {any} values
|
|
718
|
-
* @param {string | null | undefined} write_context_json
|
|
719
|
-
* @param {string} tier
|
|
720
|
-
* @param {string | null} [object_id]
|
|
721
|
-
* @returns {Promise<any>}
|
|
722
|
-
*/
|
|
723
|
-
insertDurableWithSession(table, values, write_context_json, tier, object_id) {
|
|
724
|
-
const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
725
|
-
const len0 = WASM_VECTOR_LEN;
|
|
726
|
-
var ptr1 = isLikeNone(write_context_json) ? 0 : passStringToWasm0(write_context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
727
|
-
var len1 = WASM_VECTOR_LEN;
|
|
728
|
-
const ptr2 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
729
|
-
const len2 = WASM_VECTOR_LEN;
|
|
730
|
-
var ptr3 = isLikeNone(object_id) ? 0 : passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
731
|
-
var len3 = WASM_VECTOR_LEN;
|
|
732
|
-
const ret = wasm.wasmruntime_insertDurableWithSession(this.__wbg_ptr, ptr0, len0, values, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
733
|
-
if (ret[2]) {
|
|
734
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
735
|
-
}
|
|
736
|
-
return takeFromExternrefTable0(ret[0]);
|
|
737
|
-
}
|
|
738
652
|
/**
|
|
739
653
|
* Insert a row immediately, returning the logical batch id that tracks
|
|
740
654
|
* replayable persisted fate for this write.
|
|
@@ -1133,46 +1047,6 @@ export class WasmRuntime {
|
|
|
1133
1047
|
throw takeFromExternrefTable0(ret[0]);
|
|
1134
1048
|
}
|
|
1135
1049
|
}
|
|
1136
|
-
/**
|
|
1137
|
-
* Update a row and return a Promise that resolves when the tier acks.
|
|
1138
|
-
* @param {string} object_id
|
|
1139
|
-
* @param {any} values
|
|
1140
|
-
* @param {string} tier
|
|
1141
|
-
* @returns {Promise<any>}
|
|
1142
|
-
*/
|
|
1143
|
-
updateDurable(object_id, values, tier) {
|
|
1144
|
-
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1145
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1146
|
-
const ptr1 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1147
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1148
|
-
const ret = wasm.wasmruntime_updateDurable(this.__wbg_ptr, ptr0, len0, values, ptr1, len1);
|
|
1149
|
-
if (ret[2]) {
|
|
1150
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1151
|
-
}
|
|
1152
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* Update a row and return a Promise that resolves when the tier acks,
|
|
1156
|
-
* scoped to an explicit session principal.
|
|
1157
|
-
* @param {string} object_id
|
|
1158
|
-
* @param {any} values
|
|
1159
|
-
* @param {string | null | undefined} write_context_json
|
|
1160
|
-
* @param {string} tier
|
|
1161
|
-
* @returns {Promise<any>}
|
|
1162
|
-
*/
|
|
1163
|
-
updateDurableWithSession(object_id, values, write_context_json, tier) {
|
|
1164
|
-
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1165
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1166
|
-
var ptr1 = isLikeNone(write_context_json) ? 0 : passStringToWasm0(write_context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1167
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1168
|
-
const ptr2 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1169
|
-
const len2 = WASM_VECTOR_LEN;
|
|
1170
|
-
const ret = wasm.wasmruntime_updateDurableWithSession(this.__wbg_ptr, ptr0, len0, values, ptr1, len1, ptr2, len2);
|
|
1171
|
-
if (ret[2]) {
|
|
1172
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1173
|
-
}
|
|
1174
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1175
|
-
}
|
|
1176
1050
|
/**
|
|
1177
1051
|
* Update a row immediately, returning the logical batch id that tracks
|
|
1178
1052
|
* replayable persisted fate for this write.
|
|
@@ -2213,22 +2087,22 @@ function __wbg_get_imports() {
|
|
|
2213
2087
|
return ret;
|
|
2214
2088
|
}, arguments); },
|
|
2215
2089
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2216
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2090
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3155, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2217
2091
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h656199c36535c3e6);
|
|
2218
2092
|
return ret;
|
|
2219
2093
|
},
|
|
2220
2094
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2221
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
2095
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 763, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2222
2096
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf7ddf3622752ec36);
|
|
2223
2097
|
return ret;
|
|
2224
2098
|
},
|
|
2225
2099
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2226
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
2100
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 876, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2227
2101
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc18e08680cddc2e5);
|
|
2228
2102
|
return ret;
|
|
2229
2103
|
},
|
|
2230
2104
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2231
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2105
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1253, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2232
2106
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h03757a48b3eba690);
|
|
2233
2107
|
return ret;
|
|
2234
2108
|
},
|
package/pkg/jazz_wasm_bg.wasm
CHANGED
|
Binary file
|