@replit/river 0.26.8 → 0.26.9
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/{chunk-QXQG6ZFZ.js → chunk-6LX3MQEH.js} +2 -2
- package/dist/{chunk-NHXIQELK.js → chunk-JVPSOBWJ.js} +2 -2
- package/dist/{chunk-QEVXZ3I7.js → chunk-LODVVI6A.js} +2 -2
- package/dist/{chunk-CATCCJAL.js → chunk-OPWZHQ7Z.js} +5 -3
- package/dist/chunk-OPWZHQ7Z.js.map +1 -0
- package/dist/{chunk-SIRVFV3D.js → chunk-SKWHS7YK.js} +4 -4
- package/dist/{chunk-ZFSQNWYX.js → chunk-VPXUTLMK.js} +2 -2
- package/dist/{chunk-ZFSQNWYX.js.map → chunk-VPXUTLMK.js.map} +1 -1
- package/dist/{chunk-XMXSGTU2.js → chunk-YHILUN2S.js} +4 -4
- package/dist/router/index.cjs +1 -1
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +3 -3
- package/dist/router/index.d.ts +3 -3
- package/dist/router/index.js +2 -2
- package/dist/{services-4478e99b.d.ts → services-be18d10a.d.ts} +1 -1
- package/dist/transport/impls/ws/client.cjs +3 -1
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.js +5 -5
- package/dist/transport/impls/ws/server.cjs +3 -1
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.js +5 -5
- package/dist/transport/index.cjs +3 -1
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.js +5 -5
- package/dist/util/testHelpers.cjs +9 -5
- package/dist/util/testHelpers.cjs.map +1 -1
- package/dist/util/testHelpers.d.cts +7 -7
- package/dist/util/testHelpers.d.ts +7 -7
- package/dist/util/testHelpers.js +11 -7
- package/dist/util/testHelpers.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-CATCCJAL.js.map +0 -1
- /package/dist/{chunk-QXQG6ZFZ.js.map → chunk-6LX3MQEH.js.map} +0 -0
- /package/dist/{chunk-NHXIQELK.js.map → chunk-JVPSOBWJ.js.map} +0 -0
- /package/dist/{chunk-QEVXZ3I7.js.map → chunk-LODVVI6A.js.map} +0 -0
- /package/dist/{chunk-SIRVFV3D.js.map → chunk-SKWHS7YK.js.map} +0 -0
- /package/dist/{chunk-XMXSGTU2.js.map → chunk-YHILUN2S.js.map} +0 -0
package/dist/router/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType,
|
|
2
|
-
export { C as Client, E as Err, O as Ok, z as Output,
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, c as Result, R as RiverError } from '../services-be18d10a.js';
|
|
2
|
+
export { C as Client, E as Err, O as Ok, z as Output, i as ProcErrors, e as ProcHandler, f as ProcInit, g as ProcInput, h as ProcOutput, j as ProcType, a as Procedure, o as ProcedureMap, b as ProcedureResult, p as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, v as RiverUncaughtSchema, n as SerializedProcedureSchema, l as SerializedServerSchema, m as SerializedServiceSchema, S as Service, d as ServiceConfiguration, k as ServiceSchema, r as StreamProcedure, q as SubscriptionProcedure, u as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, t as createClient, s as serializeSchema } from '../services-be18d10a.js';
|
|
3
3
|
import { Static } from '@sinclair/typebox';
|
|
4
4
|
import { Pushable } from 'it-pushable';
|
|
5
5
|
import { C as Connection, s as ServerHandshakeOptions, o as ServiceContext } from '../handshake-02a61755.js';
|
|
@@ -46,6 +46,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
46
46
|
extendedContext?: Omit<ServiceContext, 'state'>;
|
|
47
47
|
}>): Server<Services>;
|
|
48
48
|
|
|
49
|
-
var version = "0.26.
|
|
49
|
+
var version = "0.26.9";
|
|
50
50
|
|
|
51
51
|
export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType,
|
|
2
|
-
export { C as Client, E as Err, O as Ok, z as Output,
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, c as Result, R as RiverError } from '../services-be18d10a.js';
|
|
2
|
+
export { C as Client, E as Err, O as Ok, z as Output, i as ProcErrors, e as ProcHandler, f as ProcInit, g as ProcInput, h as ProcOutput, j as ProcType, a as Procedure, o as ProcedureMap, b as ProcedureResult, p as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, v as RiverUncaughtSchema, n as SerializedProcedureSchema, l as SerializedServerSchema, m as SerializedServiceSchema, S as Service, d as ServiceConfiguration, k as ServiceSchema, r as StreamProcedure, q as SubscriptionProcedure, u as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, t as createClient, s as serializeSchema } from '../services-be18d10a.js';
|
|
3
3
|
import { Static } from '@sinclair/typebox';
|
|
4
4
|
import { Pushable } from 'it-pushable';
|
|
5
5
|
import { C as Connection, s as ServerHandshakeOptions, o as ServiceContext } from '../handshake-02a61755.js';
|
|
@@ -46,6 +46,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
46
46
|
extendedContext?: Omit<ServiceContext, 'state'>;
|
|
47
47
|
}>): Server<Services>;
|
|
48
48
|
|
|
49
|
-
var version = "0.26.
|
|
49
|
+
var version = "0.26.9";
|
|
50
50
|
|
|
51
51
|
export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
|
package/dist/router/index.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
createServer,
|
|
11
11
|
createServerHandshakeOptions,
|
|
12
12
|
serializeSchema
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-6LX3MQEH.js";
|
|
14
14
|
import {
|
|
15
15
|
version
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-VPXUTLMK.js";
|
|
17
17
|
export {
|
|
18
18
|
Err,
|
|
19
19
|
Ok,
|
|
@@ -706,4 +706,4 @@ declare class ServiceScaffold<State extends object> {
|
|
|
706
706
|
}>;
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
export { AnyServiceSchemaMap as A, Client as C, Err as E, InstantiatedServiceSchemaMap as I, Ok as O, PayloadType as P, RiverError as R, Service as S, UploadProcedure as U, ValidProcType as V, Procedure as a,
|
|
709
|
+
export { AnyServiceSchemaMap as A, Client as C, Err as E, InstantiatedServiceSchemaMap as I, Ok as O, PayloadType as P, RiverError as R, Service as S, UploadProcedure as U, ValidProcType as V, Procedure as a, ProcedureResult as b, Result as c, ServiceConfiguration as d, ProcHandler as e, ProcInit as f, ProcInput as g, ProcOutput as h, ProcErrors as i, ProcType as j, ServiceSchema as k, SerializedServerSchema as l, SerializedServiceSchema as m, SerializedProcedureSchema as n, ProcedureMap as o, RpcProcedure as p, SubscriptionProcedure as q, StreamProcedure as r, serializeSchema as s, createClient as t, UNCAUGHT_ERROR as u, RiverUncaughtSchema as v, RiverErrorSchema as w, ResultUnwrapOk as x, ResultUnwrapErr as y, Output as z };
|
|
@@ -632,7 +632,7 @@ var SessionNoConnection = class extends IdentifiedSessionWithGracePeriod {
|
|
|
632
632
|
var import_api = require("@opentelemetry/api");
|
|
633
633
|
|
|
634
634
|
// package.json
|
|
635
|
-
var version = "0.26.
|
|
635
|
+
var version = "0.26.9";
|
|
636
636
|
|
|
637
637
|
// tracing/index.ts
|
|
638
638
|
function getPropagationContext(ctx) {
|
|
@@ -1333,6 +1333,8 @@ var Transport = class {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
// state transitions
|
|
1335
1335
|
deleteSession(session, options) {
|
|
1336
|
+
if (session._isConsumed)
|
|
1337
|
+
return;
|
|
1336
1338
|
const loggingMetadata = session.loggingMetadata;
|
|
1337
1339
|
if (loggingMetadata.tags && options?.unhealthy) {
|
|
1338
1340
|
loggingMetadata.tags.push("unhealthy-session");
|