@replit/river 0.209.5 → 0.209.7

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.
@@ -1,5 +1,5 @@
1
- import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-BXjRTxa7.cjs';
2
- export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-BXjRTxa7.cjs';
1
+ import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-B_BZhCoO.cjs';
2
+ export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-B_BZhCoO.cjs';
3
3
  import { TSchema, Static } from '@sinclair/typebox';
4
4
  import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-Dlsh5WDF.cjs';
5
5
  import { C as Connection, q as ServerHandshakeOptions } from '../transport-CxT7y8Qk.cjs';
@@ -74,6 +74,6 @@ declare function createServer<Context extends object, MetadataSchema extends TSc
74
74
  middlewares?: Array<Middleware>;
75
75
  }>): Server<Context, ParsedMetadata, Services>;
76
76
 
77
- var version = "0.209.5";
77
+ var version = "0.209.7";
78
78
 
79
79
  export { type Middleware, type MiddlewareContext, type MiddlewareParam, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, createServer };
@@ -1,5 +1,5 @@
1
- import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-BsHCCIEq.js';
2
- export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-BsHCCIEq.js';
1
+ import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-Bv1L3UhS.js';
2
+ export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-Bv1L3UhS.js';
3
3
  import { TSchema, Static } from '@sinclair/typebox';
4
4
  import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-Dlsh5WDF.js';
5
5
  import { C as Connection, q as ServerHandshakeOptions } from '../transport-pdbkDzmJ.js';
@@ -74,6 +74,6 @@ declare function createServer<Context extends object, MetadataSchema extends TSc
74
74
  middlewares?: Array<Middleware>;
75
75
  }>): Server<Context, ParsedMetadata, Services>;
76
76
 
77
- var version = "0.209.5";
77
+ var version = "0.209.7";
78
78
 
79
79
  export { type Middleware, type MiddlewareContext, type MiddlewareParam, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, createServer };
@@ -18,7 +18,7 @@ import {
18
18
  serializeSchema,
19
19
  serializeSchemaV1Compat,
20
20
  version
21
- } from "../chunk-JY4555JT.js";
21
+ } from "../chunk-MZP5A6YH.js";
22
22
  export {
23
23
  CANCEL_CODE,
24
24
  Err,
@@ -166,10 +166,12 @@ interface Writable<T> {
166
166
  /**
167
167
  * {@link close} signals the closure of the {@link Writeable}, informing the {@link Readable} end that
168
168
  * all data has been transmitted and we've cleanly closed.
169
+ * Optionally a final value can be passed to {@link close}, which will be the last value
170
+ * to write before it closes.
169
171
  *
170
172
  * Calling {@link close} multiple times is a no-op.
171
173
  */
172
- close(): undefined;
174
+ close(value?: T): undefined;
173
175
  /**
174
176
  * {@link isWritable} returns true if it's safe to call {@link write}, which
175
177
  * means that the {@link Writable} hasn't been closed due to {@link close} being called
@@ -166,10 +166,12 @@ interface Writable<T> {
166
166
  /**
167
167
  * {@link close} signals the closure of the {@link Writeable}, informing the {@link Readable} end that
168
168
  * all data has been transmitted and we've cleanly closed.
169
+ * Optionally a final value can be passed to {@link close}, which will be the last value
170
+ * to write before it closes.
169
171
  *
170
172
  * Calling {@link close} multiple times is a no-op.
171
173
  */
172
- close(): undefined;
174
+ close(value?: T): undefined;
173
175
  /**
174
176
  * {@link isWritable} returns true if it's safe to call {@link write}, which
175
177
  * means that the {@link Writable} hasn't been closed due to {@link close} being called
@@ -228,6 +228,8 @@ var NaiveJsonCodec = {
228
228
  const val = this[key];
229
229
  if (val instanceof Uint8Array) {
230
230
  return { $t: uint8ArrayToBase64(val) };
231
+ } else if (typeof val === "bigint") {
232
+ return { $b: val.toString() };
231
233
  } else {
232
234
  return val;
233
235
  }
@@ -240,6 +242,8 @@ var NaiveJsonCodec = {
240
242
  function reviver(_key, val) {
241
243
  if (val?.$t !== void 0) {
242
244
  return base64ToUint8Array(val.$t);
245
+ } else if (val?.$b !== void 0) {
246
+ return BigInt(val.$b);
243
247
  } else {
244
248
  return val;
245
249
  }
@@ -554,7 +558,7 @@ function coerceErrorString(err) {
554
558
  }
555
559
 
556
560
  // package.json
557
- var version = "0.209.5";
561
+ var version = "0.209.7";
558
562
 
559
563
  // tracing/index.ts
560
564
  function getPropagationContext(ctx) {