@rivetkit/rivetkit-wasm 2.3.3-rc.2 → 2.3.4

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": "2.3.3-rc.2",
3
+ "version": "2.3.4",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,9 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function awaitPromise(promise: Promise<any>): Promise<any>;
4
- export function start(): void;
5
3
  export function bridgeRivetErrorPrefix(): string;
6
4
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
5
+ export function awaitPromise(promise: Promise<any>): Promise<any>;
6
+ export function start(): void;
7
7
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
8
8
  export class ActorContext {
9
9
  free(): void;
@@ -240,8 +240,8 @@ export interface InitOutput {
240
240
  readonly start: () => void;
241
241
  readonly actorcontext_queue: (a: number) => number;
242
242
  readonly actorcontext_schedule: (a: number) => number;
243
- readonly __wbg_queue_free: (a: number, b: number) => void;
244
243
  readonly __wbg_schedule_free: (a: number, b: number) => void;
244
+ readonly __wbg_queue_free: (a: number, b: number) => void;
245
245
  readonly __wbindgen_malloc: (a: number, b: number) => number;
246
246
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
247
247
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -221,19 +221,6 @@ function _assertClass(instance, klass) {
221
221
  throw new Error(`expected instance of ${klass.name}`);
222
222
  }
223
223
  }
224
- /**
225
- * @param {Promise<any>} promise
226
- * @returns {Promise<any>}
227
- */
228
- export function awaitPromise(promise) {
229
- const ret = wasm.awaitPromise(promise);
230
- return ret;
231
- }
232
-
233
- export function start() {
234
- wasm.start();
235
- }
236
-
237
224
  /**
238
225
  * @returns {string}
239
226
  */
@@ -261,6 +248,19 @@ export function uint8ArrayFromBytes(bytes) {
261
248
  return ret;
262
249
  }
263
250
 
251
+ /**
252
+ * @param {Promise<any>} promise
253
+ * @returns {Promise<any>}
254
+ */
255
+ export function awaitPromise(promise) {
256
+ const ret = wasm.awaitPromise(promise);
257
+ return ret;
258
+ }
259
+
260
+ export function start() {
261
+ wasm.start();
262
+ }
263
+
264
264
  /**
265
265
  * @param {Uint8Array} bytes
266
266
  * @returns {Uint8Array}
@@ -1788,23 +1788,23 @@ function __wbg_get_imports() {
1788
1788
  const ret = false;
1789
1789
  return ret;
1790
1790
  };
1791
- imports.wbg.__wbindgen_closure_wrapper3772 = function(arg0, arg1, arg2) {
1791
+ imports.wbg.__wbindgen_closure_wrapper3770 = function(arg0, arg1, arg2) {
1792
1792
  const ret = makeMutClosure(arg0, arg1, 1608, __wbg_adapter_46);
1793
1793
  return ret;
1794
1794
  };
1795
- imports.wbg.__wbindgen_closure_wrapper3774 = function(arg0, arg1, arg2) {
1795
+ imports.wbg.__wbindgen_closure_wrapper3772 = function(arg0, arg1, arg2) {
1796
1796
  const ret = makeMutClosure(arg0, arg1, 1608, __wbg_adapter_46);
1797
1797
  return ret;
1798
1798
  };
1799
- imports.wbg.__wbindgen_closure_wrapper3776 = function(arg0, arg1, arg2) {
1799
+ imports.wbg.__wbindgen_closure_wrapper3774 = function(arg0, arg1, arg2) {
1800
1800
  const ret = makeMutClosure(arg0, arg1, 1608, __wbg_adapter_46);
1801
1801
  return ret;
1802
1802
  };
1803
- imports.wbg.__wbindgen_closure_wrapper3778 = function(arg0, arg1, arg2) {
1803
+ imports.wbg.__wbindgen_closure_wrapper3776 = function(arg0, arg1, arg2) {
1804
1804
  const ret = makeMutClosure(arg0, arg1, 1608, __wbg_adapter_46);
1805
1805
  return ret;
1806
1806
  };
1807
- imports.wbg.__wbindgen_closure_wrapper4620 = function(arg0, arg1, arg2) {
1807
+ imports.wbg.__wbindgen_closure_wrapper4617 = function(arg0, arg1, arg2) {
1808
1808
  const ret = makeMutClosure(arg0, arg1, 1960, __wbg_adapter_55);
1809
1809
  return ret;
1810
1810
  };
Binary file
@@ -103,8 +103,8 @@ export const websockethandle_setEventCallback: (a: number, b: any) => void;
103
103
  export const start: () => void;
104
104
  export const actorcontext_queue: (a: number) => number;
105
105
  export const actorcontext_schedule: (a: number) => number;
106
- export const __wbg_queue_free: (a: number, b: number) => void;
107
106
  export const __wbg_schedule_free: (a: number, b: number) => void;
107
+ export const __wbg_queue_free: (a: number, b: number) => void;
108
108
  export const __wbindgen_malloc: (a: number, b: number) => number;
109
109
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
110
110
  export const __wbindgen_exn_store: (a: number) => void;