@orpc/shared 2.0.0-beta.23 → 2.0.0-beta.24

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
@@ -44,6 +44,7 @@ You can read the documentation [here](https://orpc.dev).
44
44
 
45
45
  - [@orpc/publisher](https://www.npmjs.com/package/@orpc/publisher): Pub/Sub with memory, Redis, and Upstash adapters.
46
46
  - [@orpc/ratelimit](https://www.npmjs.com/package/@orpc/ratelimit): Rate limiting with memory, Redis, and Upstash adapters.
47
+ - [@orpc/hibernation](https://www.npmjs.com/package/@orpc/hibernation): Leverage Hibernation APIs like [Cloudflare's Hibernation WebSocket](https://developers.cloudflare.com/durable-objects/best-practices/websockets/#durable-objects-hibernation-websocket-api).
47
48
  - [@orpc/json-schema](https://www.npmjs.com/package/@orpc/json-schema): Smart coercion for OpenAPI requests.
48
49
 
49
50
  **Framework & ecosystem integrations**
@@ -114,6 +115,7 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
114
115
  </tr>
115
116
  <tr>
116
117
  <td align="center"><a href="https://github.com/itigoore01?ref=orpc" target="_blank" rel="noopener" title="shota"><img src="https://avatars.githubusercontent.com/u/11831107?u=c976a6dc7e055eb026304c46c99100ed22b0c8e0&amp;v=4" width="139" alt="shota"/><br />shota</a></td>
118
+ <td align="center"><a href="https://github.com/ellis-driscoll?ref=orpc" target="_blank" rel="noopener" title="Ellis Driscoll"><img src="https://avatars.githubusercontent.com/u/70685966?u=c5f95bc33b5991d9744abe00052542e4a2ed3cb9&amp;v=4" width="139" alt="Ellis Driscoll"/><br />Ellis Driscoll</a></td>
117
119
  </tr>
118
120
  </table>
119
121
 
@@ -139,8 +141,9 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
139
141
  <td align="center"><a href="https://github.com/mr-kelly?ref=orpc" target="_blank" rel="noopener" title="Kelly Peilin Chan"><img src="https://avatars.githubusercontent.com/u/520852?u=6b0f7105f694e7b5cacf410a3f04c7044b469dc8&amp;v=4" width="119" alt="Kelly Peilin Chan"/><br />Kelly Peilin Chan</a></td>
140
142
  </tr>
141
143
  <tr>
144
+ <td align="center"><a href="https://github.com/guyariely?ref=orpc" target="_blank" rel="noopener" title="Guy Ariely"><img src="https://avatars.githubusercontent.com/u/42813496?u=edb6b7f563bf28e160a290832e7da57c0506f8ca&amp;v=4" width="119" alt="Guy Ariely"/><br />Guy Ariely</a></td>
142
145
  <td align="center"><a href="https://github.com/piscis?ref=orpc" target="_blank" rel="noopener" title="Alex"><img src="https://avatars.githubusercontent.com/u/326163?u=b245f368bd940cf51d08c0b6bf55f8257f359437&amp;v=4" width="119" alt="Alex"/><br />Alex</a></td>
143
- <td align="center"><a href="https://github.com/finom?ref=orpc" target="_blank" rel="noopener" title="Andrey Gubanov"><img src="https://avatars.githubusercontent.com/u/1082083?u=29e91400dbd4a9c217048a8f59562c4f740498e6&amp;v=4" width="119" alt="Andrey Gubanov"/><br />Andrey Gubanov</a></td>
146
+ <td align="center"><a href="https://github.com/finom?ref=orpc" target="_blank" rel="noopener" title="Andrey Gubanov"><img src="https://avatars.githubusercontent.com/u/1082083?u=c5f2daf7ebece498e85c83367bb37b4e10e2649d&amp;v=4" width="119" alt="Andrey Gubanov"/><br />Andrey Gubanov</a></td>
144
147
  </tr>
145
148
  </table>
146
149
 
package/dist/index.d.mts CHANGED
@@ -91,7 +91,10 @@ declare function onSuccess<T, TOptions extends {
91
91
  next: () => any;
92
92
  }, TRest extends any[]>(callback: NoInfer<(result: Awaited<ReturnType<TOptions['next']>>, options: TOptions, ...rest: TRest) => Promisable<void>>): (options: TOptions, ...rest: TRest) => T | Promise<Awaited<ReturnType<TOptions['next']>>>;
93
93
  /**
94
- * Can used for interceptors or middlewares
94
+ * Creates an interceptor or middleware that invokes a callback whenever an error
95
+ * is thrown. The error is rethrown after the callback completes.
96
+ *
97
+ * @see {@link https://orpc.dev/docs/adapters/fetch-api | Fetch API Adapter}
95
98
  */
96
99
  declare function onError<T, TOptions extends {
97
100
  next: () => any;
@@ -194,21 +197,26 @@ interface ConsumeAsyncIteratorOptions<T, TReturn, TError> {
194
197
  /**
195
198
  * Called once AsyncIteratorObject is done
196
199
  *
197
- * @info If iterator is canceled, `undefined` can be passed on success
200
+ * @remarks
201
+ * **Note**: If iterator is canceled, `undefined` can be passed on success
198
202
  */
199
203
  onSuccess?: (value: TReturn | undefined) => void;
200
204
  /**
201
205
  * Called once after onError or onSuccess
202
206
  *
203
- * @info If iterator is canceled, `undefined` can be passed on success
207
+ * @remarks
208
+ * **Note**: If iterator is canceled, `undefined` can be passed on success
204
209
  */
205
210
  onFinish?: (state: [error: TError, data: undefined, isSuccess: false] | [error: null, data: TReturn | undefined, isSuccess: true]) => void;
206
211
  }
207
212
  /**
208
- * Consumes an AsyncIteratorObject with lifecycle callbacks
213
+ * Consumes an AsyncIteratorObject with lifecycle callbacks.
214
+ *
215
+ * @remarks
216
+ * **Warning**: If no `onError` or `onFinish` is provided, errors are thrown into the unhandled rejection channel.
209
217
  *
210
- * @warning If no `onError` or `onFinish` is provided, error will be thrown into unhandled rejection channel.
211
- * @return unsubscribe callback
218
+ * @returns An unsubscribe callback that stops consuming and cleans up the iterator.
219
+ * @see {@link https://orpc.dev/docs/client/async-iterator-object#using-consumeasynciterator | AsyncIteratorObject in Client - Using consumeAsyncIterator}
212
220
  */
213
221
  declare function consumeAsyncIterator<T, TReturn, TError = ThrowableError>(iterator: AsyncIterator<T, TReturn> | PromiseWithError<AsyncIterator<T, TReturn>, TError>, options: ConsumeAsyncIteratorOptions<T, TReturn, TError | ThrowableError>): () => Promise<void>;
214
222
 
@@ -222,6 +230,7 @@ declare function findDeepMatches(check: (value: unknown) => boolean, payload: un
222
230
  *
223
231
  */
224
232
  declare function getConstructor(value: unknown): Function | null | undefined;
233
+ declare function getConstructors(value: unknown): Generator<Function>;
225
234
  /**
226
235
  * Checks whether a value is a plain object, including objects created with
227
236
  * `Object.create(null)`.
@@ -245,7 +254,9 @@ declare const NullProtoObj: ({
245
254
  * Methods are collected from both the object itself and its prototype chain
246
255
  * (excluding `Object.prototype` and the `constructor` property).
247
256
  */
248
- declare function bindMethods<T extends object>(obj: T): Pick<T, {
257
+ declare function bindMethods<T extends object>(obj: T, options?: {
258
+ unbound?: (keyof T)[];
259
+ }): Pick<T, {
249
260
  [K in keyof T]: T[K] extends AnyFunction ? K : never;
250
261
  }[keyof T]>;
251
262
 
@@ -345,6 +356,8 @@ declare function wrapReadableStream<T, TMapped = T>(stream: ReadableStream<T>, {
345
356
  declare function traceReadableStream<T>(options: StartSpanOptions | string, stream: ReadableStream<T>): ReadableStream<T>;
346
357
  /**
347
358
  * Converts a {@link ReadableStream} into an {@link AsyncIteratorClass}.
359
+ *
360
+ * @see {@link https://orpc.dev/docs/integrations/ai-sdk | AI SDK Integration}
348
361
  */
349
362
  declare function streamToAsyncIteratorObject<T>(stream: ReadableStream<T>, { signal }?: {
350
363
  signal?: undefined | AbortSignal;
@@ -356,10 +369,12 @@ declare function asyncIteratorToStream<T>(iterator: AsyncIterator<T>): ReadableS
356
369
  /**
357
370
  * Converts an `AsyncIterator` into a `ReadableStream`, ensuring that
358
371
  * all emitted object values are *unproxied* before enqueuing.
372
+ *
373
+ * @see {@link https://orpc.dev/docs/integrations/ai-sdk | AI SDK Integration}
359
374
  */
360
375
  declare function asyncIteratorToUnproxiedDataStream<T>(iterator: AsyncIterator<T>): ReadableStream<T>;
361
376
 
362
377
  declare function tryDecodeURIComponent(value: string): string;
363
378
 
364
- export { AsyncIdQueue, NullProtoObj, ORPC_NAME, allAbortSignal, anyAbortSignal, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, bindMethods, clone, compareSequentialIds, consumeAsyncIterator, defer, findDeepMatches, get, getConstructor, getOpenTelemetryConfig, intercept, isAbortError, isCompressibleContentType, isDeepEqual, isPlainObject, isPropertyKey, loadBytes, matchesHttpPath, matchesHttpPathPrefix, mergeHttpPath, normalizeHttpPath, omit, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, once, override, pathToHttpPath, promiseWithResolvers, recordSpanError, replicateAsyncIterator, replicateReadableStream, resolveMaybeOptionalOptions, runInSpanContext, runWithSignal, runWithSpan, set, setOpenTelemetryConfig, setSpanAttributeIfDefined, sortPlugins, splitInHalf, startSpan, streamToAsyncIteratorObject, toOtelException, toSpanAttributeValue, toStringOrBytes, traceAsyncIterator, traceReadableStream, tryDecodeURIComponent, tryOrUndefined, value, wrapAsyncIterator, wrapReadableStream };
379
+ export { AsyncIdQueue, NullProtoObj, ORPC_NAME, allAbortSignal, anyAbortSignal, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, bindMethods, clone, compareSequentialIds, consumeAsyncIterator, defer, findDeepMatches, get, getConstructor, getConstructors, getOpenTelemetryConfig, intercept, isAbortError, isCompressibleContentType, isDeepEqual, isPlainObject, isPropertyKey, loadBytes, matchesHttpPath, matchesHttpPathPrefix, mergeHttpPath, normalizeHttpPath, omit, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, once, override, pathToHttpPath, promiseWithResolvers, recordSpanError, replicateAsyncIterator, replicateReadableStream, resolveMaybeOptionalOptions, runInSpanContext, runWithSignal, runWithSpan, set, setOpenTelemetryConfig, setSpanAttributeIfDefined, sortPlugins, splitInHalf, startSpan, streamToAsyncIteratorObject, toOtelException, toSpanAttributeValue, toStringOrBytes, traceAsyncIterator, traceReadableStream, tryDecodeURIComponent, tryOrUndefined, value, wrapAsyncIterator, wrapReadableStream };
365
380
  export type { AnyFunction, AsyncIdQueueCloseOptions, ConsumeAsyncIteratorOptions, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, MaybeOptionalOptions, OnFinishState, OpenTelemetryConfig, OrderablePlugin, PromiseWithError, Public, ReadableStreamReadResult, Registry, RunWithSpanOptions, Segment, StartSpanOptions, ThrowableError, Value, WrapAsyncIteratorOptions, WrapReadableStreamOptions };
package/dist/index.d.ts CHANGED
@@ -91,7 +91,10 @@ declare function onSuccess<T, TOptions extends {
91
91
  next: () => any;
92
92
  }, TRest extends any[]>(callback: NoInfer<(result: Awaited<ReturnType<TOptions['next']>>, options: TOptions, ...rest: TRest) => Promisable<void>>): (options: TOptions, ...rest: TRest) => T | Promise<Awaited<ReturnType<TOptions['next']>>>;
93
93
  /**
94
- * Can used for interceptors or middlewares
94
+ * Creates an interceptor or middleware that invokes a callback whenever an error
95
+ * is thrown. The error is rethrown after the callback completes.
96
+ *
97
+ * @see {@link https://orpc.dev/docs/adapters/fetch-api | Fetch API Adapter}
95
98
  */
96
99
  declare function onError<T, TOptions extends {
97
100
  next: () => any;
@@ -194,21 +197,26 @@ interface ConsumeAsyncIteratorOptions<T, TReturn, TError> {
194
197
  /**
195
198
  * Called once AsyncIteratorObject is done
196
199
  *
197
- * @info If iterator is canceled, `undefined` can be passed on success
200
+ * @remarks
201
+ * **Note**: If iterator is canceled, `undefined` can be passed on success
198
202
  */
199
203
  onSuccess?: (value: TReturn | undefined) => void;
200
204
  /**
201
205
  * Called once after onError or onSuccess
202
206
  *
203
- * @info If iterator is canceled, `undefined` can be passed on success
207
+ * @remarks
208
+ * **Note**: If iterator is canceled, `undefined` can be passed on success
204
209
  */
205
210
  onFinish?: (state: [error: TError, data: undefined, isSuccess: false] | [error: null, data: TReturn | undefined, isSuccess: true]) => void;
206
211
  }
207
212
  /**
208
- * Consumes an AsyncIteratorObject with lifecycle callbacks
213
+ * Consumes an AsyncIteratorObject with lifecycle callbacks.
214
+ *
215
+ * @remarks
216
+ * **Warning**: If no `onError` or `onFinish` is provided, errors are thrown into the unhandled rejection channel.
209
217
  *
210
- * @warning If no `onError` or `onFinish` is provided, error will be thrown into unhandled rejection channel.
211
- * @return unsubscribe callback
218
+ * @returns An unsubscribe callback that stops consuming and cleans up the iterator.
219
+ * @see {@link https://orpc.dev/docs/client/async-iterator-object#using-consumeasynciterator | AsyncIteratorObject in Client - Using consumeAsyncIterator}
212
220
  */
213
221
  declare function consumeAsyncIterator<T, TReturn, TError = ThrowableError>(iterator: AsyncIterator<T, TReturn> | PromiseWithError<AsyncIterator<T, TReturn>, TError>, options: ConsumeAsyncIteratorOptions<T, TReturn, TError | ThrowableError>): () => Promise<void>;
214
222
 
@@ -222,6 +230,7 @@ declare function findDeepMatches(check: (value: unknown) => boolean, payload: un
222
230
  *
223
231
  */
224
232
  declare function getConstructor(value: unknown): Function | null | undefined;
233
+ declare function getConstructors(value: unknown): Generator<Function>;
225
234
  /**
226
235
  * Checks whether a value is a plain object, including objects created with
227
236
  * `Object.create(null)`.
@@ -245,7 +254,9 @@ declare const NullProtoObj: ({
245
254
  * Methods are collected from both the object itself and its prototype chain
246
255
  * (excluding `Object.prototype` and the `constructor` property).
247
256
  */
248
- declare function bindMethods<T extends object>(obj: T): Pick<T, {
257
+ declare function bindMethods<T extends object>(obj: T, options?: {
258
+ unbound?: (keyof T)[];
259
+ }): Pick<T, {
249
260
  [K in keyof T]: T[K] extends AnyFunction ? K : never;
250
261
  }[keyof T]>;
251
262
 
@@ -345,6 +356,8 @@ declare function wrapReadableStream<T, TMapped = T>(stream: ReadableStream<T>, {
345
356
  declare function traceReadableStream<T>(options: StartSpanOptions | string, stream: ReadableStream<T>): ReadableStream<T>;
346
357
  /**
347
358
  * Converts a {@link ReadableStream} into an {@link AsyncIteratorClass}.
359
+ *
360
+ * @see {@link https://orpc.dev/docs/integrations/ai-sdk | AI SDK Integration}
348
361
  */
349
362
  declare function streamToAsyncIteratorObject<T>(stream: ReadableStream<T>, { signal }?: {
350
363
  signal?: undefined | AbortSignal;
@@ -356,10 +369,12 @@ declare function asyncIteratorToStream<T>(iterator: AsyncIterator<T>): ReadableS
356
369
  /**
357
370
  * Converts an `AsyncIterator` into a `ReadableStream`, ensuring that
358
371
  * all emitted object values are *unproxied* before enqueuing.
372
+ *
373
+ * @see {@link https://orpc.dev/docs/integrations/ai-sdk | AI SDK Integration}
359
374
  */
360
375
  declare function asyncIteratorToUnproxiedDataStream<T>(iterator: AsyncIterator<T>): ReadableStream<T>;
361
376
 
362
377
  declare function tryDecodeURIComponent(value: string): string;
363
378
 
364
- export { AsyncIdQueue, NullProtoObj, ORPC_NAME, allAbortSignal, anyAbortSignal, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, bindMethods, clone, compareSequentialIds, consumeAsyncIterator, defer, findDeepMatches, get, getConstructor, getOpenTelemetryConfig, intercept, isAbortError, isCompressibleContentType, isDeepEqual, isPlainObject, isPropertyKey, loadBytes, matchesHttpPath, matchesHttpPathPrefix, mergeHttpPath, normalizeHttpPath, omit, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, once, override, pathToHttpPath, promiseWithResolvers, recordSpanError, replicateAsyncIterator, replicateReadableStream, resolveMaybeOptionalOptions, runInSpanContext, runWithSignal, runWithSpan, set, setOpenTelemetryConfig, setSpanAttributeIfDefined, sortPlugins, splitInHalf, startSpan, streamToAsyncIteratorObject, toOtelException, toSpanAttributeValue, toStringOrBytes, traceAsyncIterator, traceReadableStream, tryDecodeURIComponent, tryOrUndefined, value, wrapAsyncIterator, wrapReadableStream };
379
+ export { AsyncIdQueue, NullProtoObj, ORPC_NAME, allAbortSignal, anyAbortSignal, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, bindMethods, clone, compareSequentialIds, consumeAsyncIterator, defer, findDeepMatches, get, getConstructor, getConstructors, getOpenTelemetryConfig, intercept, isAbortError, isCompressibleContentType, isDeepEqual, isPlainObject, isPropertyKey, loadBytes, matchesHttpPath, matchesHttpPathPrefix, mergeHttpPath, normalizeHttpPath, omit, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, once, override, pathToHttpPath, promiseWithResolvers, recordSpanError, replicateAsyncIterator, replicateReadableStream, resolveMaybeOptionalOptions, runInSpanContext, runWithSignal, runWithSpan, set, setOpenTelemetryConfig, setSpanAttributeIfDefined, sortPlugins, splitInHalf, startSpan, streamToAsyncIteratorObject, toOtelException, toSpanAttributeValue, toStringOrBytes, traceAsyncIterator, traceReadableStream, tryDecodeURIComponent, tryOrUndefined, value, wrapAsyncIterator, wrapReadableStream };
365
380
  export type { AnyFunction, AsyncIdQueueCloseOptions, ConsumeAsyncIteratorOptions, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, MaybeOptionalOptions, OnFinishState, OpenTelemetryConfig, OrderablePlugin, PromiseWithError, Public, ReadableStreamReadResult, Registry, RunWithSpanOptions, Segment, StartSpanOptions, ThrowableError, Value, WrapAsyncIteratorOptions, WrapReadableStreamOptions };
package/dist/index.mjs CHANGED
@@ -535,6 +535,18 @@ function getConstructor(value) {
535
535
  }
536
536
  return Object.getPrototypeOf(value)?.constructor;
537
537
  }
538
+ function* getConstructors(value) {
539
+ if (!isTypescriptObject(value)) {
540
+ return;
541
+ }
542
+ let proto = Object.getPrototypeOf(value);
543
+ while (proto != null) {
544
+ if (proto.constructor) {
545
+ yield proto.constructor;
546
+ }
547
+ proto = Object.getPrototypeOf(proto);
548
+ }
549
+ }
538
550
  function isPlainObject(value) {
539
551
  if (!value || typeof value !== "object") {
540
552
  return false;
@@ -609,7 +621,8 @@ const NullProtoObj = /* @__PURE__ */ (() => {
609
621
  Object.freeze(e.prototype);
610
622
  return e;
611
623
  })();
612
- function bindMethods(obj) {
624
+ function bindMethods(obj, options = {}) {
625
+ const unbound = new Set(options.unbound);
613
626
  const methods = new NullProtoObj();
614
627
  let current = obj;
615
628
  while (current && current !== Object.prototype) {
@@ -617,18 +630,18 @@ function bindMethods(obj) {
617
630
  if (key === "constructor" || key in methods) {
618
631
  continue;
619
632
  }
620
- const val = obj[key];
633
+ const val = getOrBind(obj, key, { bind: !unbound.has(key) });
621
634
  if (typeof val === "function") {
622
- methods[key] = val.bind(obj);
635
+ methods[key] = val;
623
636
  }
624
637
  }
625
638
  for (const sym of Object.getOwnPropertySymbols(current)) {
626
639
  if (sym in methods) {
627
640
  continue;
628
641
  }
629
- const val = obj[sym];
642
+ const val = getOrBind(obj, sym, { bind: !unbound.has(sym) });
630
643
  if (typeof val === "function") {
631
- methods[sym] = val.bind(obj);
644
+ methods[sym] = val;
632
645
  }
633
646
  }
634
647
  current = Object.getPrototypeOf(current);
@@ -1005,4 +1018,4 @@ async function runWithSignal(signal, fn) {
1005
1018
  }
1006
1019
  }
1007
1020
 
1008
- export { AsyncIdQueue, NullProtoObj, ORPC_NAME, allAbortSignal, anyAbortSignal, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, bindMethods, clone, compareSequentialIds, consumeAsyncIterator, defer, findDeepMatches, get, getConstructor, getOpenTelemetryConfig, intercept, isAbortError, isCompressibleContentType, isDeepEqual, isPlainObject, isPropertyKey, loadBytes, matchesHttpPath, matchesHttpPathPrefix, mergeHttpPath, normalizeHttpPath, omit, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, once, override, pathToHttpPath, promiseWithResolvers, recordSpanError, replicateAsyncIterator, replicateReadableStream, resolveMaybeOptionalOptions, runInSpanContext, runWithSignal, runWithSpan, set, setOpenTelemetryConfig, setSpanAttributeIfDefined, sortPlugins, splitInHalf, startSpan, streamToAsyncIteratorObject, toOtelException, toSpanAttributeValue, toStringOrBytes, traceAsyncIterator, traceReadableStream, tryDecodeURIComponent, tryOrUndefined, value, wrapAsyncIterator, wrapReadableStream };
1021
+ export { AsyncIdQueue, NullProtoObj, ORPC_NAME, allAbortSignal, anyAbortSignal, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, bindMethods, clone, compareSequentialIds, consumeAsyncIterator, defer, findDeepMatches, get, getConstructor, getConstructors, getOpenTelemetryConfig, intercept, isAbortError, isCompressibleContentType, isDeepEqual, isPlainObject, isPropertyKey, loadBytes, matchesHttpPath, matchesHttpPathPrefix, mergeHttpPath, normalizeHttpPath, omit, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, once, override, pathToHttpPath, promiseWithResolvers, recordSpanError, replicateAsyncIterator, replicateReadableStream, resolveMaybeOptionalOptions, runInSpanContext, runWithSignal, runWithSpan, set, setOpenTelemetryConfig, setSpanAttributeIfDefined, sortPlugins, splitInHalf, startSpan, streamToAsyncIteratorObject, toOtelException, toSpanAttributeValue, toStringOrBytes, traceAsyncIterator, traceReadableStream, tryDecodeURIComponent, tryOrUndefined, value, wrapAsyncIterator, wrapReadableStream };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/shared",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.23",
4
+ "version": "2.0.0-beta.24",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.dev",
7
7
  "repository": {
@@ -33,7 +33,7 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@standardserver/shared": "^0.6.0",
36
+ "@standardserver/shared": "^0.7.1",
37
37
  "radash": "^12.1.1",
38
38
  "type-fest": "^5.3.1"
39
39
  },