@orpc/shared 0.0.0-next.f4ed9ab → 0.0.0-next.f5149a8

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/README.md CHANGED
@@ -1,8 +1,3 @@
1
- > [!WARNING]
2
- >
3
- > `@orpc/shared` is an internal dependency of oRPC packages. It does not follow semver and may change at any time without notice.
4
- > Please do not use it in your project.
5
-
6
1
  <div align="center">
7
2
  <image align="center" src="https://orpc.unnoq.com/logo.webp" width=280 alt="oRPC logo" />
8
3
  </div>
@@ -22,6 +17,9 @@
22
17
  <a href="https://discord.gg/TXEbwRBvQn">
23
18
  <img alt="Discord" src="https://img.shields.io/discord/1308966753044398161?color=7389D8&label&logo=discord&logoColor=ffffff" />
24
19
  </a>
20
+ <a href="https://deepwiki.com/unnoq/orpc">
21
+ <img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki">
22
+ </a>
25
23
  </div>
26
24
 
27
25
  <h3 align="center">Typesafe APIs Made Simple 🪄</h3>
@@ -35,7 +33,8 @@
35
33
  - **🔗 End-to-End Type Safety**: Ensure type-safe inputs, outputs, and errors from client to server.
36
34
  - **📘 First-Class OpenAPI**: Built-in support that fully adheres to the OpenAPI standard.
37
35
  - **📝 Contract-First Development**: Optionally define your API contract before implementation.
38
- - **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte), Pinia Colada, and more.
36
+ - **🔍 First-Class OpenTelemetry**: Seamlessly integrate with OpenTelemetry for observability.
37
+ - **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte, Angular), SWR, Pinia Colada, and more.
39
38
  - **🚀 Server Actions**: Fully compatible with React Server Actions on Next.js, TanStack Start, and other platforms.
40
39
  - **🔠 Standard Schema Support**: Works out of the box with Zod, Valibot, ArkType, and other schema validators.
41
40
  - **🗃️ Native Types**: Supports native types like Date, File, Blob, BigInt, URL, and more.
@@ -43,7 +42,6 @@
43
42
  - **📡 SSE & Streaming**: Enjoy full type-safe support for SSE and streaming.
44
43
  - **🌍 Multi-Runtime Support**: Fast and lightweight on Cloudflare, Deno, Bun, Node.js, and beyond.
45
44
  - **🔌 Extendability**: Easily extend functionality with plugins, middleware, and interceptors.
46
- - **🛡️ Reliability**: Well-tested, TypeScript-based, production-ready, and MIT licensed.
47
45
 
48
46
  ## Documentation
49
47
 
