@replit/river 0.208.1 → 0.208.3
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/{adapter-f2b6e211.d.ts → adapter-ChksXKVN.d.ts} +2 -2
- package/dist/adapter-Cuc4JtfV.d.cts +46 -0
- package/dist/{chunk-2WFRHXDZ.js → chunk-3WYK5ZRT.js} +11 -16
- package/dist/{chunk-2WFRHXDZ.js.map → chunk-3WYK5ZRT.js.map} +1 -1
- package/dist/{chunk-EVAQ2QMB.js → chunk-JC4XN6NC.js} +36 -37
- package/dist/chunk-JC4XN6NC.js.map +1 -0
- package/dist/{chunk-BXKBENJE.js → chunk-M2B4PVR5.js} +2 -2
- package/dist/codec/index.d.cts +3 -3
- package/dist/codec/index.d.ts +3 -3
- package/dist/codec/index.js +2 -2
- package/dist/connection-BF4zg6Qv.d.cts +35 -0
- package/dist/{connection-098d4aad.d.ts → connection-Donr3JRB.d.ts} +4 -4
- package/dist/index-C9tpZjBN.d.cts +37 -0
- package/dist/{index-02554794.d.ts → index-D8IOd3LG.d.ts} +2 -2
- package/dist/logging/index.d.cts +2 -2
- package/dist/logging/index.d.ts +2 -2
- package/dist/{message-01c3e85a.d.ts → message-Di94OL80.d.cts} +1 -1
- package/dist/message-Di94OL80.d.ts +108 -0
- package/dist/router/index.cjs +20 -21
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +7 -7
- package/dist/router/index.d.ts +7 -7
- package/dist/router/index.js +1 -1
- package/dist/testUtil/index.cjs +7 -13
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +5 -5
- package/dist/testUtil/index.d.ts +5 -5
- package/dist/testUtil/index.js +4 -5
- package/dist/testUtil/index.js.map +1 -1
- package/dist/transport/impls/ws/client.cjs +5 -9
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +6 -6
- package/dist/transport/impls/ws/client.d.ts +6 -6
- package/dist/transport/impls/ws/client.js +3 -3
- package/dist/transport/impls/ws/server.cjs +6 -11
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +6 -6
- package/dist/transport/impls/ws/server.d.ts +6 -6
- package/dist/transport/impls/ws/server.js +3 -3
- package/dist/transport/index.cjs +6 -11
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +6 -6
- package/dist/transport/index.d.ts +6 -6
- package/dist/transport/index.js +3 -3
- package/dist/transport-CCaWx1Rb.d.cts +1566 -0
- package/dist/{services-44be1b6b.d.ts → transport-CZb3vdB4.d.ts} +323 -323
- package/dist/{wslike-e0b32dd5.d.ts → wslike-Dng9H1C7.d.cts} +1 -1
- package/dist/wslike-Dng9H1C7.d.ts +40 -0
- package/package.json +4 -2
- package/dist/chunk-EVAQ2QMB.js.map +0 -1
- /package/dist/{chunk-BXKBENJE.js.map → chunk-M2B4PVR5.js.map} +0 -0
package/dist/router/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap,
|
|
2
|
-
export { N as BaseErrorSchemaType, L as CANCEL_CODE, Q as Client, X as Err, Z as ErrResult, K as INVALID_REQUEST_CODE, T as Ok, _ as OkResult, n as ProcErrors, j as ProcHandler, k as ProcInit, l as ProcRequest, m as ProcResponse, o as ProcType, E as Procedure, F as ProcedureErrorSchemaType, y as ProcedureMap, R as RPCProcedure, D as Readable, M as ReaderErrorSchema, a1 as ResponseData, Y as Result, a0 as ResultUnwrapErr, $ as ResultUnwrapOk, t as SerializedProcedureSchema, x as SerializedProcedureSchemaProtocolv1, q as SerializedServerSchema, v as SerializedServerSchemaProtocolv1, r as SerializedServiceSchema, w as SerializedServiceSchemaProtocolv1, h as Service, i as ServiceConfiguration, p as ServiceSchema, B as StreamProcedure, z as SubscriptionProcedure, H as UNCAUGHT_ERROR_CODE, J as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, O as createClient, a2 as createClientHandshakeOptions, a3 as createServerHandshakeOptions, G as flattenErrorType, s as serializeSchema, u as serializeSchemaV1Compat } from '../
|
|
1
|
+
import { A as AnyServiceSchemaMap, b as Connection, S as ServerHandshakeOptions, c as ServiceContext, d as ProcedureHandlerContext, e as PayloadType, I as InstantiatedServiceSchemaMap, f as ParsedMetadata, g as AnyProcedure } from '../transport-CCaWx1Rb.cjs';
|
|
2
|
+
export { N as BaseErrorSchemaType, L as CANCEL_CODE, Q as Client, X as Err, Z as ErrResult, K as INVALID_REQUEST_CODE, T as Ok, _ as OkResult, n as ProcErrors, j as ProcHandler, k as ProcInit, l as ProcRequest, m as ProcResponse, o as ProcType, E as Procedure, F as ProcedureErrorSchemaType, y as ProcedureMap, R as RPCProcedure, D as Readable, M as ReaderErrorSchema, a1 as ResponseData, Y as Result, a0 as ResultUnwrapErr, $ as ResultUnwrapOk, t as SerializedProcedureSchema, x as SerializedProcedureSchemaProtocolv1, q as SerializedServerSchema, v as SerializedServerSchemaProtocolv1, r as SerializedServiceSchema, w as SerializedServiceSchemaProtocolv1, h as Service, i as ServiceConfiguration, p as ServiceSchema, B as StreamProcedure, z as SubscriptionProcedure, H as UNCAUGHT_ERROR_CODE, J as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, O as createClient, a2 as createClientHandshakeOptions, a3 as createServerHandshakeOptions, G as flattenErrorType, s as serializeSchema, u as serializeSchemaV1Compat } from '../transport-CCaWx1Rb.cjs';
|
|
3
3
|
import { Static } from '@sinclair/typebox';
|
|
4
|
-
import { T as TransportClientId, O as OpaqueTransportMessage } from '../message-
|
|
4
|
+
import { T as TransportClientId, O as OpaqueTransportMessage } from '../message-Di94OL80.cjs';
|
|
5
5
|
import { ServerTransport } from '../transport/index.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../index-
|
|
8
|
-
import '../adapter-
|
|
7
|
+
import '../index-C9tpZjBN.cjs';
|
|
8
|
+
import '../adapter-Cuc4JtfV.cjs';
|
|
9
9
|
|
|
10
10
|
type StreamId = string;
|
|
11
11
|
/**
|
|
@@ -71,6 +71,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
71
71
|
middlewares?: Array<Middleware>;
|
|
72
72
|
}>): Server<Services>;
|
|
73
73
|
|
|
74
|
-
var version = "0.208.
|
|
74
|
+
var version = "0.208.3";
|
|
75
75
|
|
|
76
|
-
export { Middleware, MiddlewareContext, MiddlewareParam, ParsedMetadata, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, Server, ServiceContext, createServer };
|
|
76
|
+
export { type Middleware, type MiddlewareContext, type MiddlewareParam, ParsedMetadata, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, ServiceContext, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap,
|
|
2
|
-
export { N as BaseErrorSchemaType, L as CANCEL_CODE, Q as Client, X as Err, Z as ErrResult, K as INVALID_REQUEST_CODE, T as Ok, _ as OkResult, n as ProcErrors, j as ProcHandler, k as ProcInit, l as ProcRequest, m as ProcResponse, o as ProcType, E as Procedure, F as ProcedureErrorSchemaType, y as ProcedureMap, R as RPCProcedure, D as Readable, M as ReaderErrorSchema, a1 as ResponseData, Y as Result, a0 as ResultUnwrapErr, $ as ResultUnwrapOk, t as SerializedProcedureSchema, x as SerializedProcedureSchemaProtocolv1, q as SerializedServerSchema, v as SerializedServerSchemaProtocolv1, r as SerializedServiceSchema, w as SerializedServiceSchemaProtocolv1, h as Service, i as ServiceConfiguration, p as ServiceSchema, B as StreamProcedure, z as SubscriptionProcedure, H as UNCAUGHT_ERROR_CODE, J as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, O as createClient, a2 as createClientHandshakeOptions, a3 as createServerHandshakeOptions, G as flattenErrorType, s as serializeSchema, u as serializeSchemaV1Compat } from '../
|
|
1
|
+
import { A as AnyServiceSchemaMap, b as Connection, S as ServerHandshakeOptions, c as ServiceContext, d as ProcedureHandlerContext, e as PayloadType, I as InstantiatedServiceSchemaMap, f as ParsedMetadata, g as AnyProcedure } from '../transport-CZb3vdB4.js';
|
|
2
|
+
export { N as BaseErrorSchemaType, L as CANCEL_CODE, Q as Client, X as Err, Z as ErrResult, K as INVALID_REQUEST_CODE, T as Ok, _ as OkResult, n as ProcErrors, j as ProcHandler, k as ProcInit, l as ProcRequest, m as ProcResponse, o as ProcType, E as Procedure, F as ProcedureErrorSchemaType, y as ProcedureMap, R as RPCProcedure, D as Readable, M as ReaderErrorSchema, a1 as ResponseData, Y as Result, a0 as ResultUnwrapErr, $ as ResultUnwrapOk, t as SerializedProcedureSchema, x as SerializedProcedureSchemaProtocolv1, q as SerializedServerSchema, v as SerializedServerSchemaProtocolv1, r as SerializedServiceSchema, w as SerializedServiceSchemaProtocolv1, h as Service, i as ServiceConfiguration, p as ServiceSchema, B as StreamProcedure, z as SubscriptionProcedure, H as UNCAUGHT_ERROR_CODE, J as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, O as createClient, a2 as createClientHandshakeOptions, a3 as createServerHandshakeOptions, G as flattenErrorType, s as serializeSchema, u as serializeSchemaV1Compat } from '../transport-CZb3vdB4.js';
|
|
3
3
|
import { Static } from '@sinclair/typebox';
|
|
4
|
-
import { T as TransportClientId, O as OpaqueTransportMessage } from '../message-
|
|
4
|
+
import { T as TransportClientId, O as OpaqueTransportMessage } from '../message-Di94OL80.js';
|
|
5
5
|
import { ServerTransport } from '../transport/index.js';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../index-
|
|
8
|
-
import '../adapter-
|
|
7
|
+
import '../index-D8IOd3LG.js';
|
|
8
|
+
import '../adapter-ChksXKVN.js';
|
|
9
9
|
|
|
10
10
|
type StreamId = string;
|
|
11
11
|
/**
|
|
@@ -71,6 +71,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
71
71
|
middlewares?: Array<Middleware>;
|
|
72
72
|
}>): Server<Services>;
|
|
73
73
|
|
|
74
|
-
var version = "0.208.
|
|
74
|
+
var version = "0.208.3";
|
|
75
75
|
|
|
76
|
-
export { Middleware, MiddlewareContext, MiddlewareParam, ParsedMetadata, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, Server, ServiceContext, createServer };
|
|
76
|
+
export { type Middleware, type MiddlewareContext, type MiddlewareParam, ParsedMetadata, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, ServiceContext, createServer };
|
package/dist/router/index.js
CHANGED
package/dist/testUtil/index.cjs
CHANGED
|
@@ -488,13 +488,11 @@ var SessionConnecting = class extends IdentifiedSessionWithGracePeriod {
|
|
|
488
488
|
this.listeners = props.listeners;
|
|
489
489
|
this.connPromise.then(
|
|
490
490
|
(conn) => {
|
|
491
|
-
if (this._isConsumed)
|
|
492
|
-
return;
|
|
491
|
+
if (this._isConsumed) return;
|
|
493
492
|
this.listeners.onConnectionEstablished(conn);
|
|
494
493
|
},
|
|
495
494
|
(err) => {
|
|
496
|
-
if (this._isConsumed)
|
|
497
|
-
return;
|
|
495
|
+
if (this._isConsumed) return;
|
|
498
496
|
this.listeners.onConnectionFailed(err);
|
|
499
497
|
}
|
|
500
498
|
);
|
|
@@ -555,7 +553,7 @@ function coerceErrorString(err) {
|
|
|
555
553
|
}
|
|
556
554
|
|
|
557
555
|
// package.json
|
|
558
|
-
var version = "0.208.
|
|
556
|
+
var version = "0.208.3";
|
|
559
557
|
|
|
560
558
|
// tracing/index.ts
|
|
561
559
|
function getPropagationContext(ctx) {
|
|
@@ -1054,8 +1052,7 @@ var Transport = class {
|
|
|
1054
1052
|
* @param message The received message.
|
|
1055
1053
|
*/
|
|
1056
1054
|
handleMsg(message) {
|
|
1057
|
-
if (this.getStatus() !== "open")
|
|
1058
|
-
return;
|
|
1055
|
+
if (this.getStatus() !== "open") return;
|
|
1059
1056
|
this.eventDispatcher.dispatchEvent("message", message);
|
|
1060
1057
|
}
|
|
1061
1058
|
/**
|
|
@@ -1143,8 +1140,7 @@ var Transport = class {
|
|
|
1143
1140
|
});
|
|
1144
1141
|
}
|
|
1145
1142
|
deleteSession(session, options) {
|
|
1146
|
-
if (session._isConsumed)
|
|
1147
|
-
return;
|
|
1143
|
+
if (session._isConsumed) return;
|
|
1148
1144
|
const loggingMetadata = session.loggingMetadata;
|
|
1149
1145
|
if (loggingMetadata.tags && options?.unhealthy) {
|
|
1150
1146
|
loggingMetadata.tags.push("unhealthy-session");
|
|
@@ -1722,8 +1718,7 @@ var ServerTransport = class extends Transport {
|
|
|
1722
1718
|
super.deleteSession(session, options);
|
|
1723
1719
|
}
|
|
1724
1720
|
handleConnection(conn) {
|
|
1725
|
-
if (this.getStatus() !== "open")
|
|
1726
|
-
return;
|
|
1721
|
+
if (this.getStatus() !== "open") return;
|
|
1727
1722
|
this.log?.info(`new incoming connection`, {
|
|
1728
1723
|
...conn.loggingMetadata,
|
|
1729
1724
|
clientId: this.clientId
|
|
@@ -2704,8 +2699,7 @@ function createMockTransportNetwork(opts) {
|
|
|
2704
2699
|
},
|
|
2705
2700
|
async restartServer() {
|
|
2706
2701
|
for (const transport of transports) {
|
|
2707
|
-
if (transport.clientId !== "SERVER")
|
|
2708
|
-
continue;
|
|
2702
|
+
if (transport.clientId !== "SERVER") continue;
|
|
2709
2703
|
transport.close();
|
|
2710
2704
|
}
|
|
2711
2705
|
for (const conn of Object.values(connections.get())) {
|