@rivetkit/rivetkit-wasm 0.0.0-runner-config-drain-grace-threshold.e1be3d6 → 2.3.0-rc.10

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-runner-config-drain-grace-threshold.e1be3d6",
3
+ "version": "2.3.0-rc.10",
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
- 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
10
  keepAwake(promise: Promise<any>): void;
@@ -27,6 +27,7 @@ export class ActorContext {
27
27
  beginWebsocketCallback(): number;
28
28
  dirtyHibernatableConns(): Array<any>;
29
29
  kv(): Kv;
30
+ waitForTrackedShutdownWork(): Promise<boolean>;
30
31
  takePendingHibernationChanges(): Array<any>;
31
32
  key(): any;
32
33
  constructor();
@@ -176,6 +177,7 @@ export interface InitOutput {
176
177
  readonly actorcontext_state: (a: number) => [number, number];
177
178
  readonly actorcontext_takePendingHibernationChanges: (a: number) => any;
178
179
  readonly actorcontext_verifyInspectorAuth: (a: number, b: number, c: number) => any;
180
+ readonly actorcontext_waitForTrackedShutdownWork: (a: number) => any;
179
181
  readonly actorcontext_waitUntil: (a: number, b: any) => void;
180
182
  readonly actorfactory_new: (a: any, b: any) => [number, number, number];
181
183
  readonly awaitPromise: (a: any) => any;
@@ -244,9 +246,9 @@ export interface InitOutput {
244
246
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
245
247
  readonly __wbindgen_export_6: WebAssembly.Table;
246
248
  readonly __externref_table_dealloc: (a: number) => 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;
249
+ readonly closure1590_externref_shim: (a: number, b: number, c: any) => void;
250
+ readonly closure1943_externref_shim: (a: number, b: number, c: any) => void;
251
+ readonly closure2166_externref_shim: (a: number, b: number, c: any, d: any) => void;
250
252
  readonly __wbindgen_start: () => void;
251
253
  }
252
254
 
@@ -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.closure1602_externref_shim(arg0, arg1, arg2);
278
+ wasm.closure1590_externref_shim(arg0, arg1, arg2);
279
279
  }
280
280
 
281
281
  function __wbg_adapter_55(arg0, arg1, arg2) {
282
- wasm.closure1805_externref_shim(arg0, arg1, arg2);
282
+ wasm.closure1943_externref_shim(arg0, arg1, arg2);
283
283
  }
284
284
 
285
- function __wbg_adapter_224(arg0, arg1, arg2, arg3) {
286
- wasm.closure2018_externref_shim(arg0, arg1, arg2, arg3);
285
+ function __wbg_adapter_225(arg0, arg1, arg2, arg3) {
286
+ wasm.closure2166_externref_shim(arg0, arg1, arg2, arg3);
287
287
  }
288
288
 
289
289
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
@@ -450,6 +450,13 @@ export class ActorContext {
450
450
  const ret = wasm.actorcontext_kv(this.__wbg_ptr);
451
451
  return Kv.__wrap(ret);
452
452
  }
453
+ /**
454
+ * @returns {Promise<boolean>}
455
+ */
456
+ waitForTrackedShutdownWork() {
457
+ const ret = wasm.actorcontext_waitForTrackedShutdownWork(this.__wbg_ptr);
458
+ return ret;
459
+ }
453
460
  /**
454
461
  * @returns {Array<any>}
455
462
  */
@@ -1555,7 +1562,7 @@ function __wbg_get_imports() {
1555
1562
  const a = state0.a;
1556
1563
  state0.a = 0;
1557
1564
  try {
1558
- return __wbg_adapter_224(a, state0.b, arg0, arg1);
1565
+ return __wbg_adapter_225(a, state0.b, arg0, arg1);
1559
1566
  } finally {
1560
1567
  state0.a = a;
1561
1568
  }
@@ -1767,24 +1774,24 @@ function __wbg_get_imports() {
1767
1774
  const ret = false;
1768
1775
  return ret;
1769
1776
  };
1770
- imports.wbg.__wbindgen_closure_wrapper3785 = function(arg0, arg1, arg2) {
1771
- const ret = makeMutClosure(arg0, arg1, 1603, __wbg_adapter_46);
1777
+ imports.wbg.__wbindgen_closure_wrapper3700 = function(arg0, arg1, arg2) {
1778
+ const ret = makeMutClosure(arg0, arg1, 1591, __wbg_adapter_46);
1772
1779
  return ret;
1773
1780
  };
1774
- imports.wbg.__wbindgen_closure_wrapper3787 = function(arg0, arg1, arg2) {
1775
- const ret = makeMutClosure(arg0, arg1, 1603, __wbg_adapter_46);
1781
+ imports.wbg.__wbindgen_closure_wrapper3702 = function(arg0, arg1, arg2) {
1782
+ const ret = makeMutClosure(arg0, arg1, 1591, __wbg_adapter_46);
1776
1783
  return ret;
1777
1784
  };
1778
- imports.wbg.__wbindgen_closure_wrapper3789 = function(arg0, arg1, arg2) {
1779
- const ret = makeMutClosure(arg0, arg1, 1603, __wbg_adapter_46);
1785
+ imports.wbg.__wbindgen_closure_wrapper3704 = function(arg0, arg1, arg2) {
1786
+ const ret = makeMutClosure(arg0, arg1, 1591, __wbg_adapter_46);
1780
1787
  return ret;
1781
1788
  };
1782
- imports.wbg.__wbindgen_closure_wrapper3791 = function(arg0, arg1, arg2) {
1783
- const ret = makeMutClosure(arg0, arg1, 1603, __wbg_adapter_46);
1789
+ imports.wbg.__wbindgen_closure_wrapper3706 = function(arg0, arg1, arg2) {
1790
+ const ret = makeMutClosure(arg0, arg1, 1591, __wbg_adapter_46);
1784
1791
  return ret;
1785
1792
  };
1786
- imports.wbg.__wbindgen_closure_wrapper4389 = function(arg0, arg1, arg2) {
1787
- const ret = makeMutClosure(arg0, arg1, 1806, __wbg_adapter_55);
1793
+ imports.wbg.__wbindgen_closure_wrapper4549 = function(arg0, arg1, arg2) {
1794
+ const ret = makeMutClosure(arg0, arg1, 1944, __wbg_adapter_55);
1788
1795
  return ret;
1789
1796
  };
1790
1797
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -42,6 +42,7 @@ export const actorcontext_sql: (a: number) => number;
42
42
  export const actorcontext_state: (a: number) => [number, number];
43
43
  export const actorcontext_takePendingHibernationChanges: (a: number) => any;
44
44
  export const actorcontext_verifyInspectorAuth: (a: number, b: number, c: number) => any;
45
+ export const actorcontext_waitForTrackedShutdownWork: (a: number) => any;
45
46
  export const actorcontext_waitUntil: (a: number, b: any) => void;
46
47
  export const actorfactory_new: (a: any, b: any) => [number, number, number];
47
48
  export const awaitPromise: (a: any) => any;
@@ -110,7 +111,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
110
111
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
111
112
  export const __wbindgen_export_6: WebAssembly.Table;
112
113
  export const __externref_table_dealloc: (a: number) => 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;
114
+ export const closure1590_externref_shim: (a: number, b: number, c: any) => void;
115
+ export const closure1943_externref_shim: (a: number, b: number, c: any) => void;
116
+ export const closure2166_externref_shim: (a: number, b: number, c: any, d: any) => void;
116
117
  export const __wbindgen_start: () => void;