@@ -54,14 +52,14 @@ You can find the full documentation [here](https://orpc.unnoq.com).
54
52
  - [@orpc/contract](https://www.npmjs.com/package/@orpc/contract): Build your API contract.
55
53
  - [@orpc/server](https://www.npmjs.com/package/@orpc/server): Build your API or implement API contract.
56
54
  - [@orpc/client](https://www.npmjs.com/package/@orpc/client): Consume your API on the client with type-safety.
57
- - [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with NestJS.
55
+ - [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
56
+ - [@orpc/otel](https://www.npmjs.com/package/@orpc/otel): [OpenTelemetry](https://opentelemetry.io/) integration for observability.
57
+ - [@orpc/nest](https://www.npmjs.com/package/@orpc/nest): Deeply integrate oRPC with [NestJS](https://nestjs.com/).
58
58
  - [@orpc/react](https://www.npmjs.com/package/@orpc/react): Utilities for integrating oRPC with React and React Server Actions.
59
- - [@orpc/react-query](https://www.npmjs.com/package/@orpc/react-query): Integration with [React Query](https://tanstack.com/query/latest/docs/framework/react/overview).
60
- - [@orpc/vue-query](https://www.npmjs.com/package/@orpc/vue-query): Integration with [Vue Query](https://tanstack.com/query/latest/docs/framework/vue/overview).
61
- - [@orpc/solid-query](https://www.npmjs.com/package/@orpc/solid-query): Integration with [Solid Query](https://tanstack.com/query/latest/docs/framework/solid/overview).
62
- - [@orpc/svelte-query](https://www.npmjs.com/package/@orpc/svelte-query): Integration with [Svelte Query](https://tanstack.com/query/latest/docs/framework/svelte/overview).
59
+ - [@orpc/tanstack-query](https://www.npmjs.com/package/@orpc/tanstack-query): [TanStack Query](https://tanstack.com/query/latest) integration.
60
+ - [@orpc/experimental-react-swr](https://www.npmjs.com/package/@orpc/experimental-react-swr): [SWR](https://swr.vercel.app/) integration.
63
61
  - [@orpc/vue-colada](https://www.npmjs.com/package/@orpc/vue-colada): Integration with [Pinia Colada](https://pinia-colada.esm.dev/).
64
- - [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi): Generate OpenAPI specs and handle OpenAPI requests.
62
+ - [@orpc/hey-api](https://www.npmjs.com/package/@orpc/hey-api): [Hey API](https://heyapi.dev/) integration.
65
63
  - [@orpc/zod](https://www.npmjs.com/package/@orpc/zod): More schemas that [Zod](https://zod.dev/) doesn't support yet.
66
64
  - [@orpc/valibot](https://www.npmjs.com/package/@orpc/valibot): OpenAPI spec generation from [Valibot](https://valibot.dev/).
67
65
  - [@orpc/arktype](https://www.npmjs.com/package/@orpc/arktype): OpenAPI spec generation from [ArkType](https://arktype.io/).
package/dist/index.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Promisable } from 'type-fest';
2
- export { IsEqual, IsNever, PartialDeep, Promisable } from 'type-fest';
3
- export { group, guard, mapEntries, mapValues, omit } from 'radash';
2
+ export { IsEqual, IsNever, JsonValue, PartialDeep, Promisable } from 'type-fest';
3
+ import { Tracer, TraceAPI, ContextAPI, PropagationAPI, SpanOptions, Context, Span, AttributeValue, Exception } from '@opentelemetry/api';
4
+ export { group, guard, mapEntries, mapValues, omit, retry, sleep } from 'radash';
4
5
 
5
6
  type MaybeOptionalOptions<TOptions> = Record<never, never> extends TOptions ? [options?: TOptions] : [options: TOptions];
6
7
  declare function resolveMaybeOptionalOptions<T>(rest: MaybeOptionalOptions<T>): T;
@@ -8,18 +9,108 @@ declare function resolveMaybeOptionalOptions<T>(rest: MaybeOptionalOptions<T>):
8
9
  declare function toArray<T>(value: T): T extends readonly any[] ? T : Exclude<T, undefined | null>[];
9
10
  declare function splitInHalf<T>(arr: readonly T[]): [T[], T[]];
10
11
 
12
+ /**
13
+ * Converts Request/Response/Blob/File/.. to a buffer (ArrayBuffer or Uint8Array).
14
+ *
15
+ * Prefers the newer `.bytes` method when available as it more efficient but not widely supported yet.
16
+ */
17
+ declare function readAsBuffer(source: Pick<Blob, 'arrayBuffer' | 'bytes'>): Promise<ArrayBuffer | Uint8Array>;
18
+
11
19
  type AnyFunction = (...args: any[]) => any;
12
20
  declare function once<T extends () => any>(fn: T): () => ReturnType<T>;
13
21
  declare function sequential<A extends any[], R>(fn: (...args: A) => Promise<R>): (...args: A) => Promise<R>;
22
+ /**
23
+ * Executes the callback function after the current call stack has been cleared.
24
+ */
25
+ declare function defer(callback: () => void): void;
14
26
 
15
27
  type OmitChainMethodDeep<T extends object, K extends keyof any> = {
16
28
  [P in keyof Omit<T, K>]: T[P] extends AnyFunction ? ((...args: Parameters<T[P]>) => OmitChainMethodDeep<ReturnType<T[P]>, K>) : T[P];
17
29
  };
18
30
 
31
+ declare const ORPC_NAME = "orpc";
32
+ declare const ORPC_SHARED_PACKAGE_NAME = "@orpc/shared";
33
+ declare const ORPC_SHARED_PACKAGE_VERSION = "0.0.0-next.f5149a8";
34
+
35
+ /**
36
+ * Error thrown when an operation is aborted.
37
+ * Uses the standardized 'AbortError' name for consistency with JavaScript APIs.
38
+ */
39
+ declare class AbortError extends Error {
40
+ constructor(...rest: ConstructorParameters<typeof Error>);
41
+ }
42
+
43
+ interface EventPublisherOptions {
44
+ /**
45
+ * Maximum number of events to buffer for async iterator subscribers.
46
+ *
47
+ * If the buffer exceeds this limit, the oldest event is dropped.
48
+ * This prevents unbounded memory growth if consumers process events slowly.
49
+ *
50
+ * Set to:
51
+ * - `0`: Disable buffering. Events must be consumed before the next one arrives.
52
+ * - `1`: Only keep the latest event. Useful for real-time updates where only the most recent value matters.
53
+ * - `Infinity`: Keep all events. Ensures no data loss, but may lead to high memory usage.
54
+ *
55
+ * @default 100
56
+ */
57
+ maxBufferedEvents?: number;
58
+ }
59
+ interface EventPublisherSubscribeIteratorOptions extends EventPublisherOptions {
60
+ /**
61
+ * Aborts the async iterator. Throws if aborted before or during pulling.
62
+ */
63
+ signal?: AbortSignal | undefined;
64
+ }
65
+ declare class EventPublisher<T extends Record<PropertyKey, any>> {
66
+ #private;
67
+ constructor(options?: EventPublisherOptions);
68
+ get size(): number;
69
+ /**
70
+ * Emits an event and delivers the payload to all subscribed listeners.
71
+ */
72
+ publish<K extends keyof T>(event: K, payload: T[K]): void;
73
+ /**
74
+ * Subscribes to a specific event using a callback function.
75
+ * Returns an unsubscribe function to remove the listener.
76
+ *
77
+ * @example
78
+ * ```ts
79
+ * const unsubscribe = publisher.subscribe('event', (payload) => {
80
+ * console.log(payload)
81
+ * })
82
+ *
83
+ * // Later
84
+ * unsubscribe()
85
+ * ```
86
+ */
87
+ subscribe<K extends keyof T>(event: K, listener: (payload: T[K]) => void): () => void;
88
+ /**
89
+ * Subscribes to a specific event using an async iterator.
90
+ * Useful for `for await...of` loops with optional buffering and abort support.
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * for await (const payload of publisher.subscribe('event', { signal })) {
95
+ * console.log(payload)
96
+ * }
97
+ * ```
98
+ */
99
+ subscribe<K extends keyof T>(event: K, options?: EventPublisherSubscribeIteratorOptions): AsyncGenerator<T[K]> & AsyncIteratorObject<T[K]>;
100
+ }
101
+
19
102
  declare class SequentialIdGenerator {
20
- private nextId;
21
- generate(): number;
103
+ private index;
104
+ generate(): string;
22
105
  }
106
+ /**
107
+ * Compares two sequential IDs.
108
+ * Returns:
109
+ * - negative if `a` < `b`
110
+ * - positive if `a` > `b`
111
+ * - 0 if equal
112
+ */
113
+ declare function compareSequentialIds(a: string, b: string): number;
23
114
 
24
115
  type SetOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
25
116
  type IntersectPick<T, U> = Pick<T, keyof T & keyof U>;
@@ -38,12 +129,13 @@ interface Registry {
38
129
  type ThrowableError = Registry extends {
39
130
  throwableError: infer T;
40
131
  } ? T : Error;
132
+ type InferAsyncIterableYield<T> = T extends AsyncIterable<infer U> ? U : never;
41
133
 
42
134
  type InterceptableOptions = Record<string, any>;
43
- type InterceptorOptions<TOptions extends InterceptableOptions, TResult, TError> = Omit<TOptions, 'next'> & {
44
- next(options?: TOptions): PromiseWithError<TResult, TError>;
135
+ type InterceptorOptions<TOptions extends InterceptableOptions, TResult> = Omit<TOptions, 'next'> & {
136
+ next(options?: TOptions): TResult;
45
137
  };
46
- type Interceptor<TOptions extends InterceptableOptions, TResult, TError> = (options: InterceptorOptions<TOptions, TResult, TError>) => Promisable<TResult>;
138
+ type Interceptor<TOptions extends InterceptableOptions, TResult> = (options: InterceptorOptions<TOptions, TResult>) => TResult;
47
139
  /**
48
140
  * Can used for interceptors or middlewares
49
141
  */
@@ -69,22 +161,121 @@ type OnFinishState<TResult, TError> = [error: TError, data: undefined, isSuccess
69
161
  declare function onFinish<T, TOptions extends {
70
162
  next(): any;
71
163
  }, TRest extends any[]>(callback: NoInfer<(state: OnFinishState<Awaited<ReturnType<TOptions['next']>>, ReturnType<TOptions['next']> extends PromiseWithError<any, infer E> ? E : ThrowableError>, options: TOptions, ...rest: TRest) => Promisable<void>>): (options: TOptions, ...rest: TRest) => T | Promise<Awaited<ReturnType<TOptions['next']>>>;
72
- declare function intercept<TOptions extends InterceptableOptions, TResult, TError>(interceptors: Interceptor<TOptions, TResult, TError>[], options: NoInfer<TOptions>, main: NoInfer<(options: TOptions) => Promisable<TResult>>): Promise<TResult>;
164
+ declare function intercept<TOptions extends InterceptableOptions, TResult>(interceptors: Interceptor<TOptions, TResult>[], options: NoInfer<TOptions>, main: NoInfer<(options: TOptions) => TResult>): TResult;
165
+
166
+ /**
167
+ * Only import types from @opentelemetry/api to avoid runtime dependencies.
168
+ */
169
+
170
+ interface OtelConfig {
171
+ tracer: Tracer;
172
+ trace: TraceAPI;
173
+ context: ContextAPI;
174
+ propagation: PropagationAPI;
175
+ }
176
+ /**
177
+ * Sets the global OpenTelemetry config.
178
+ * Call this once at app startup. Use `undefined` to disable tracing.
179
+ */
180
+ declare function setGlobalOtelConfig(config: OtelConfig | undefined): void;
181
+ /**
182
+ * Gets the global OpenTelemetry config.
183
+ * Returns `undefined` if OpenTelemetry is not configured, initialized, or enabled.
184
+ */
185
+ declare function getGlobalOtelConfig(): OtelConfig | undefined;
186
+ /**
187
+ * Starts a new OpenTelemetry span with the given name and options.
188
+ *
189
+ * @returns The new span, or `undefined` if no tracer is set.
190
+ */
191
+ declare function startSpan(name: string, options?: SpanOptions, context?: Context): Span | undefined;
192
+ interface SetSpanErrorOptions {
193
+ /**
194
+ * Span error status is not set if error is due to cancellation by the signal.
195
+ */
196
+ signal?: AbortSignal;
197
+ }
198
+ /**
199
+ * Records and sets the error status on the given span.
200
+ * If the span is `undefined`, it does nothing.
201
+ */
202
+ declare function setSpanError(span: Span | undefined, error: unknown, options?: SetSpanErrorOptions): void;
203
+ declare function setSpanAttribute(span: Span | undefined, key: string, value: AttributeValue | undefined): void;
204
+ /**
205
+ * Converts an error to an OpenTelemetry Exception.
206
+ */
207
+ declare function toOtelException(error: unknown): Exclude<Exception, string>;
208
+ /**
209
+ * Converts a value to a string suitable for OpenTelemetry span attributes.
210
+ */
211
+ declare function toSpanAttributeValue(data: unknown): string;
212
+ interface RunWithSpanOptions extends SpanOptions, SetSpanErrorOptions {
213
+ /**
214
+ * The name of the span to create.
215
+ */
216
+ name: string;
217
+ /**
218
+ * Context to use for the span.
219
+ */
220
+ context?: Context;
221
+ }
222
+ /**
223
+ * Runs a function within the context of a new OpenTelemetry span.
224
+ * The span is ended automatically, and errors are recorded to the span.
225
+ */
226
+ declare function runWithSpan<T>({ name, context, ...options }: RunWithSpanOptions, fn: (span?: Span) => Promisable<T>): Promise<T>;
227
+ /**
228
+ * Runs a function within the context of an existing OpenTelemetry span.
229
+ */
230
+ declare function runInSpanContext<T>(span: Span | undefined, fn: () => Promisable<T>): Promise<T>;
73
231
 
74
232
  declare function isAsyncIteratorObject(maybe: unknown): maybe is AsyncIteratorObject<any, any, any>;
75
- interface CreateAsyncIteratorObjectCleanupFn {
233
+ interface AsyncIteratorClassNextFn<T, TReturn> {
234
+ (): Promise<IteratorResult<T, TReturn>>;
235
+ }
236
+ interface AsyncIteratorClassCleanupFn {
76
237
  (reason: 'return' | 'throw' | 'next' | 'dispose'): Promise<void>;
77
238
  }
78
- declare function createAsyncIteratorObject<T, TReturn, TNext>(next: () => Promise<IteratorResult<T, TReturn>>, cleanup: CreateAsyncIteratorObjectCleanupFn): AsyncIteratorObject<T, TReturn, TNext> & AsyncGenerator<T, TReturn, TNext>;
239
+ declare const fallbackAsyncDisposeSymbol: unique symbol;
240
+ declare const asyncDisposeSymbol: typeof Symbol extends {
241
+ asyncDispose: infer T;
242
+ } ? T : typeof fallbackAsyncDisposeSymbol;
243
+ declare class AsyncIteratorClass<T, TReturn = unknown, TNext = unknown> implements AsyncIteratorObject<T, TReturn, TNext>, AsyncGenerator<T, TReturn, TNext> {
244
+ #private;
245
+ constructor(next: AsyncIteratorClassNextFn<T, TReturn>, cleanup: AsyncIteratorClassCleanupFn);
246
+ next(): Promise<IteratorResult<T, TReturn>>;
247
+ return(value?: any): Promise<IteratorResult<T, TReturn>>;
248
+ throw(err: any): Promise<IteratorResult<T, TReturn>>;
249
+ /**
250
+ * asyncDispose symbol only available in esnext, we should fallback to Symbol.for('asyncDispose')
251
+ */
252
+ [asyncDisposeSymbol](): Promise<void>;
253
+ [Symbol.asyncIterator](): this;
254
+ }
255
+ declare function replicateAsyncIterator<T, TReturn, TNext>(source: AsyncIterator<T, TReturn, TNext>, count: number): (AsyncIteratorClass<T, TReturn, TNext>)[];
256
+ interface AsyncIteratorWithSpanOptions extends SetSpanErrorOptions {
257
+ /**
258
+ * The name of the span to create.
259
+ */
260
+ name: string;
261
+ }
262
+ declare function asyncIteratorWithSpan<T, TReturn, TNext>({ name, ...options }: AsyncIteratorWithSpanOptions, iterator: AsyncIterator<T, TReturn, TNext>): AsyncIteratorClass<T, TReturn, TNext>;
79
263
 
80
264
  declare function parseEmptyableJSON(text: string | null | undefined): unknown;
81
- declare function stringifyJSON<T>(value: T): undefined extends T ? undefined | string : string;
265
+ declare function stringifyJSON<T>(value: T | {
266
+ toJSON(): T;
267
+ }): undefined extends T ? undefined | string : string;
82
268
 
83
269
  type Segment = string | number;
84
270
  declare function findDeepMatches(check: (value: unknown) => boolean, payload: unknown, segments?: Segment[], maps?: Segment[][], values?: unknown[]): {
85
271
  maps: Segment[][];
86
272
  values: unknown[];
87
273
  };
274
+ /**
275
+ * Get constructor of the value
276
+ *
277
+ */
278
+ declare function getConstructor(value: unknown): Function | null | undefined;
88
279
  /**
89
280
  * Check if the value is an object even it created by `Object.create(null)` or more tricky way.
90
281
  */
@@ -94,28 +285,70 @@ declare function isObject(value: unknown): value is Record<PropertyKey, unknown>
94
285
  */
95
286
  declare function isTypescriptObject(value: unknown): value is object & Record<PropertyKey, unknown>;
96
287
  declare function clone<T>(value: T): T;
97
- declare function get(object: object, path: readonly string[]): unknown;
288
+ declare function get(object: unknown, path: readonly PropertyKey[]): unknown;
98
289
  declare function isPropertyKey(value: unknown): value is PropertyKey;
290
+ declare const NullProtoObj: ({
291
+ new <T extends Record<PropertyKey, unknown>>(): T;
292
+ });
293
+
294
+ type Value<T, TArgs extends any[] = []> = T | ((...args: TArgs) => T);
295
+ declare function value<T, TArgs extends any[]>(value: Value<T, TArgs>, ...args: NoInfer<TArgs>): T extends Value<infer U, any> ? U : never;
296
+ /**
297
+ * Returns the value if it is defined, otherwise returns the fallback
298
+ */
299
+ declare function fallback<T>(value: T | undefined, fallback: T): T;
300
+
301
+ /**
302
+ * Prevents objects from being awaitable by intercepting the `then` method
303
+ * when called by the native await mechanism. This is useful for preventing
304
+ * accidental awaiting of objects that aren't meant to be promises.
305
+ */
306
+ declare function preventNativeAwait<T extends object>(target: T): T;
307
+ /**
308
+ * Create a proxy that overlays one object (`overlay`) on top of another (`target`).
309
+ *
310
+ * - Properties from `overlay` take precedence.
311
+ * - Properties not in `overlay` fall back to `target`.
312
+ * - Methods from either object are bound to `overlay` so `this` is consistent.
313
+ *
314
+ * Useful when you want to override or extend behavior without fully copying/merging objects.
315
+ */
316
+ declare function overlayProxy<T extends object, U extends object>(target: Value<T>, partial: U): U & Omit<T, keyof U>;
99
317
 
100
318
  interface AsyncIdQueueCloseOptions {
101
- id?: number;
102
- reason?: Error;
319
+ id?: string;
320
+ reason?: unknown;
103
321
  }
104
322
  declare class AsyncIdQueue<T> {
105
323
  private readonly openIds;
106
- private readonly items;
107
- private readonly pendingPulls;
324
+ private readonly queues;
325
+ private readonly waiters;
108
326
  get length(): number;
109
- open(id: number): void;
110
- isOpen(id: number): boolean;
111
- push(id: number, item: T): void;
112
- pull(id: number): Promise<T>;
327
+ get waiterIds(): string[];
328
+ hasBufferedItems(id: string): boolean;
329
+ open(id: string): void;
330
+ isOpen(id: string): boolean;
331
+ push(id: string, item: T): void;
332
+ pull(id: string): Promise<T>;
113
333
  close({ id, reason }?: AsyncIdQueueCloseOptions): void;
114
- assertOpen(id: number): void;
334
+ assertOpen(id: string): void;
115
335
  }
116
336
 
117
- type Value<T, TArgs extends any[] = []> = T | ((...args: TArgs) => Promisable<T>);
118
- declare function value<T, TArgs extends any[]>(value: Value<T, TArgs>, ...args: NoInfer<TArgs>): Promise<T extends Value<infer U, any> ? U : never>;
337
+ /**
338
+ * Converts a `ReadableStream` into an `AsyncIteratorClass`.
339
+ */
340
+ declare function streamToAsyncIteratorClass<T>(stream: ReadableStream<T>): AsyncIteratorClass<T>;
341
+ /**
342
+ * Converts an `AsyncIterator` into a `ReadableStream`.
343
+ */
344
+ declare function asyncIteratorToStream<T>(iterator: AsyncIterator<T>): ReadableStream<T>;
345
+ /**
346
+ * Converts an `AsyncIterator` into a `ReadableStream`, ensuring that
347
+ * all emitted object values are *unproxied* before enqueuing.
348
+ */
349
+ declare function asyncIteratorToUnproxiedDataStream<T>(iterator: AsyncIterator<T>): ReadableStream<T>;
350
+
351
+ declare function tryDecodeURIComponent(value: string): string;
119
352
 
120
- export { AsyncIdQueue, SequentialIdGenerator, clone, createAsyncIteratorObject, findDeepMatches, get, intercept, isAsyncIteratorObject, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, parseEmptyableJSON, resolveMaybeOptionalOptions, sequential, splitInHalf, stringifyJSON, toArray, value };
121
- export type { AnyFunction, AsyncIdQueueCloseOptions, CreateAsyncIteratorObjectCleanupFn, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, MaybeOptionalOptions, OmitChainMethodDeep, OnFinishState, PromiseWithError, Registry, Segment, SetOptional, ThrowableError, Value };
353
+ export { AbortError, AsyncIdQueue, AsyncIteratorClass, EventPublisher, NullProtoObj, ORPC_NAME, ORPC_SHARED_PACKAGE_NAME, ORPC_SHARED_PACKAGE_VERSION, SequentialIdGenerator, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, asyncIteratorWithSpan, clone, compareSequentialIds, defer, fallback, findDeepMatches, get, getConstructor, getGlobalOtelConfig, intercept, isAsyncIteratorObject, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, overlayProxy, parseEmptyableJSON, preventNativeAwait, readAsBuffer, replicateAsyncIterator, resolveMaybeOptionalOptions, runInSpanContext, runWithSpan, sequential, setGlobalOtelConfig, setSpanAttribute, setSpanError, splitInHalf, startSpan, streamToAsyncIteratorClass, stringifyJSON, toArray, toOtelException, toSpanAttributeValue, tryDecodeURIComponent, value };
354
+ export type { AnyFunction, AsyncIdQueueCloseOptions, AsyncIteratorClassCleanupFn, AsyncIteratorClassNextFn, AsyncIteratorWithSpanOptions, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, InferAsyncIterableYield, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, MaybeOptionalOptions, OmitChainMethodDeep, OnFinishState, OtelConfig, PromiseWithError, Registry, RunWithSpanOptions, Segment, SetOptional, SetSpanErrorOptions, ThrowableError, Value };