@replit/river 0.205.0 → 0.205.1
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-EU2H4J7U.js → chunk-356UADV3.js} +2 -2
- package/dist/{chunk-RAO6UI45.js → chunk-3XCLUGDM.js} +3 -3
- package/dist/{chunk-WBGKPIFS.js → chunk-CC7RN7GI.js} +1 -1
- package/dist/chunk-CC7RN7GI.js.map +1 -0
- package/dist/{chunk-GG3GL7CW.js → chunk-HNBYBRJ7.js} +41 -13
- package/dist/chunk-HNBYBRJ7.js.map +1 -0
- package/dist/{chunk-VN7QS6OS.js → chunk-OVLZDQF4.js} +3 -3
- package/dist/{chunk-AXZPYUY6.js → chunk-Y2N4EJYG.js} +3 -3
- package/dist/{client-3adfb12a.d.ts → client-c44d1c69.d.ts} +2 -2
- package/dist/{connection-9ca3e7ed.d.ts → connection-03726441.d.ts} +6 -4
- package/dist/{context-1a332293.d.ts → context-ebf88958.d.ts} +9 -4
- package/dist/logging/index.cjs.map +1 -1
- package/dist/logging/index.d.cts +1 -2
- package/dist/logging/index.d.ts +1 -2
- package/dist/logging/index.js +1 -1
- package/dist/{message-3def9ded.d.ts → message-865bba35.d.ts} +4 -2
- package/dist/router/index.cjs +40 -12
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +8 -10
- package/dist/router/index.d.ts +8 -10
- package/dist/router/index.js +1 -1
- package/dist/{server-8ac5c6bf.d.ts → server-b169b234.d.ts} +6 -4
- package/dist/{services-4213d92e.d.ts → services-47b312aa.d.ts} +11 -3
- package/dist/testUtil/index.cjs +1 -1
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +5 -7
- package/dist/testUtil/index.d.ts +5 -7
- package/dist/testUtil/index.js +5 -5
- package/dist/transport/impls/ws/client.cjs +1 -1
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +4 -6
- package/dist/transport/impls/ws/client.d.ts +4 -6
- package/dist/transport/impls/ws/client.js +5 -5
- package/dist/transport/impls/ws/server.cjs +1 -1
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +4 -6
- package/dist/transport/impls/ws/server.d.ts +4 -6
- package/dist/transport/impls/ws/server.js +5 -5
- package/dist/transport/index.cjs +1 -1
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +4 -6
- package/dist/transport/index.d.ts +4 -6
- package/dist/transport/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-GG3GL7CW.js.map +0 -1
- package/dist/chunk-WBGKPIFS.js.map +0 -1
- /package/dist/{chunk-EU2H4J7U.js.map → chunk-356UADV3.js.map} +0 -0
- /package/dist/{chunk-RAO6UI45.js.map → chunk-3XCLUGDM.js.map} +0 -0
- /package/dist/{chunk-VN7QS6OS.js.map → chunk-OVLZDQF4.js.map} +0 -0
- /package/dist/{chunk-AXZPYUY6.js.map → chunk-Y2N4EJYG.js.map} +0 -0
package/dist/router/index.d.cts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, a as AnyProcedure } from '../services-
|
|
2
|
-
export { E as BaseErrorSchemaType, C as CANCEL_CODE, G as Client, H as Err, L as ErrResult, B as INVALID_REQUEST_CODE, O as Ok, M as OkResult, p as PayloadType, f as ProcErrors, P as ProcHandler, c as ProcInit, d as ProcRequest, e as ProcResponse, g as ProcType, v as Procedure, w as ProcedureErrorSchemaType, q as ProcedureMap, R as RPCProcedure, u as Readable, D as ReaderErrorSchema, T as ResponseData, K as Result, Q as ResultUnwrapErr, N as ResultUnwrapOk, k as SerializedProcedureSchema, o as SerializedProcedureSchemaProtocolv1, i as SerializedServerSchema, m as SerializedServerSchemaProtocolv1, j as SerializedServiceSchema, n as SerializedServiceSchemaProtocolv1, S as Service, b as ServiceConfiguration, h as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, y as UNCAUGHT_ERROR_CODE, z as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, F as createClient, x as flattenErrorType, s as serializeSchema, l as serializeSchemaV1Compat, J as unwrapOrThrow } from '../services-
|
|
3
|
-
import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-
|
|
4
|
-
import { q as ParsedMetadata, C as Connection, r as ServerHandshakeOptions, s as ServiceContext } from '../context-
|
|
5
|
-
export { t as ProcedureHandlerContext, u as createClientHandshakeOptions, v as createServerHandshakeOptions } from '../context-
|
|
6
|
-
import { S as ServerTransport } from '../server-
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, a as AnyProcedure } from '../services-47b312aa.js';
|
|
2
|
+
export { E as BaseErrorSchemaType, C as CANCEL_CODE, G as Client, H as Err, L as ErrResult, B as INVALID_REQUEST_CODE, O as Ok, M as OkResult, p as PayloadType, f as ProcErrors, P as ProcHandler, c as ProcInit, d as ProcRequest, e as ProcResponse, g as ProcType, v as Procedure, w as ProcedureErrorSchemaType, q as ProcedureMap, R as RPCProcedure, u as Readable, D as ReaderErrorSchema, T as ResponseData, K as Result, Q as ResultUnwrapErr, N as ResultUnwrapOk, k as SerializedProcedureSchema, o as SerializedProcedureSchemaProtocolv1, i as SerializedServerSchema, m as SerializedServerSchemaProtocolv1, j as SerializedServiceSchema, n as SerializedServiceSchemaProtocolv1, S as Service, b as ServiceConfiguration, h as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, y as UNCAUGHT_ERROR_CODE, z as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, F as createClient, x as flattenErrorType, s as serializeSchema, l as serializeSchemaV1Compat, J as unwrapOrThrow } from '../services-47b312aa.js';
|
|
3
|
+
import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-865bba35.js';
|
|
4
|
+
import { q as ParsedMetadata, C as Connection, r as ServerHandshakeOptions, s as ServiceContext } from '../context-ebf88958.js';
|
|
5
|
+
export { t as ProcedureHandlerContext, u as createClientHandshakeOptions, v as createServerHandshakeOptions } from '../context-ebf88958.js';
|
|
6
|
+
import { S as ServerTransport } from '../server-b169b234.js';
|
|
7
7
|
import '@sinclair/typebox';
|
|
8
|
-
import '../client-
|
|
9
|
-
import '@sinclair/typebox/value';
|
|
8
|
+
import '../client-c44d1c69.js';
|
|
10
9
|
import '@opentelemetry/api';
|
|
11
|
-
import '@sinclair/typebox/errors';
|
|
12
10
|
import '../types-3e5768ec.js';
|
|
13
11
|
|
|
14
12
|
type StreamId = string;
|
|
@@ -56,6 +54,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
56
54
|
maxCancelledStreamTombstonesPerSession?: number;
|
|
57
55
|
}>): Server<Services>;
|
|
58
56
|
|
|
59
|
-
var version = "0.205.
|
|
57
|
+
var version = "0.205.1";
|
|
60
58
|
|
|
61
59
|
export { ParsedMetadata, version as RIVER_VERSION, Server, ServiceContext, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, a as AnyProcedure } from '../services-
|
|
2
|
-
export { E as BaseErrorSchemaType, C as CANCEL_CODE, G as Client, H as Err, L as ErrResult, B as INVALID_REQUEST_CODE, O as Ok, M as OkResult, p as PayloadType, f as ProcErrors, P as ProcHandler, c as ProcInit, d as ProcRequest, e as ProcResponse, g as ProcType, v as Procedure, w as ProcedureErrorSchemaType, q as ProcedureMap, R as RPCProcedure, u as Readable, D as ReaderErrorSchema, T as ResponseData, K as Result, Q as ResultUnwrapErr, N as ResultUnwrapOk, k as SerializedProcedureSchema, o as SerializedProcedureSchemaProtocolv1, i as SerializedServerSchema, m as SerializedServerSchemaProtocolv1, j as SerializedServiceSchema, n as SerializedServiceSchemaProtocolv1, S as Service, b as ServiceConfiguration, h as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, y as UNCAUGHT_ERROR_CODE, z as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, F as createClient, x as flattenErrorType, s as serializeSchema, l as serializeSchemaV1Compat, J as unwrapOrThrow } from '../services-
|
|
3
|
-
import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-
|
|
4
|
-
import { q as ParsedMetadata, C as Connection, r as ServerHandshakeOptions, s as ServiceContext } from '../context-
|
|
5
|
-
export { t as ProcedureHandlerContext, u as createClientHandshakeOptions, v as createServerHandshakeOptions } from '../context-
|
|
6
|
-
import { S as ServerTransport } from '../server-
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, a as AnyProcedure } from '../services-47b312aa.js';
|
|
2
|
+
export { E as BaseErrorSchemaType, C as CANCEL_CODE, G as Client, H as Err, L as ErrResult, B as INVALID_REQUEST_CODE, O as Ok, M as OkResult, p as PayloadType, f as ProcErrors, P as ProcHandler, c as ProcInit, d as ProcRequest, e as ProcResponse, g as ProcType, v as Procedure, w as ProcedureErrorSchemaType, q as ProcedureMap, R as RPCProcedure, u as Readable, D as ReaderErrorSchema, T as ResponseData, K as Result, Q as ResultUnwrapErr, N as ResultUnwrapOk, k as SerializedProcedureSchema, o as SerializedProcedureSchemaProtocolv1, i as SerializedServerSchema, m as SerializedServerSchemaProtocolv1, j as SerializedServiceSchema, n as SerializedServiceSchemaProtocolv1, S as Service, b as ServiceConfiguration, h as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, y as UNCAUGHT_ERROR_CODE, z as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, F as createClient, x as flattenErrorType, s as serializeSchema, l as serializeSchemaV1Compat, J as unwrapOrThrow } from '../services-47b312aa.js';
|
|
3
|
+
import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-865bba35.js';
|
|
4
|
+
import { q as ParsedMetadata, C as Connection, r as ServerHandshakeOptions, s as ServiceContext } from '../context-ebf88958.js';
|
|
5
|
+
export { t as ProcedureHandlerContext, u as createClientHandshakeOptions, v as createServerHandshakeOptions } from '../context-ebf88958.js';
|
|
6
|
+
import { S as ServerTransport } from '../server-b169b234.js';
|
|
7
7
|
import '@sinclair/typebox';
|
|
8
|
-
import '../client-
|
|
9
|
-
import '@sinclair/typebox/value';
|
|
8
|
+
import '../client-c44d1c69.js';
|
|
10
9
|
import '@opentelemetry/api';
|
|
11
|
-
import '@sinclair/typebox/errors';
|
|
12
10
|
import '../types-3e5768ec.js';
|
|
13
11
|
|
|
14
12
|
type StreamId = string;
|
|
@@ -56,6 +54,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
56
54
|
maxCancelledStreamTombstonesPerSession?: number;
|
|
57
55
|
}>): Server<Services>;
|
|
58
56
|
|
|
59
|
-
var version = "0.205.
|
|
57
|
+
var version = "0.205.1";
|
|
60
58
|
|
|
61
59
|
export { ParsedMetadata, version as RIVER_VERSION, Server, ServiceContext, createServer };
|
package/dist/router/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { C as Connection, w as CommonSession, d as SessionState, x as CommonSessionProps, T as Transport, y as ServerTransportOptions, r as ServerHandshakeOptions, q as ParsedMetadata, z as ServerSession, c as ProvidedServerTransportOptions, D as DeleteSessionOptions } from './context-
|
|
2
|
-
import { P as ProtocolVersion, b as OpaqueTransportMessage, e as Tags, a as TransportMessage, H as HandshakeErrorResponseCodes, c as TransportClientId } from './message-
|
|
3
|
-
import * as _sinclair_typebox_errors from '@sinclair/typebox/errors';
|
|
1
|
+
import { C as Connection, w as CommonSession, d as SessionState, x as CommonSessionProps, T as Transport, y as ServerTransportOptions, r as ServerHandshakeOptions, q as ParsedMetadata, z as ServerSession, c as ProvidedServerTransportOptions, D as DeleteSessionOptions } from './context-ebf88958.js';
|
|
2
|
+
import { P as ProtocolVersion, b as OpaqueTransportMessage, e as Tags, a as TransportMessage, H as HandshakeErrorResponseCodes, c as TransportClientId } from './message-865bba35.js';
|
|
4
3
|
import { Static } from '@sinclair/typebox';
|
|
5
4
|
|
|
6
5
|
interface SessionWaitingForHandshakeListeners {
|
|
@@ -27,7 +26,10 @@ declare class SessionWaitingForHandshake<ConnType extends Connection> extends Co
|
|
|
27
26
|
sessionId?: string | undefined;
|
|
28
27
|
connId: string;
|
|
29
28
|
transportMessage?: Partial<OpaqueTransportMessage> | undefined;
|
|
30
|
-
validationErrors?:
|
|
29
|
+
validationErrors?: {
|
|
30
|
+
path: string;
|
|
31
|
+
message: string;
|
|
32
|
+
}[] | undefined;
|
|
31
33
|
tags?: Tags[] | undefined;
|
|
32
34
|
telemetry?: {
|
|
33
35
|
traceId: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
1
2
|
import { TObject, TString, TSchema, TUnion, TLiteral, TNever, Static } from '@sinclair/typebox';
|
|
2
|
-
import { C as Connection, n as ClientHandshakeOptions, t as ProcedureHandlerContext, s as ServiceContext } from './context-
|
|
3
|
-
import { c as TransportClientId } from './message-
|
|
4
|
-
import { C as ClientTransport } from './client-
|
|
3
|
+
import { C as Connection, n as ClientHandshakeOptions, t as ProcedureHandlerContext, s as ServiceContext } from './context-ebf88958.js';
|
|
4
|
+
import { c as TransportClientId } from './message-865bba35.js';
|
|
5
|
+
import { C as ClientTransport } from './client-c44d1c69.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* {@link UNCAUGHT_ERROR_CODE} is the code that is used when an error is thrown
|
|
@@ -44,6 +45,13 @@ declare const ReaderErrorSchema: TUnion<[TObject<{
|
|
|
44
45
|
}>, TObject<{
|
|
45
46
|
code: TLiteral<"INVALID_REQUEST">;
|
|
46
47
|
message: TString;
|
|
48
|
+
extras: _sinclair_typebox.TOptional<TObject<{
|
|
49
|
+
firstValidationErrors: _sinclair_typebox.TArray<TObject<{
|
|
50
|
+
path: TString;
|
|
51
|
+
message: TString;
|
|
52
|
+
}>>;
|
|
53
|
+
totalErrors: _sinclair_typebox.TNumber;
|
|
54
|
+
}>>;
|
|
47
55
|
}>, TObject<{
|
|
48
56
|
code: TLiteral<"CANCEL">;
|
|
49
57
|
message: TString;
|