@rivetkit/rivetkit-wasm 0.0.0-skip-ready-wait-flatten-client-options.1cae221 → 2.3.0-rc.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/rivetkit-wasm",
3
- "version": "0.0.0-skip-ready-wait-flatten-client-options.1cae221",
3
+ "version": "2.3.0-rc.5",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,13 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function awaitPromise(promise: Promise<any>): Promise<any>;
4
- export function roundTripBytes(bytes: Uint8Array): Uint8Array;
3
+ export function bridgeRivetErrorPrefix(): string;
5
4
  export function start(): void;
5
+ export function roundTripBytes(bytes: Uint8Array): Uint8Array;
6
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
6
7
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
7
- export function bridgeRivetErrorPrefix(): string;
8
8
  export class ActorContext {
9
9
  free(): void;
10
- keepAwake(_promise: Promise<any>): void;
10
+ keepAwake(promise: Promise<any>): void;
11
11
  saveState(payload: any): Promise<void>;
12
12
  waitUntil(promise: Promise<any>): void;
13
13
  abortSignal(): any;
@@ -244,9 +244,9 @@ export interface InitOutput {
244
244
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
245
245
  readonly __wbindgen_export_6: WebAssembly.Table;
246
246
  readonly __externref_table_dealloc: (a: number) => void;
247
- readonly closure1598_externref_shim: (a: number, b: number, c: any) => void;
248
- readonly closure1801_externref_shim: (a: number, b: number, c: any) => void;
249
- readonly closure2014_externref_shim: (a: number, b: number, c: any, d: any) => void;
247
+ readonly closure1602_externref_shim: (a: number, b: number, c: any) => void;
248
+ readonly closure1805_externref_shim: (a: number, b: number, c: any) => void;
249
+ readonly closure2018_externref_shim: (a: number, b: number, c: any, d: any) => void;
250
250
  readonly __wbindgen_start: () => void;
251
251
  }
252
252
 
@@ -222,12 +222,23 @@ function _assertClass(instance, klass) {
222
222
  }
223
223
  }
224
224
  /**
225
- * @param {Promise<any>} promise
226
- * @returns {Promise<any>}
225
+ * @returns {string}
227
226
  */
228
- export function awaitPromise(promise) {
229
- const ret = wasm.awaitPromise(promise);
230
- return ret;
227
+ export function bridgeRivetErrorPrefix() {
228
+ let deferred1_0;
229
+ let deferred1_1;
230
+ try {
231
+ const ret = wasm.bridgeRivetErrorPrefix();
232
+ deferred1_0 = ret[0];
233
+ deferred1_1 = ret[1];
234
+ return getStringFromWasm0(ret[0], ret[1]);
235
+ } finally {
236
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
237
+ }
238
+ }
239
+
240
+ export function start() {
241
+ wasm.start();
231
242
  }
232
243
 
233
244
  /**
@@ -243,8 +254,13 @@ export function roundTripBytes(bytes) {
243
254
  return v2;
244
255
  }
245
256
 
246
- export function start() {
247
- wasm.start();
257
+ /**
258
+ * @param {Promise<any>} promise
259
+ * @returns {Promise<any>}
260
+ */
261
+ export function awaitPromise(promise) {
262
+ const ret = wasm.awaitPromise(promise);
263
+ return ret;
248
264
  }
249
265
 
250
266
  /**
@@ -258,32 +274,16 @@ export function uint8ArrayFromBytes(bytes) {
258
274
  return ret;
259
275
  }
260
276
 
261
- /**
262
- * @returns {string}
263
- */
264
- export function bridgeRivetErrorPrefix() {
265
- let deferred1_0;
266
- let deferred1_1;
267
- try {
268
- const ret = wasm.bridgeRivetErrorPrefix();
269
- deferred1_0 = ret[0];
270
- deferred1_1 = ret[1];
271
- return getStringFromWasm0(ret[0], ret[1]);
272
- } finally {
273
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
274
- }
275
- }
276
-
277
277
  function __wbg_adapter_46(arg0, arg1, arg2) {
278
- wasm.closure1598_externref_shim(arg0, arg1, arg2);
278
+ wasm.closure1602_externref_shim(arg0, arg1, arg2);
279
279
  }
280
280
 
281
281
  function __wbg_adapter_55(arg0, arg1, arg2) {
282
- wasm.closure1801_externref_shim(arg0, arg1, arg2);
282
+ wasm.closure1805_externref_shim(arg0, arg1, arg2);
283
283
  }
284
284
 
285
285
  function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
286
- wasm.closure2014_externref_shim(arg0, arg1, arg2, arg3);
286
+ wasm.closure2018_externref_shim(arg0, arg1, arg2, arg3);
287
287
  }
