@rivetkit/rivetkit-napi 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/index.d.ts +9 -4
- package/package.json +9 -9
package/index.d.ts
CHANGED
|
@@ -174,9 +174,10 @@ export interface JsServerlessResponseHead {
|
|
|
174
174
|
status: number
|
|
175
175
|
headers: Record<string, string>
|
|
176
176
|
}
|
|
177
|
-
export interface
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
export interface JsRegistryRouteResponse {
|
|
178
|
+
status: number
|
|
179
|
+
headers: Record<string, string>
|
|
180
|
+
body: Buffer
|
|
180
181
|
}
|
|
181
182
|
export interface JsServerlessStreamError {
|
|
182
183
|
group: string
|
|
@@ -240,6 +241,7 @@ export declare class ActorContext {
|
|
|
240
241
|
disconnectConns(predicate: (...args: any[]) => any): Promise<void>
|
|
241
242
|
broadcast(name: string, args: Buffer): void
|
|
242
243
|
waitUntil(promise: Promise<any>): void
|
|
244
|
+
waitForTrackedShutdownWork(): Promise<boolean>
|
|
243
245
|
registerTask(promise: Promise<any>): void
|
|
244
246
|
runtimeState(): object
|
|
245
247
|
clearRuntimeState(): void
|
|
@@ -314,7 +316,10 @@ export declare class CoreRegistry {
|
|
|
314
316
|
* separately to avoid re-entrancy.
|
|
315
317
|
*/
|
|
316
318
|
shutdown(): Promise<void>
|
|
317
|
-
|
|
319
|
+
actorStopThresholdMs(): Promise<number | null>
|
|
320
|
+
health(): Promise<JsRegistryRouteResponse>
|
|
321
|
+
metadata(): JsRegistryRouteResponse
|
|
322
|
+
metrics(): JsRegistryRouteResponse
|
|
318
323
|
handleServerlessRequest(req: JsServerlessRequest, onStreamEvent: (...args: any[]) => any, cancelToken: CancellationToken, config: JsServeConfig): Promise<JsServerlessResponseHead>
|
|
319
324
|
}
|
|
320
325
|
export declare class Schedule {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/rivetkit-napi",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.3.0-rc.10",
|
|
4
4
|
"description": "Native N-API addon for RivetKit providing envoy client and SQLite access",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@napi-rs/cli": "^2.18.4",
|
|
46
|
-
"@rivetkit/engine-envoy-protocol": "
|
|
46
|
+
"@rivetkit/engine-envoy-protocol": "2.3.0-rc.10"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@rivetkit/rivetkit-napi-darwin-arm64": "
|
|
50
|
-
"@rivetkit/rivetkit-napi-darwin-x64": "
|
|
51
|
-
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "
|
|
52
|
-
"@rivetkit/rivetkit-napi-linux-arm64-musl": "
|
|
53
|
-
"@rivetkit/rivetkit-napi-linux-x64-gnu": "
|
|
54
|
-
"@rivetkit/rivetkit-napi-linux-x64-musl": "
|
|
55
|
-
"@rivetkit/rivetkit-napi-win32-x64-msvc": "
|
|
49
|
+
"@rivetkit/rivetkit-napi-darwin-arm64": "2.3.0-rc.10",
|
|
50
|
+
"@rivetkit/rivetkit-napi-darwin-x64": "2.3.0-rc.10",
|
|
51
|
+
"@rivetkit/rivetkit-napi-linux-arm64-gnu": "2.3.0-rc.10",
|
|
52
|
+
"@rivetkit/rivetkit-napi-linux-arm64-musl": "2.3.0-rc.10",
|
|
53
|
+
"@rivetkit/rivetkit-napi-linux-x64-gnu": "2.3.0-rc.10",
|
|
54
|
+
"@rivetkit/rivetkit-napi-linux-x64-musl": "2.3.0-rc.10",
|
|
55
|
+
"@rivetkit/rivetkit-napi-win32-x64-msvc": "2.3.0-rc.10"
|
|
56
56
|
}
|
|
57
57
|
}
|