@rivetkit/rivetkit-wasm 2.3.23 → 2.3.24-rc.1
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
package/pkg/rivetkit_wasm.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export class ActorContext {
|
|
|
16
16
|
saveStateAndWorkflowBatch(writes: any): Promise<void>;
|
|
17
17
|
waitForTrackedShutdownWork(): Promise<boolean>;
|
|
18
18
|
waitForTrackedShutdownWorkUnbounded(): Promise<void>;
|
|
19
|
+
generation(): number | undefined;
|
|
19
20
|
keepAwake(promise: Promise<any>): void;
|
|
20
21
|
waitUntil(promise: Promise<any>): void;
|
|
21
22
|
abortSignal(): any;
|
|
@@ -43,6 +44,7 @@ export class ActorContext {
|
|
|
43
44
|
state(): Uint8Array;
|
|
44
45
|
region(): string;
|
|
45
46
|
destroy(): void;
|
|
47
|
+
isLost(): boolean;
|
|
46
48
|
actorId(): string;
|
|
47
49
|
schedule(): Schedule;
|
|
48
50
|
broadcast(name: string, args: Uint8Array): void;
|
|
@@ -193,7 +195,9 @@ export interface InitOutput {
|
|
|
193
195
|
readonly actorcontext_endKeepAwake: (a: number, b: number) => void;
|
|
194
196
|
readonly actorcontext_endOnStateChange: (a: number) => void;
|
|
195
197
|
readonly actorcontext_endWebsocketCallback: (a: number, b: number) => void;
|
|
198
|
+
readonly actorcontext_generation: (a: number) => number;
|
|
196
199
|
readonly actorcontext_inspectorSnapshot: (a: number) => [number, number, number];
|
|
200
|
+
readonly actorcontext_isLost: (a: number) => number;
|
|
197
201
|
readonly actorcontext_keepAwake: (a: number, b: any) => void;
|
|
198
202
|
readonly actorcontext_key: (a: number) => [number, number, number];
|
|
199
203
|
readonly actorcontext_kv: (a: number) => number;
|
|
@@ -304,9 +308,9 @@ export interface InitOutput {
|
|
|
304
308
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
305
309
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
306
310
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
307
|
-
readonly
|
|
308
|
-
readonly
|
|
309
|
-
readonly
|
|
311
|
+
readonly closure2019_externref_shim: (a: number, b: number, c: any) => void;
|
|
312
|
+
readonly closure2362_externref_shim: (a: number, b: number, c: any) => void;
|
|
313
|
+
readonly closure2621_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
310
314
|
readonly __wbindgen_start: () => void;
|
|
311
315
|
}
|
|
312
316
|
|
package/pkg/rivetkit_wasm.js
CHANGED
|
@@ -274,15 +274,15 @@ function takeFromExternrefTable0(idx) {
|
|
|
274
274
|
return value;
|
|
275
275
|
}
|
|
276
276
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
277
|
-
wasm.
|
|
277
|
+
wasm.closure2019_externref_shim(arg0, arg1, arg2);
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
281
|
-
wasm.
|
|
281
|
+
wasm.closure2362_externref_shim(arg0, arg1, arg2);
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
function
|
|
285
|
-
wasm.
|
|
284
|
+
function __wbg_adapter_299(arg0, arg1, arg2, arg3) {
|
|
285
|
+
wasm.closure2621_externref_shim(arg0, arg1, arg2, arg3);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -387,6 +387,13 @@ export class ActorContext {
|
|
|
387
387
|
const ret = wasm.actorcontext_waitForTrackedShutdownWorkUnbounded(this.__wbg_ptr);
|
|
388
388
|
return ret;
|
|
389
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* @returns {number | undefined}
|
|
392
|
+
*/
|
|
393
|
+
generation() {
|
|
394
|
+
const ret = wasm.actorcontext_generation(this.__wbg_ptr);
|
|
395
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
396
|
+
}
|
|
390
397
|
/**
|
|
391
398
|
* @param {Promise<any>} promise
|
|
392
399
|
*/
|
|
@@ -588,6 +595,13 @@ export class ActorContext {
|
|
|
588
595
|
throw takeFromExternrefTable0(ret[0]);
|
|
589
596
|
}
|
|
590
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* @returns {boolean}
|
|
600
|
+
*/
|
|
601
|
+
isLost() {
|
|
602
|
+
const ret = wasm.actorcontext_isLost(this.__wbg_ptr);
|
|
603
|
+
return ret !== 0;
|
|
604
|
+
}
|
|
591
605
|
/**
|
|
592
606
|
* @returns {string}
|
|
593
607
|
*/
|
|
@@ -1880,7 +1894,7 @@ function __wbg_get_imports() {
|
|
|
1880
1894
|
const a = state0.a;
|
|
1881
1895
|
state0.a = 0;
|
|
1882
1896
|
try {
|
|
1883
|
-
return
|
|
1897
|
+
return __wbg_adapter_299(a, state0.b, arg0, arg1);
|
|
1884
1898
|
} finally {
|
|
1885
1899
|
state0.a = a;
|
|
1886
1900
|
}
|
|
@@ -2112,24 +2126,24 @@ function __wbg_get_imports() {
|
|
|
2112
2126
|
const ret = false;
|
|
2113
2127
|
return ret;
|
|
2114
2128
|
};
|
|
2115
|
-
imports.wbg.
|
|
2116
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2129
|
+
imports.wbg.__wbindgen_closure_wrapper5192 = function(arg0, arg1, arg2) {
|
|
2130
|
+
const ret = makeMutClosure(arg0, arg1, 2020, __wbg_adapter_50);
|
|
2117
2131
|
return ret;
|
|
2118
2132
|
};
|
|
2119
|
-
imports.wbg.
|
|
2120
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2133
|
+
imports.wbg.__wbindgen_closure_wrapper5194 = function(arg0, arg1, arg2) {
|
|
2134
|
+
const ret = makeMutClosure(arg0, arg1, 2020, __wbg_adapter_50);
|
|
2121
2135
|
return ret;
|
|
2122
2136
|
};
|
|
2123
|
-
imports.wbg.
|
|
2124
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2137
|
+
imports.wbg.__wbindgen_closure_wrapper5196 = function(arg0, arg1, arg2) {
|
|
2138
|
+
const ret = makeMutClosure(arg0, arg1, 2020, __wbg_adapter_50);
|
|
2125
2139
|
return ret;
|
|
2126
2140
|
};
|
|
2127
|
-
imports.wbg.
|
|
2128
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2141
|
+
imports.wbg.__wbindgen_closure_wrapper5198 = function(arg0, arg1, arg2) {
|
|
2142
|
+
const ret = makeMutClosure(arg0, arg1, 2020, __wbg_adapter_50);
|
|
2129
2143
|
return ret;
|
|
2130
2144
|
};
|
|
2131
|
-
imports.wbg.
|
|
2132
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2145
|
+
imports.wbg.__wbindgen_closure_wrapper5766 = function(arg0, arg1, arg2) {
|
|
2146
|
+
const ret = makeMutClosure(arg0, arg1, 2363, __wbg_adapter_59);
|
|
2133
2147
|
return ret;
|
|
2134
2148
|
};
|
|
2135
2149
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -26,7 +26,9 @@ export const actorcontext_dirtyHibernatableConns: (a: number) => any;
|
|
|
26
26
|
export const actorcontext_endKeepAwake: (a: number, b: number) => void;
|
|
27
27
|
export const actorcontext_endOnStateChange: (a: number) => void;
|
|
28
28
|
export const actorcontext_endWebsocketCallback: (a: number, b: number) => void;
|
|
29
|
+
export const actorcontext_generation: (a: number) => number;
|
|
29
30
|
export const actorcontext_inspectorSnapshot: (a: number) => [number, number, number];
|
|
31
|
+
export const actorcontext_isLost: (a: number) => number;
|
|
30
32
|
export const actorcontext_keepAwake: (a: number, b: any) => void;
|
|
31
33
|
export const actorcontext_key: (a: number) => [number, number, number];
|
|
32
34
|
export const actorcontext_kv: (a: number) => number;
|
|
@@ -137,7 +139,7 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
137
139
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
138
140
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
139
141
|
export const __externref_table_dealloc: (a: number) => void;
|
|
140
|
-
export const
|
|
141
|
-
export const
|
|
142
|
-
export const
|
|
142
|
+
export const closure2019_externref_shim: (a: number, b: number, c: any) => void;
|
|
143
|
+
export const closure2362_externref_shim: (a: number, b: number, c: any) => void;
|
|
144
|
+
export const closure2621_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
143
145
|
export const __wbindgen_start: () => void;
|