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

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.3",
4
4
  "description": "WebAssembly bindings for RivetKit core on edge JavaScript runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export function awaitPromise(promise: Promise<any>): Promise<any>;
4
- export function start(): void;
5
- export function bridgeRivetErrorPrefix(): string;
6
4
  export function uint8ArrayFromBytes(bytes: Uint8Array): Uint8Array;
5
+ export function start(): void;
7
6
  export function roundTripBytes(bytes: Uint8Array): Uint8Array;
7
+ export function bridgeRivetErrorPrefix(): string;
8
8
  export class ActorContext {
9
9
  free(): void;
10
10
  keepAwake(promise: Promise<any>): 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;
@@ -230,26 +230,6 @@ export function awaitPromise(promise) {
230
230
  return ret;
231
231
  }
232
232
 
233
- export function start() {
234
- wasm.start();
235
- }
236
-
237
- /**
238
- * @returns {string}
239
- */
240
- export function bridgeRivetErrorPrefix() {
241
- let deferred1_0;
242
- let deferred1_1;
243
- try {
244
- const ret = wasm.bridgeRivetErrorPrefix();
245
- deferred1_0 = ret[0];
246
- deferred1_1 = ret[1];
247
- return getStringFromWasm0(ret[0], ret[1]);
248
- } finally {
249
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
250
- }
251
- }
252
-
253
233
  /**
254
234
  * @param {Uint8Array} bytes
255
235
  * @returns {Uint8Array}
@@ -261,6 +241,10 @@ export function uint8ArrayFromBytes(bytes) {
261
241
  return ret;
262
242
  }
263
243
 
244
+ export function start() {
245
+ wasm.start();
246
+ }
247
+
264
248
  /**
265
249
  * @param {Uint8Array} bytes
266
250
  * @returns {Uint8Array}
@@ -274,6 +258,22 @@ export function roundTripBytes(bytes) {
274
258
  return v2;
275
259
  }
276
260
 
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
278
  wasm.closure1607_externref_shim(arg0, arg1, arg2);
279
279
  }
@@ -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_wrapper3769 = 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_wrapper3771 = 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_wrapper3773 = 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_wrapper3775 = 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;