288
288
 
289
289
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -314,10 +314,10 @@ export class ActorContext {
314
314
  wasm.__wbg_actorcontext_free(ptr, 0);
315
315
  }
316
316
  /**
317
- * @param {Promise<any>} _promise
317
+ * @param {Promise<any>} promise
318
318
  */
319
- keepAwake(_promise) {
320
- wasm.actorcontext_keepAwake(this.__wbg_ptr, _promise);
319
+ keepAwake(promise) {
320
+ wasm.actorcontext_keepAwake(this.__wbg_ptr, promise);
321
321
  }
322
322
  /**
323
323
  * @param {any} payload
@@ -1767,24 +1767,24 @@ function __wbg_get_imports() {
1767
1767
  const ret = false;
1768
1768
  return ret;
1769
1769
  };
1770
- imports.wbg.__wbindgen_closure_wrapper3773 = function(arg0, arg1, arg2) {
1771
- const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1770
+ imports.wbg.__wbindgen_closure_wrapper3797 = function(arg0, arg1, arg2) {
1771
+ const ret = makeMutClosure(arg0, arg1, 1603, __wbg_adapter_46);
1772
1772
  return ret;
1773
1773
  };
1774
- imports.wbg.__wbindgen_closure_wrapper3775 = function(arg0, arg1, arg2) {
1775
- const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1774
+ imports.wbg.__wbindgen_closure_wrapper3799 = function(arg0, arg1, arg2) {
1775
+ const ret = makeMutClosure(arg0, arg1, 1603, __wbg_adapter_46);
1776
1776
  return ret;
1777
1777
  };
1778
- imports.wbg.__wbindgen_closure_wrapper3777 = function(arg0, arg1, arg2) {
1779
- const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1778
+ imports.wbg.__wbindgen_closure_wrapper3801 = function(arg0, arg1, arg2) {
1779
+ const ret = makeMutClosure(arg0, arg1, 1603, __wbg_adapter_46);
1780
1780
  return ret;
1781
1781
  };
1782
- imports.wbg.__wbindgen_closure_wrapper3779 = function(arg0, arg1, arg2) {
1783
- const ret = makeMutClosure(arg0, arg1, 1599, __wbg_adapter_46);
1782
+ imports.wbg.__wbindgen_closure_wrapper3803 = function(arg0, arg1, arg2) {
1783
+ const ret = makeMutClosure(arg0, arg1, 1603, __wbg_adapter_46);
1784
1784
  return ret;
1785
1785
  };
1786
- imports.wbg.__wbindgen_closure_wrapper4377 = function(arg0, arg1, arg2) {
1787
- const ret = makeMutClosure(arg0, arg1, 1802, __wbg_adapter_55);
1786
+ imports.wbg.__wbindgen_closure_wrapper4401 = function(arg0, arg1, arg2) {
1787
+ const ret = makeMutClosure(arg0, arg1, 1806, __wbg_adapter_55);
1788
1788
  return ret;
1789
1789
  };
1790
1790
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -110,7 +110,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
110
110
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
111
111
  export const __wbindgen_export_6: WebAssembly.Table;
112
112
  export const __externref_table_dealloc: (a: number) => void;
113
- export const closure1598_externref_shim: (a: number, b: number, c: any) => void;
114
- export const closure1801_externref_shim: (a: number, b: number, c: any) => void;
115
- export const closure2014_externref_shim: (a: number, b: number, c: any, d: any) => void;
113
+ export const closure1602_externref_shim: (a: number, b: number, c: any) => void;
114
+ export const closure1805_externref_shim: (a: number, b: number, c: any) => void;
115
+ export const closure2018_externref_shim: (a: number, b: number, c: any, d: any) => void;
116
116
  export const __wbindgen_start: () => void;