@replit/river 0.25.2 → 0.26.0
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-PF74DCPQ.js → chunk-5FDAIAQ5.js} +3 -3
- package/dist/{chunk-ONIPHO7J.js → chunk-5S64PXTU.js} +4 -4
- package/dist/{chunk-QXMZJ7LF.js → chunk-7ETNUCOL.js} +41 -40
- package/dist/chunk-7ETNUCOL.js.map +1 -0
- package/dist/{chunk-GDHQCPWW.js → chunk-BNNELZM4.js} +2 -2
- package/dist/{chunk-GDHQCPWW.js.map → chunk-BNNELZM4.js.map} +1 -1
- package/dist/{chunk-EHD2JJBW.js → chunk-CCUYKR5C.js} +14 -4
- package/dist/chunk-CCUYKR5C.js.map +1 -0
- package/dist/{chunk-Q3PZBJXR.js → chunk-JSU2KACV.js} +2 -2
- package/dist/{chunk-ZWMWRM23.js → chunk-KP4UB5NW.js} +2 -2
- package/dist/{client-edc8e2de.d.ts → client-162c509c.d.ts} +2 -2
- package/dist/{connection-ef50ac3a.d.ts → connection-6a404bb8.d.ts} +1 -1
- package/dist/{handshake-12d57161.d.ts → handshake-3342bb94.d.ts} +2 -2
- package/dist/logging/index.d.cts +1 -1
- package/dist/logging/index.d.ts +1 -1
- package/dist/{message-e6c560fd.d.ts → message-1a434848.d.ts} +2 -1
- package/dist/router/index.cjs +12 -3
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +8 -8
- package/dist/router/index.d.ts +8 -8
- package/dist/router/index.js +2 -2
- package/dist/{server-f8228636.d.ts → server-1b695374.d.ts} +2 -2
- package/dist/{services-4b9e5232.d.ts → services-c17f7eff.d.ts} +3 -3
- package/dist/transport/impls/ws/client.cjs +12 -3
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +4 -4
- package/dist/transport/impls/ws/client.d.ts +4 -4
- package/dist/transport/impls/ws/client.js +5 -5
- package/dist/transport/impls/ws/server.cjs +48 -39
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +4 -4
- package/dist/transport/impls/ws/server.d.ts +4 -4
- package/dist/transport/impls/ws/server.js +5 -5
- package/dist/transport/index.cjs +48 -39
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +4 -4
- package/dist/transport/index.d.ts +4 -4
- package/dist/transport/index.js +5 -5
- package/dist/util/testHelpers.cjs +12 -3
- package/dist/util/testHelpers.cjs.map +1 -1
- package/dist/util/testHelpers.d.cts +4 -4
- package/dist/util/testHelpers.d.ts +4 -4
- package/dist/util/testHelpers.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-EHD2JJBW.js.map +0 -1
- package/dist/chunk-QXMZJ7LF.js.map +0 -1
- /package/dist/{chunk-PF74DCPQ.js.map → chunk-5FDAIAQ5.js.map} +0 -0
- /package/dist/{chunk-ONIPHO7J.js.map → chunk-5S64PXTU.js.map} +0 -0
- /package/dist/{chunk-Q3PZBJXR.js.map → chunk-JSU2KACV.js.map} +0 -0
- /package/dist/{chunk-ZWMWRM23.js.map → chunk-KP4UB5NW.js.map} +0 -0
package/dist/router/index.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-
|
|
2
|
-
export { C as Client, E as Err, O as Ok, z as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, p as ProcedureMap, d as ProcedureResult, q as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, c as RiverUncaughtSchema, o as SerializedProcedureSchema, m as SerializedServerSchema, n as SerializedServiceSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, v as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, u as createClient, s as serializeSchema } from '../services-
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-c17f7eff.js';
|
|
2
|
+
export { C as Client, E as Err, O as Ok, z as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, p as ProcedureMap, d as ProcedureResult, q as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, c as RiverUncaughtSchema, o as SerializedProcedureSchema, m as SerializedServerSchema, n as SerializedServiceSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, v as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, u as createClient, s as serializeSchema } from '../services-c17f7eff.js';
|
|
3
3
|
import { Static } from '@sinclair/typebox';
|
|
4
4
|
import { Pushable } from 'it-pushable';
|
|
5
|
-
import { C as Connection, s as ServerHandshakeOptions, o as ServiceContext } from '../handshake-
|
|
6
|
-
export { t as ParsedMetadata, u as ServiceContextWithState, v as ServiceContextWithTransportInfo, w as createClientHandshakeOptions, x as createServerHandshakeOptions } from '../handshake-
|
|
7
|
-
import { S as ServerTransport } from '../server-
|
|
8
|
-
import '../message-
|
|
5
|
+
import { C as Connection, s as ServerHandshakeOptions, o as ServiceContext } from '../handshake-3342bb94.js';
|
|
6
|
+
export { t as ParsedMetadata, u as ServiceContextWithState, v as ServiceContextWithTransportInfo, w as createClientHandshakeOptions, x as createServerHandshakeOptions } from '../handshake-3342bb94.js';
|
|
7
|
+
import { S as ServerTransport } from '../server-1b695374.js';
|
|
8
|
+
import '../message-1a434848.js';
|
|
9
9
|
import '@sinclair/typebox/value';
|
|
10
10
|
import '@opentelemetry/api';
|
|
11
|
-
import '../client-
|
|
11
|
+
import '../client-162c509c.js';
|
|
12
12
|
import '../types-3e5768ec.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -45,6 +45,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
45
45
|
extendedContext?: Omit<ServiceContext, 'state'>;
|
|
46
46
|
}>): Server<Services>;
|
|
47
47
|
|
|
48
|
-
var version = "0.
|
|
48
|
+
var version = "0.26.0";
|
|
49
49
|
|
|
50
50
|
export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-
|
|
2
|
-
export { C as Client, E as Err, O as Ok, z as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, p as ProcedureMap, d as ProcedureResult, q as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, c as RiverUncaughtSchema, o as SerializedProcedureSchema, m as SerializedServerSchema, n as SerializedServiceSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, v as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, u as createClient, s as serializeSchema } from '../services-
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-c17f7eff.js';
|
|
2
|
+
export { C as Client, E as Err, O as Ok, z as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, p as ProcedureMap, d as ProcedureResult, q as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, c as RiverUncaughtSchema, o as SerializedProcedureSchema, m as SerializedServerSchema, n as SerializedServiceSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, v as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, u as createClient, s as serializeSchema } from '../services-c17f7eff.js';
|
|
3
3
|
import { Static } from '@sinclair/typebox';
|
|
4
4
|
import { Pushable } from 'it-pushable';
|
|
5
|
-
import { C as Connection, s as ServerHandshakeOptions, o as ServiceContext } from '../handshake-
|
|
6
|
-
export { t as ParsedMetadata, u as ServiceContextWithState, v as ServiceContextWithTransportInfo, w as createClientHandshakeOptions, x as createServerHandshakeOptions } from '../handshake-
|
|
7
|
-
import { S as ServerTransport } from '../server-
|
|
8
|
-
import '../message-
|
|
5
|
+
import { C as Connection, s as ServerHandshakeOptions, o as ServiceContext } from '../handshake-3342bb94.js';
|
|
6
|
+
export { t as ParsedMetadata, u as ServiceContextWithState, v as ServiceContextWithTransportInfo, w as createClientHandshakeOptions, x as createServerHandshakeOptions } from '../handshake-3342bb94.js';
|
|
7
|
+
import { S as ServerTransport } from '../server-1b695374.js';
|
|
8
|
+
import '../message-1a434848.js';
|
|
9
9
|
import '@sinclair/typebox/value';
|
|
10
10
|
import '@opentelemetry/api';
|
|
11
|
-
import '../client-
|
|
11
|
+
import '../client-162c509c.js';
|
|
12
12
|
import '../types-3e5768ec.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -45,6 +45,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
45
45
|
extendedContext?: Omit<ServiceContext, 'state'>;
|
|
46
46
|
}>): Server<Services>;
|
|
47
47
|
|
|
48
|
-
var version = "0.
|
|
48
|
+
var version = "0.26.0";
|
|
49
49
|
|
|
50
50
|
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-BNNELZM4.js";
|
|
14
14
|
import {
|
|
15
15
|
version
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-CCUYKR5C.js";
|
|
17
17
|
export {
|
|
18
18
|
Err,
|
|
19
19
|
Ok,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Connection, y as CommonSession, d as SessionState, z as SessionHandshakingListeners, A as CommonSessionProps, T as Transport, B as ServerTransportOptions, s as ServerHandshakeOptions, t as ParsedMetadata, D as ServerSession, c as ProvidedServerTransportOptions } from './handshake-
|
|
2
|
-
import { M as MessageMetadata, a as TransportMessage, c as TransportClientId, P as PartialTransportMessage, b as OpaqueTransportMessage } from './message-
|
|
1
|
+
import { C as Connection, y as CommonSession, d as SessionState, z as SessionHandshakingListeners, A as CommonSessionProps, T as Transport, B as ServerTransportOptions, s as ServerHandshakeOptions, t as ParsedMetadata, D as ServerSession, c as ProvidedServerTransportOptions } from './handshake-3342bb94.js';
|
|
2
|
+
import { M as MessageMetadata, a as TransportMessage, c as TransportClientId, P as PartialTransportMessage, b as OpaqueTransportMessage } from './message-1a434848.js';
|
|
3
3
|
|
|
4
4
|
interface SessionWaitingForHandshakeProps<ConnType extends Connection> extends CommonSessionProps {
|
|
5
5
|
conn: ConnType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Static, TObject, TUnion, TString, TSchema, TNever, TLiteral } from '@sinclair/typebox';
|
|
2
2
|
import { Pushable } from 'it-pushable';
|
|
3
|
-
import { C as Connection, p as ClientHandshakeOptions, v as ServiceContextWithTransportInfo, o as ServiceContext } from './handshake-
|
|
4
|
-
import { c as TransportClientId } from './message-
|
|
5
|
-
import { C as ClientTransport } from './client-
|
|
3
|
+
import { C as Connection, p as ClientHandshakeOptions, v as ServiceContextWithTransportInfo, o as ServiceContext } from './handshake-3342bb94.js';
|
|
4
|
+
import { c as TransportClientId } from './message-1a434848.js';
|
|
5
|
+
import { C as ClientTransport } from './client-162c509c.js';
|
|
6
6
|
|
|
7
7
|
type AsyncIter<T> = AsyncGenerator<T, T>;
|
|
8
8
|
/**
|
|
@@ -85,11 +85,20 @@ var ControlMessageHandshakeRequestSchema = import_typebox.Type.Object({
|
|
|
85
85
|
var HandshakeErrorRetriableResponseCodes = import_typebox.Type.Union([
|
|
86
86
|
import_typebox.Type.Literal("SESSION_STATE_MISMATCH")
|
|
87
87
|
]);
|
|
88
|
+
var HandshakeErrorCustomHandlerFatalResponseCodes = import_typebox.Type.Union([
|
|
89
|
+
// The custom validation handler rejected the handler because the client is unsupported.
|
|
90
|
+
import_typebox.Type.Literal("REJECTED_UNSUPPORTED_CLIENT"),
|
|
91
|
+
// The custom validation handler rejected the handshake.
|
|
92
|
+
import_typebox.Type.Literal("REJECTED_BY_CUSTOM_HANDLER")
|
|
93
|
+
]);
|
|
88
94
|
var HandshakeErrorFatalResponseCodes = import_typebox.Type.Union([
|
|
95
|
+
HandshakeErrorCustomHandlerFatalResponseCodes,
|
|
96
|
+
// The ciient sent a handshake that doesn't comply with the extended handshake metadata.
|
|
89
97
|
import_typebox.Type.Literal("MALFORMED_HANDSHAKE_META"),
|
|
98
|
+
// The ciient sent a handshake that doesn't comply with ControlMessageHandshakeRequestSchema.
|
|
90
99
|
import_typebox.Type.Literal("MALFORMED_HANDSHAKE"),
|
|
91
|
-
|
|
92
|
-
import_typebox.Type.Literal("
|
|
100
|
+
// The client's protocol version does not match the server's.
|
|
101
|
+
import_typebox.Type.Literal("PROTOCOL_VERSION_MISMATCH")
|
|
93
102
|
]);
|
|
94
103
|
var HandshakeErrorResponseCodes = import_typebox.Type.Union([
|
|
95
104
|
HandshakeErrorRetriableResponseCodes,
|
|
@@ -599,7 +608,7 @@ var SessionNoConnection = class extends IdentifiedSession {
|
|
|
599
608
|
var import_api = require("@opentelemetry/api");
|
|
600
609
|
|
|
601
610
|
// package.json
|
|
602
|
-
var version = "0.
|
|
611
|
+
var version = "0.26.0";
|
|
603
612
|
|
|
604
613
|
// tracing/index.ts
|
|
605
614
|
function getPropagationContext(ctx) {
|