rivetkit 2.0.4 → 2.0.5
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/dist/tsup/actor/errors.cjs +2 -2
- package/dist/tsup/actor/errors.js +1 -1
- package/dist/tsup/{chunk-HLLF4B4Q.js → chunk-2MD57QF4.js} +7 -5
- package/dist/tsup/chunk-2MD57QF4.js.map +1 -0
- package/dist/tsup/{chunk-SBHHJ6QS.cjs → chunk-5QGQK44L.cjs} +2 -2
- package/dist/tsup/{chunk-SBHHJ6QS.cjs.map → chunk-5QGQK44L.cjs.map} +1 -1
- package/dist/tsup/{chunk-4CXBCT26.cjs → chunk-5YTI25C3.cjs} +7 -7
- package/dist/tsup/{chunk-4CXBCT26.cjs.map → chunk-5YTI25C3.cjs.map} +1 -1
- package/dist/tsup/{chunk-TQ62L3X7.js → chunk-B2QGJGZQ.js} +18 -5
- package/dist/tsup/chunk-B2QGJGZQ.js.map +1 -0
- package/dist/tsup/{chunk-PQY7KKTL.js → chunk-CFFKMUYH.js} +32 -7
- package/dist/tsup/{chunk-PQY7KKTL.js.map → chunk-CFFKMUYH.js.map} +1 -1
- package/dist/tsup/{chunk-H26RP6GD.js → chunk-CKA54YQN.js} +2 -2
- package/dist/tsup/chunk-D7NWUCRK.cjs +20 -0
- package/dist/tsup/{chunk-4R73YDN3.cjs.map → chunk-D7NWUCRK.cjs.map} +1 -1
- package/dist/tsup/{chunk-IH6CKNDW.cjs → chunk-FGFT4FVX.cjs} +9 -9
- package/dist/tsup/{chunk-IH6CKNDW.cjs.map → chunk-FGFT4FVX.cjs.map} +1 -1
- package/dist/tsup/{chunk-HI3HWJRC.js → chunk-I5VTWPHW.js} +4 -4
- package/dist/tsup/{chunk-HI3HWJRC.js.map → chunk-I5VTWPHW.js.map} +1 -1
- package/dist/tsup/{chunk-GICQ3YCU.cjs → chunk-IRMBWX36.cjs} +39 -37
- package/dist/tsup/chunk-IRMBWX36.cjs.map +1 -0
- package/dist/tsup/{chunk-XJQHKJ4P.js → chunk-L7QRXNWP.js} +331 -62
- package/dist/tsup/chunk-L7QRXNWP.js.map +1 -0
- package/dist/tsup/{chunk-LWNKVZG5.cjs → chunk-LZIBTLEY.cjs} +12 -12
- package/dist/tsup/{chunk-LWNKVZG5.cjs.map → chunk-LZIBTLEY.cjs.map} +1 -1
- package/dist/tsup/{chunk-VO7ZRVVD.cjs → chunk-MRZS2J4X.cjs} +581 -312
- package/dist/tsup/chunk-MRZS2J4X.cjs.map +1 -0
- package/dist/tsup/{chunk-QK72M5JB.js → chunk-PG3K2LI7.js} +2 -2
- package/dist/tsup/{chunk-QNNXFOQV.cjs → chunk-PHSQJ6QI.cjs} +3 -3
- package/dist/tsup/{chunk-QNNXFOQV.cjs.map → chunk-PHSQJ6QI.cjs.map} +1 -1
- package/dist/tsup/{chunk-WHBPJNGW.cjs → chunk-RM2SVURR.cjs} +29 -16
- package/dist/tsup/chunk-RM2SVURR.cjs.map +1 -0
- package/dist/tsup/{chunk-6LJT3QRL.cjs → chunk-WADSS5X4.cjs} +37 -12
- package/dist/tsup/chunk-WADSS5X4.cjs.map +1 -0
- package/dist/tsup/{chunk-LV2S3OU3.js → chunk-WNGOBAA7.js} +2 -2
- package/dist/tsup/{chunk-NFU2BBT5.js → chunk-YPZFLUO6.js} +2 -2
- package/dist/tsup/chunk-YPZFLUO6.js.map +1 -0
- package/dist/tsup/{chunk-3F2YSRJL.js → chunk-YW6Y6VNE.js} +4 -4
- package/dist/tsup/client/mod.cjs +10 -10
- package/dist/tsup/client/mod.d.cts +2 -2
- package/dist/tsup/client/mod.d.ts +2 -2
- package/dist/tsup/client/mod.js +9 -9
- package/dist/tsup/common/log.cjs +4 -4
- package/dist/tsup/common/log.js +3 -3
- package/dist/tsup/common/websocket.cjs +5 -5
- package/dist/tsup/common/websocket.js +4 -4
- package/dist/tsup/{connection-BI-6UIBJ.d.ts → connection-BvE-Oq7t.d.ts} +22 -11
- package/dist/tsup/{connection-Dyd4NLGW.d.cts → connection-DTzmWwU5.d.cts} +22 -11
- package/dist/tsup/driver-helpers/mod.cjs +6 -6
- package/dist/tsup/driver-helpers/mod.d.cts +2 -2
- package/dist/tsup/driver-helpers/mod.d.ts +2 -2
- package/dist/tsup/driver-helpers/mod.js +5 -5
- package/dist/tsup/driver-test-suite/mod.cjs +606 -140
- package/dist/tsup/driver-test-suite/mod.cjs.map +1 -1
- package/dist/tsup/driver-test-suite/mod.d.cts +2 -2
- package/dist/tsup/driver-test-suite/mod.d.ts +2 -2
- package/dist/tsup/driver-test-suite/mod.js +563 -97
- package/dist/tsup/driver-test-suite/mod.js.map +1 -1
- package/dist/tsup/inspector/mod.cjs +6 -6
- package/dist/tsup/inspector/mod.js +5 -5
- package/dist/tsup/mod.cjs +9 -9
- package/dist/tsup/mod.d.cts +3 -3
- package/dist/tsup/mod.d.ts +3 -3
- package/dist/tsup/mod.js +8 -8
- package/dist/tsup/{router-endpoints-BTe_Rsdn.d.cts → router-endpoints-CctffZNL.d.cts} +1 -1
- package/dist/tsup/{router-endpoints-CBSrKHmo.d.ts → router-endpoints-DFm1BglJ.d.ts} +1 -1
- package/dist/tsup/test/mod.cjs +10 -10
- package/dist/tsup/test/mod.d.cts +1 -1
- package/dist/tsup/test/mod.d.ts +1 -1
- package/dist/tsup/test/mod.js +9 -9
- package/dist/tsup/utils.cjs +5 -3
- package/dist/tsup/utils.cjs.map +1 -1
- package/dist/tsup/utils.d.cts +18 -1
- package/dist/tsup/utils.d.ts +18 -1
- package/dist/tsup/utils.js +4 -2
- package/package.json +4 -4
- package/src/actor/errors.ts +1 -1
- package/src/actor/router-endpoints.ts +6 -1
- package/src/actor/router.ts +2 -1
- package/src/client/mod.ts +1 -1
- package/src/client/raw-utils.ts +1 -1
- package/src/driver-test-suite/mod.ts +1 -1
- package/src/driver-test-suite/test-inline-client-driver.ts +588 -0
- package/src/driver-test-suite/tests/actor-error-handling.ts +4 -12
- package/src/driver-test-suite/tests/actor-inspector.ts +2 -1
- package/src/driver-test-suite/utils.ts +10 -9
- package/src/drivers/file-system/global-state.ts +3 -1
- package/src/drivers/file-system/manager.ts +16 -21
- package/src/manager/router.ts +373 -5
- package/src/registry/mod.ts +29 -33
- package/src/registry/run-config.ts +16 -1
- package/src/remote-manager-driver/actor-http-client.ts +3 -1
- package/src/remote-manager-driver/actor-websocket-client.ts +2 -1
- package/src/remote-manager-driver/api-utils.ts +4 -1
- package/src/remote-manager-driver/mod.ts +2 -1
- package/src/utils.ts +53 -0
- package/dist/tsup/chunk-4R73YDN3.cjs +0 -20
- package/dist/tsup/chunk-6LJT3QRL.cjs.map +0 -1
- package/dist/tsup/chunk-GICQ3YCU.cjs.map +0 -1
- package/dist/tsup/chunk-HLLF4B4Q.js.map +0 -1
- package/dist/tsup/chunk-NFU2BBT5.js.map +0 -1
- package/dist/tsup/chunk-TQ62L3X7.js.map +0 -1
- package/dist/tsup/chunk-VO7ZRVVD.cjs.map +0 -1
- package/dist/tsup/chunk-WHBPJNGW.cjs.map +0 -1
- package/dist/tsup/chunk-XJQHKJ4P.js.map +0 -1
- /package/dist/tsup/{chunk-H26RP6GD.js.map → chunk-CKA54YQN.js.map} +0 -0
- /package/dist/tsup/{chunk-QK72M5JB.js.map → chunk-PG3K2LI7.js.map} +0 -0
- /package/dist/tsup/{chunk-LV2S3OU3.js.map → chunk-WNGOBAA7.js.map} +0 -0
- /package/dist/tsup/{chunk-3F2YSRJL.js.map → chunk-YW6Y6VNE.js.map} +0 -0
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
require('../chunk-
|
|
25
|
-
require('../chunk-
|
|
26
|
-
require('../chunk-
|
|
27
|
-
require('../chunk-
|
|
23
|
+
var _chunkLZIBTLEYcjs = require('../chunk-LZIBTLEY.cjs');
|
|
24
|
+
require('../chunk-IRMBWX36.cjs');
|
|
25
|
+
require('../chunk-5YTI25C3.cjs');
|
|
26
|
+
require('../chunk-WADSS5X4.cjs');
|
|
27
|
+
require('../chunk-5QGQK44L.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
@@ -47,5 +47,5 @@ require('../chunk-SBHHJ6QS.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
exports.ActorFeature =
|
|
50
|
+
exports.ActorFeature = _chunkLZIBTLEYcjs.ActorFeature; exports.ActorId = _chunkLZIBTLEYcjs.ActorId; exports.ActorLogEntry = _chunkLZIBTLEYcjs.ActorLogEntry; exports.ActorSchema = _chunkLZIBTLEYcjs.ActorSchema; exports.BuildSchema = _chunkLZIBTLEYcjs.BuildSchema; exports.BuildsSchema = _chunkLZIBTLEYcjs.BuildsSchema; exports.ColumnSchema = _chunkLZIBTLEYcjs.ColumnSchema; exports.ColumnsSchema = _chunkLZIBTLEYcjs.ColumnsSchema; exports.ConnectionSchema = _chunkLZIBTLEYcjs.ConnectionSchema; exports.CreateActorSchema = _chunkLZIBTLEYcjs.CreateActorSchema; exports.DatabaseQuerySchema = _chunkLZIBTLEYcjs.DatabaseQuerySchema; exports.ForeignKeySchema = _chunkLZIBTLEYcjs.ForeignKeySchema; exports.ForeignKeysSchema = _chunkLZIBTLEYcjs.ForeignKeysSchema; exports.OperationSchema = _chunkLZIBTLEYcjs.OperationSchema; exports.PatchSchema = _chunkLZIBTLEYcjs.PatchSchema; exports.RealtimeEventSchema = _chunkLZIBTLEYcjs.RealtimeEventSchema; exports.RecordedRealtimeEventSchema = _chunkLZIBTLEYcjs.RecordedRealtimeEventSchema; exports.TableSchema = _chunkLZIBTLEYcjs.TableSchema; exports.TablesSchema = _chunkLZIBTLEYcjs.TablesSchema; exports.createActorInspectorClient = _chunkLZIBTLEYcjs.createActorInspectorClient; exports.createManagerInspectorClient = _chunkLZIBTLEYcjs.createManagerInspectorClient;
|
|
51
51
|
//# sourceMappingURL=mod.cjs.map
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
TablesSchema,
|
|
21
21
|
createActorInspectorClient,
|
|
22
22
|
createManagerInspectorClient
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-CKA54YQN.js";
|
|
24
|
+
import "../chunk-2MD57QF4.js";
|
|
25
|
+
import "../chunk-WNGOBAA7.js";
|
|
26
|
+
import "../chunk-CFFKMUYH.js";
|
|
27
|
+
import "../chunk-YPZFLUO6.js";
|
|
28
28
|
export {
|
|
29
29
|
ActorFeature,
|
|
30
30
|
ActorId,
|
package/dist/tsup/mod.cjs
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
17
|
+
var _chunkMRZS2J4Xcjs = require('./chunk-MRZS2J4X.cjs');
|
|
18
|
+
require('./chunk-LZIBTLEY.cjs');
|
|
19
|
+
require('./chunk-PHSQJ6QI.cjs');
|
|
20
|
+
require('./chunk-RM2SVURR.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -27,15 +27,15 @@ require('./chunk-WHBPJNGW.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
31
|
-
require('./chunk-
|
|
30
|
+
var _chunkIRMBWX36cjs = require('./chunk-IRMBWX36.cjs');
|
|
31
|
+
require('./chunk-5YTI25C3.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkWADSS5X4cjs = require('./chunk-WADSS5X4.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunk5QGQK44Lcjs = require('./chunk-5QGQK44L.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -63,5 +63,5 @@ var _chunkSBHHJ6QScjs = require('./chunk-SBHHJ6QS.cjs');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
exports.ALLOWED_PUBLIC_HEADERS =
|
|
66
|
+
exports.ALLOWED_PUBLIC_HEADERS = _chunkIRMBWX36cjs.ALLOWED_PUBLIC_HEADERS; exports.CONNECTION_DRIVER_HTTP = _chunkIRMBWX36cjs.CONNECTION_DRIVER_HTTP; exports.CONNECTION_DRIVER_SSE = _chunkIRMBWX36cjs.CONNECTION_DRIVER_SSE; exports.CONNECTION_DRIVER_WEBSOCKET = _chunkIRMBWX36cjs.CONNECTION_DRIVER_WEBSOCKET; exports.GenericConnGlobalState = _chunkMRZS2J4Xcjs.GenericConnGlobalState; exports.InlineWebSocketAdapter2 = _chunkMRZS2J4Xcjs.InlineWebSocketAdapter2; exports.PATH_CONNECT_WEBSOCKET = _chunkMRZS2J4Xcjs.PATH_CONNECT_WEBSOCKET; exports.PATH_RAW_WEBSOCKET_PREFIX = _chunkMRZS2J4Xcjs.PATH_RAW_WEBSOCKET_PREFIX; exports.Registry = _chunkMRZS2J4Xcjs.Registry; exports.RegistryConfigSchema = _chunkMRZS2J4Xcjs.RegistryConfigSchema; exports.UserError = _chunk5QGQK44Lcjs.UserError; exports.actor = _chunkMRZS2J4Xcjs.actor; exports.createActorRouter = _chunkMRZS2J4Xcjs.createActorRouter; exports.createClientWithDriver = _chunkMRZS2J4Xcjs.createClientWithDriver; exports.createEngineDriver = _chunkMRZS2J4Xcjs.createEngineDriver; exports.createFileSystemDriver = _chunkMRZS2J4Xcjs.createFileSystemDriver; exports.createGenericConnDrivers = _chunkMRZS2J4Xcjs.createGenericConnDrivers; exports.createMemoryDriver = _chunkMRZS2J4Xcjs.createMemoryDriver; exports.generateConnId = _chunkIRMBWX36cjs.generateConnId; exports.generateConnToken = _chunkIRMBWX36cjs.generateConnToken; exports.handleRawWebSocketHandler = _chunkIRMBWX36cjs.handleRawWebSocketHandler; exports.handleWebSocketConnect = _chunkIRMBWX36cjs.handleWebSocketConnect; exports.lookupInRegistry = _chunkMRZS2J4Xcjs.lookupInRegistry; exports.noopNext = _chunkWADSS5X4cjs.noopNext; exports.setup = _chunkMRZS2J4Xcjs.setup; exports.toUint8Array = _chunkWADSS5X4cjs.toUint8Array;
|
|
67
67
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/mod.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RunConfig, A as ActorDriver, a as AnyDatabaseProvider, b as Actions, c as ActorConfigInput, d as ActorDefinition, D as DriverConfig } from './connection-
|
|
2
|
-
export { n as ActionContext, v as ActionContextOf, K as ActorConfig, H as ActorConfigSchema, u as ActorContext, w as ActorContextOf, m as ActorKey, i as ActorQuery, F as ActorTypes, x as AnyActorDefinition, B as AnyActorInstance, f as AnyClient, J as AuthIntent, r as CONNECTION_DRIVER_HTTP, s as CONNECTION_DRIVER_SSE, t as CONNECTION_DRIVER_WEBSOCKET, C as Client, o as Conn, p as ConnectionDriver, q as ConnectionStatus, E as Encoding, G as GenericConnGlobalState, I as InitContext, O as OnConnectOptions, Q as Registry, N as RegistryActors, M as RegistryConfig, P as RegistryConfigSchema, j as RivetCloseEvent, k as RivetEvent, l as RivetMessageEvent, U as UniversalWebSocket, h as createClientWithDriver, z as createGenericConnDrivers, g as generateConnId, e as generateConnToken, y as lookupInRegistry, S as setup, L as test } from './connection-
|
|
3
|
-
export { A as ALLOWED_PUBLIC_HEADERS, I as InlineWebSocketAdapter2, U as UpgradeWebSocketArgs, h as handleRawWebSocketHandler, a as handleWebSocketConnect } from './router-endpoints-
|
|
1
|
+
import { R as RunConfig, A as ActorDriver, a as AnyDatabaseProvider, b as Actions, c as ActorConfigInput, d as ActorDefinition, D as DriverConfig } from './connection-DTzmWwU5.cjs';
|
|
2
|
+
export { n as ActionContext, v as ActionContextOf, K as ActorConfig, H as ActorConfigSchema, u as ActorContext, w as ActorContextOf, m as ActorKey, i as ActorQuery, F as ActorTypes, x as AnyActorDefinition, B as AnyActorInstance, f as AnyClient, J as AuthIntent, r as CONNECTION_DRIVER_HTTP, s as CONNECTION_DRIVER_SSE, t as CONNECTION_DRIVER_WEBSOCKET, C as Client, o as Conn, p as ConnectionDriver, q as ConnectionStatus, E as Encoding, G as GenericConnGlobalState, I as InitContext, O as OnConnectOptions, Q as Registry, N as RegistryActors, M as RegistryConfig, P as RegistryConfigSchema, j as RivetCloseEvent, k as RivetEvent, l as RivetMessageEvent, U as UniversalWebSocket, h as createClientWithDriver, z as createGenericConnDrivers, g as generateConnId, e as generateConnToken, y as lookupInRegistry, S as setup, L as test } from './connection-DTzmWwU5.cjs';
|
|
3
|
+
export { A as ALLOWED_PUBLIC_HEADERS, I as InlineWebSocketAdapter2, U as UpgradeWebSocketArgs, h as handleRawWebSocketHandler, a as handleWebSocketConnect } from './router-endpoints-CctffZNL.cjs';
|
|
4
4
|
export { n as noopNext } from './utils-fwx3o3K9.cjs';
|
|
5
5
|
import * as hono_types from 'hono/types';
|
|
6
6
|
import { Hono } from 'hono';
|
package/dist/tsup/mod.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RunConfig, A as ActorDriver, a as AnyDatabaseProvider, b as Actions, c as ActorConfigInput, d as ActorDefinition, D as DriverConfig } from './connection-
|
|
2
|
-
export { n as ActionContext, v as ActionContextOf, K as ActorConfig, H as ActorConfigSchema, u as ActorContext, w as ActorContextOf, m as ActorKey, i as ActorQuery, F as ActorTypes, x as AnyActorDefinition, B as AnyActorInstance, f as AnyClient, J as AuthIntent, r as CONNECTION_DRIVER_HTTP, s as CONNECTION_DRIVER_SSE, t as CONNECTION_DRIVER_WEBSOCKET, C as Client, o as Conn, p as ConnectionDriver, q as ConnectionStatus, E as Encoding, G as GenericConnGlobalState, I as InitContext, O as OnConnectOptions, Q as Registry, N as RegistryActors, M as RegistryConfig, P as RegistryConfigSchema, j as RivetCloseEvent, k as RivetEvent, l as RivetMessageEvent, U as UniversalWebSocket, h as createClientWithDriver, z as createGenericConnDrivers, g as generateConnId, e as generateConnToken, y as lookupInRegistry, S as setup, L as test } from './connection-
|
|
3
|
-
export { A as ALLOWED_PUBLIC_HEADERS, I as InlineWebSocketAdapter2, U as UpgradeWebSocketArgs, h as handleRawWebSocketHandler, a as handleWebSocketConnect } from './router-endpoints-
|
|
1
|
+
import { R as RunConfig, A as ActorDriver, a as AnyDatabaseProvider, b as Actions, c as ActorConfigInput, d as ActorDefinition, D as DriverConfig } from './connection-BvE-Oq7t.js';
|
|
2
|
+
export { n as ActionContext, v as ActionContextOf, K as ActorConfig, H as ActorConfigSchema, u as ActorContext, w as ActorContextOf, m as ActorKey, i as ActorQuery, F as ActorTypes, x as AnyActorDefinition, B as AnyActorInstance, f as AnyClient, J as AuthIntent, r as CONNECTION_DRIVER_HTTP, s as CONNECTION_DRIVER_SSE, t as CONNECTION_DRIVER_WEBSOCKET, C as Client, o as Conn, p as ConnectionDriver, q as ConnectionStatus, E as Encoding, G as GenericConnGlobalState, I as InitContext, O as OnConnectOptions, Q as Registry, N as RegistryActors, M as RegistryConfig, P as RegistryConfigSchema, j as RivetCloseEvent, k as RivetEvent, l as RivetMessageEvent, U as UniversalWebSocket, h as createClientWithDriver, z as createGenericConnDrivers, g as generateConnId, e as generateConnToken, y as lookupInRegistry, S as setup, L as test } from './connection-BvE-Oq7t.js';
|
|
3
|
+
export { A as ALLOWED_PUBLIC_HEADERS, I as InlineWebSocketAdapter2, U as UpgradeWebSocketArgs, h as handleRawWebSocketHandler, a as handleWebSocketConnect } from './router-endpoints-DFm1BglJ.js';
|
|
4
4
|
export { n as noopNext } from './utils-fwx3o3K9.js';
|
|
5
5
|
import * as hono_types from 'hono/types';
|
|
6
6
|
import { Hono } from 'hono';
|
package/dist/tsup/mod.js
CHANGED
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
createMemoryDriver,
|
|
15
15
|
lookupInRegistry,
|
|
16
16
|
setup
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-L7QRXNWP.js";
|
|
18
|
+
import "./chunk-CKA54YQN.js";
|
|
19
|
+
import "./chunk-PG3K2LI7.js";
|
|
20
|
+
import "./chunk-B2QGJGZQ.js";
|
|
21
21
|
import {
|
|
22
22
|
ALLOWED_PUBLIC_HEADERS,
|
|
23
23
|
CONNECTION_DRIVER_HTTP,
|
|
@@ -27,15 +27,15 @@ import {
|
|
|
27
27
|
generateConnToken,
|
|
28
28
|
handleRawWebSocketHandler,
|
|
29
29
|
handleWebSocketConnect
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-2MD57QF4.js";
|
|
31
|
+
import "./chunk-WNGOBAA7.js";
|
|
32
32
|
import {
|
|
33
33
|
noopNext,
|
|
34
34
|
toUint8Array
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CFFKMUYH.js";
|
|
36
36
|
import {
|
|
37
37
|
UserError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YPZFLUO6.js";
|
|
39
39
|
export {
|
|
40
40
|
ALLOWED_PUBLIC_HEADERS,
|
|
41
41
|
CONNECTION_DRIVER_HTTP,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UniversalWebSocket, k as RivetEvent, j as RivetCloseEvent, l as RivetMessageEvent, A as ActorDriver, R as RunConfig, E as Encoding } from './connection-
|
|
1
|
+
import { U as UniversalWebSocket, k as RivetEvent, j as RivetCloseEvent, l as RivetMessageEvent, A as ActorDriver, R as RunConfig, E as Encoding } from './connection-DTzmWwU5.cjs';
|
|
2
2
|
import { WSContext } from 'hono/ws';
|
|
3
3
|
|
|
4
4
|
interface UpgradeWebSocketArgs {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UniversalWebSocket, k as RivetEvent, j as RivetCloseEvent, l as RivetMessageEvent, A as ActorDriver, R as RunConfig, E as Encoding } from './connection-
|
|
1
|
+
import { U as UniversalWebSocket, k as RivetEvent, j as RivetCloseEvent, l as RivetMessageEvent, A as ActorDriver, R as RunConfig, E as Encoding } from './connection-BvE-Oq7t.js';
|
|
2
2
|
import { WSContext } from 'hono/ws';
|
|
3
3
|
|
|
4
4
|
interface UpgradeWebSocketArgs {
|
package/dist/tsup/test/mod.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
4
|
+
var _chunkFGFT4FVXcjs = require('../chunk-FGFT4FVX.cjs');
|
|
5
|
+
require('../chunk-MRZS2J4X.cjs');
|
|
6
|
+
require('../chunk-LZIBTLEY.cjs');
|
|
7
|
+
require('../chunk-PHSQJ6QI.cjs');
|
|
8
|
+
require('../chunk-RM2SVURR.cjs');
|
|
9
|
+
require('../chunk-IRMBWX36.cjs');
|
|
10
|
+
require('../chunk-5YTI25C3.cjs');
|
|
11
|
+
require('../chunk-WADSS5X4.cjs');
|
|
12
|
+
require('../chunk-5QGQK44L.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.getPort =
|
|
16
|
+
exports.getPort = _chunkFGFT4FVXcjs.getPort; exports.setupTest = _chunkFGFT4FVXcjs.setupTest;
|
|
17
17
|
//# sourceMappingURL=mod.cjs.map
|
package/dist/tsup/test/mod.d.cts
CHANGED
package/dist/tsup/test/mod.d.ts
CHANGED
package/dist/tsup/test/mod.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPort,
|
|
3
3
|
setupTest
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-YW6Y6VNE.js";
|
|
5
|
+
import "../chunk-L7QRXNWP.js";
|
|
6
|
+
import "../chunk-CKA54YQN.js";
|
|
7
|
+
import "../chunk-PG3K2LI7.js";
|
|
8
|
+
import "../chunk-B2QGJGZQ.js";
|
|
9
|
+
import "../chunk-2MD57QF4.js";
|
|
10
|
+
import "../chunk-WNGOBAA7.js";
|
|
11
|
+
import "../chunk-CFFKMUYH.js";
|
|
12
|
+
import "../chunk-YPZFLUO6.js";
|
|
13
13
|
export {
|
|
14
14
|
getPort,
|
|
15
15
|
setupTest
|
package/dist/tsup/utils.cjs
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var _chunk6LJT3QRLcjs = require('./chunk-6LJT3QRL.cjs');
|
|
13
|
-
require('./chunk-SBHHJ6QS.cjs');
|
|
14
12
|
|
|
13
|
+
var _chunkWADSS5X4cjs = require('./chunk-WADSS5X4.cjs');
|
|
14
|
+
require('./chunk-5QGQK44L.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -22,5 +22,7 @@ require('./chunk-SBHHJ6QS.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
exports.SinglePromiseQueue = _chunkWADSS5X4cjs.SinglePromiseQueue; exports.VERSION = _chunkWADSS5X4cjs.VERSION; exports.assertUnreachable = _chunkWADSS5X4cjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkWADSS5X4cjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkWADSS5X4cjs.combineUrlPath; exports.dbg = _chunkWADSS5X4cjs.dbg; exports.getEnvUniversal = _chunkWADSS5X4cjs.getEnvUniversal; exports.httpUserAgent = _chunkWADSS5X4cjs.httpUserAgent; exports.setLongTimeout = _chunkWADSS5X4cjs.setLongTimeout; exports.stringifyError = _chunkWADSS5X4cjs.stringifyError; exports.toUint8Array = _chunkWADSS5X4cjs.toUint8Array;
|
|
26
28
|
//# sourceMappingURL=utils.cjs.map
|
package/dist/tsup/utils.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/utils.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/utils.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wnBAAC","file":"/Users/nathan/rivetkit/packages/rivetkit/dist/tsup/utils.cjs"}
|
package/dist/tsup/utils.d.cts
CHANGED
|
@@ -32,5 +32,22 @@ declare class SinglePromiseQueue {
|
|
|
32
32
|
enqueue(op: () => Promise<void>): Promise<void>;
|
|
33
33
|
}
|
|
34
34
|
declare function bufferToArrayBuffer(buf: Buffer | Uint8Array): ArrayBuffer;
|
|
35
|
+
/**
|
|
36
|
+
* Properly combines a base URL endpoint with a path, preserving any base path in the endpoint.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* combineUrlPath("http://localhost:8787/rivet", "/actors/action")
|
|
40
|
+
* // Returns: "http://localhost:8787/rivet/actors/action"
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* combineUrlPath("http://localhost:8787/rivet", "/actors?type=foo", { namespace: "test" })
|
|
44
|
+
* // Returns: "http://localhost:8787/rivet/actors?type=foo&namespace=test"
|
|
45
|
+
*
|
|
46
|
+
* @param endpoint The base URL endpoint that may contain a path component
|
|
47
|
+
* @param path The path to append to the endpoint (may include query parameters)
|
|
48
|
+
* @param queryParams Optional additional query parameters to append
|
|
49
|
+
* @returns The properly combined URL string
|
|
50
|
+
*/
|
|
51
|
+
declare function combineUrlPath(endpoint: string, path: string, queryParams?: Record<string, string | undefined>): string;
|
|
35
52
|
|
|
36
|
-
export { type LongTimeoutHandle, SinglePromiseQueue, type UpgradeWebSocket, VERSION, bufferToArrayBuffer, dbg, getEnvUniversal, httpUserAgent, setLongTimeout, toUint8Array };
|
|
53
|
+
export { type LongTimeoutHandle, SinglePromiseQueue, type UpgradeWebSocket, VERSION, bufferToArrayBuffer, combineUrlPath, dbg, getEnvUniversal, httpUserAgent, setLongTimeout, toUint8Array };
|
package/dist/tsup/utils.d.ts
CHANGED
|
@@ -32,5 +32,22 @@ declare class SinglePromiseQueue {
|
|
|
32
32
|
enqueue(op: () => Promise<void>): Promise<void>;
|
|
33
33
|
}
|
|
34
34
|
declare function bufferToArrayBuffer(buf: Buffer | Uint8Array): ArrayBuffer;
|
|
35
|
+
/**
|
|
36
|
+
* Properly combines a base URL endpoint with a path, preserving any base path in the endpoint.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* combineUrlPath("http://localhost:8787/rivet", "/actors/action")
|
|
40
|
+
* // Returns: "http://localhost:8787/rivet/actors/action"
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* combineUrlPath("http://localhost:8787/rivet", "/actors?type=foo", { namespace: "test" })
|
|
44
|
+
* // Returns: "http://localhost:8787/rivet/actors?type=foo&namespace=test"
|
|
45
|
+
*
|
|
46
|
+
* @param endpoint The base URL endpoint that may contain a path component
|
|
47
|
+
* @param path The path to append to the endpoint (may include query parameters)
|
|
48
|
+
* @param queryParams Optional additional query parameters to append
|
|
49
|
+
* @returns The properly combined URL string
|
|
50
|
+
*/
|
|
51
|
+
declare function combineUrlPath(endpoint: string, path: string, queryParams?: Record<string, string | undefined>): string;
|
|
35
52
|
|
|
36
|
-
export { type LongTimeoutHandle, SinglePromiseQueue, type UpgradeWebSocket, VERSION, bufferToArrayBuffer, dbg, getEnvUniversal, httpUserAgent, setLongTimeout, toUint8Array };
|
|
53
|
+
export { type LongTimeoutHandle, SinglePromiseQueue, type UpgradeWebSocket, VERSION, bufferToArrayBuffer, combineUrlPath, dbg, getEnvUniversal, httpUserAgent, setLongTimeout, toUint8Array };
|
package/dist/tsup/utils.js
CHANGED
|
@@ -3,19 +3,21 @@ import {
|
|
|
3
3
|
VERSION,
|
|
4
4
|
assertUnreachable,
|
|
5
5
|
bufferToArrayBuffer,
|
|
6
|
+
combineUrlPath,
|
|
6
7
|
dbg,
|
|
7
8
|
getEnvUniversal,
|
|
8
9
|
httpUserAgent,
|
|
9
10
|
setLongTimeout,
|
|
10
11
|
stringifyError,
|
|
11
12
|
toUint8Array
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-CFFKMUYH.js";
|
|
14
|
+
import "./chunk-YPZFLUO6.js";
|
|
14
15
|
export {
|
|
15
16
|
SinglePromiseQueue,
|
|
16
17
|
VERSION,
|
|
17
18
|
assertUnreachable,
|
|
18
19
|
bufferToArrayBuffer,
|
|
20
|
+
combineUrlPath,
|
|
19
21
|
dbg,
|
|
20
22
|
getEnvUniversal,
|
|
21
23
|
httpUserAgent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rivetkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Lightweight libraries for building stateful actors on edge platforms",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"@bare-ts/lib": "~0.3.0",
|
|
153
153
|
"@hono/standard-validator": "^0.1.3",
|
|
154
154
|
"@hono/zod-openapi": "^0.19.10",
|
|
155
|
-
"@rivetkit/engine-runner": "https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner@
|
|
155
|
+
"@rivetkit/engine-runner": "https://pkg.pr.new/rivet-dev/engine/@rivetkit/engine-runner@b72b232",
|
|
156
156
|
"@rivetkit/fast-json-patch": "^3.1.2",
|
|
157
157
|
"cbor-x": "^1.6.0",
|
|
158
158
|
"hono": "^4.7.0",
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"@types/ws": "^8",
|
|
173
173
|
"@vitest/ui": "3.1.1",
|
|
174
174
|
"bundle-require": "^5.1.0",
|
|
175
|
-
"eventsource": "^
|
|
175
|
+
"eventsource": "^4.0.0",
|
|
176
176
|
"tsup": "^8.4.0",
|
|
177
177
|
"tsx": "^4.19.4",
|
|
178
178
|
"typescript": "^5.7.3",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"peerDependencies": {
|
|
183
183
|
"@hono/node-server": "^1.14.0",
|
|
184
184
|
"@hono/node-ws": "^1.1.1",
|
|
185
|
-
"eventsource": "^
|
|
185
|
+
"eventsource": "^4.0.0",
|
|
186
186
|
"ws": "^8.0.0"
|
|
187
187
|
},
|
|
188
188
|
"peerDependenciesMeta": {
|
package/src/actor/errors.ts
CHANGED
|
@@ -165,7 +165,7 @@ export class MessageTooLong extends ActorError {
|
|
|
165
165
|
super(
|
|
166
166
|
"message",
|
|
167
167
|
"too_long",
|
|
168
|
-
"Message too long. This can be configured with: `registry.
|
|
168
|
+
"Message too long. This can be configured with: `registry.start({ maxIncomingMessageSize: ... })`",
|
|
169
169
|
{ public: true },
|
|
170
170
|
);
|
|
171
171
|
}
|
|
@@ -373,8 +373,13 @@ export async function handleSseConnect(
|
|
|
373
373
|
// Wait for close
|
|
374
374
|
const abortResolver = Promise.withResolvers();
|
|
375
375
|
|
|
376
|
+
// HACK: This is required so the abort handler below works
|
|
377
|
+
//
|
|
378
|
+
// See https://github.com/honojs/hono/issues/1770#issuecomment-2461966225
|
|
379
|
+
stream.onAbort(() => {});
|
|
380
|
+
|
|
376
381
|
// Handle stream abort (when client closes the connection)
|
|
377
|
-
|
|
382
|
+
c.req.raw.signal.addEventListener("abort", async () => {
|
|
378
383
|
const rLog = actor?.rLog ?? loggerWithoutContext();
|
|
379
384
|
try {
|
|
380
385
|
rLog.debug("sse stream aborted");
|
package/src/actor/router.ts
CHANGED
package/src/client/mod.ts
CHANGED
|
@@ -50,7 +50,7 @@ export function createClient<A extends Registry<any>>(
|
|
|
50
50
|
endpointOrConfig === undefined
|
|
51
51
|
? {}
|
|
52
52
|
: typeof endpointOrConfig === "string"
|
|
53
|
-
? {
|
|
53
|
+
? { endpoint: endpointOrConfig }
|
|
54
54
|
: endpointOrConfig;
|
|
55
55
|
const config = ClientConfigSchema.parse(configInput);
|
|
56
56
|
|
package/src/client/raw-utils.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface SkipTests {
|
|
|
36
36
|
|
|
37
37
|
export interface DriverTestConfig {
|
|
38
38
|
/** Deploys an registry and returns the connection endpoint. */
|
|
39
|
-
start(
|
|
39
|
+
start(): Promise<DriverDeployOutput>;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* If we're testing with an external system, we should use real timers
|