@orpc/client 1.14.4 → 1.14.5

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
@@ -175,6 +175,9 @@ If you find oRPC valuable and would like to support its development, you can do
175
175
  <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="104" alt="Alex"/><br />Alex</a></td>
176
176
  <td align="center"><a href="https://github.com/nattstack?ref=orpc" target="_blank" rel="noopener" title="nattstack"><img src="https://avatars.githubusercontent.com/u/31426677?u=fa9dbb8b3e66eb0ea3c88db5dc07f31c8c5418fe&amp;v=4" width="104" alt="nattstack"/><br />nattstack</a></td>
177
177
  </tr>
178
+ <tr>
179
+ <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="104" alt="Andrey Gubanov"/><br />Andrey Gubanov</a></td>
180
+ </tr>
178
181
  </table>
179
182
 
180
183
  ### Past Sponsors
@@ -184,7 +187,7 @@ If you find oRPC valuable and would like to support its development, you can do
184
187
  <a href="https://github.com/Stijn-Timmer?ref=orpc" target="_blank" rel="noopener" title="Stijn Timmer"><img src="https://avatars.githubusercontent.com/u/100147665?u=106b2c18e9c98a61861b4ee7fc100f5b9906a6c9&amp;v=4" width="32" height="32" alt="Stijn Timmer" /></a>
185
188
  <a href="https://github.com/u1-liquid?ref=orpc" target="_blank" rel="noopener" title="あわわわとーにゅ"><img src="https://avatars.githubusercontent.com/u/17376330?u=de3353804be889f009f7e0a1582daf04d0ab292d&amp;v=4" width="32" height="32" alt="あわわわとーにゅ" /></a>
186
189
  <a href="https://github.com/zuplo?ref=orpc" target="_blank" rel="noopener" title="Zuplo"><img src="https://avatars.githubusercontent.com/u/85497839?v=4" width="32" height="32" alt="Zuplo" /></a>
187
- <a href="https://github.com/motopods?ref=orpc" target="_blank" rel="noopener" title="motopods"><img src="https://avatars.githubusercontent.com/u/58200641?u=18833983d65b481ae90a4adec2373064ec58bcf3&amp;v=4" width="32" height="32" alt="motopods" /></a>
190
+ <a href="https://github.com/motopods?ref=orpc" target="_blank" rel="noopener" title="motopods"><img src="https://avatars.githubusercontent.com/u/58200641?v=4" width="32" height="32" alt="motopods" /></a>
188
191
  <a href="https://github.com/franciscohermida?ref=orpc" target="_blank" rel="noopener" title="Francisco Hermida"><img src="https://avatars.githubusercontent.com/u/483242?u=bbcbc80eb9d8781ff401f7dafc3b59cd7bea0561&amp;v=4" width="32" height="32" alt="Francisco Hermida" /></a>
189
192
  <a href="https://github.com/theoludwig?ref=orpc" target="_blank" rel="noopener" title="Théo LUDWIG"><img src="https://avatars.githubusercontent.com/u/25207499?u=a6a9653725a2f574c07893748806668e0598cdbe&amp;v=4" width="32" height="32" alt="Théo LUDWIG" /></a>
190
193
  <a href="https://github.com/abhay-ramesh?ref=orpc" target="_blank" rel="noopener" title="Abhay Ramesh"><img src="https://avatars.githubusercontent.com/u/66196314?u=c5c2b0327b26606c2efcfaf17046ab18c3d25c57&amp;v=4" width="32" height="32" alt="Abhay Ramesh" /></a>
@@ -1,8 +1,8 @@
1
1
  import { toArray, intercept } from '@orpc/shared';
2
2
  import { toFetchRequest, toStandardLazyResponse } from '@orpc/standard-server-fetch';
3
- import { C as CompositeStandardLinkPlugin, c as StandardRPCLink } from '../../shared/client.DbOybvnL.mjs';
3
+ import { C as CompositeStandardLinkPlugin, c as StandardRPCLink } from '../../shared/client.DxgEFWjV.mjs';
4
4
  import '@orpc/standard-server';
5
- import '../../shared/client.me25pt7v.mjs';
5
+ import '../../shared/client.C9pc00-H.mjs';
6
6
  import '../../shared/client.BLtwTQUg.mjs';
7
7
 
8
8
  class CompositeLinkFetchPlugin extends CompositeStandardLinkPlugin {
@@ -1,8 +1,8 @@
1
1
  import { value, isObject } from '@orpc/shared';
2
2
  import { experimental_ClientPeerWithoutCodec, serializeRequestMessage, encodeRequestMessage, deserializeResponseMessage, decodeResponseMessage } from '@orpc/standard-server-peer';
3
- import { c as StandardRPCLink } from '../../shared/client.DbOybvnL.mjs';
3
+ import { c as StandardRPCLink } from '../../shared/client.DxgEFWjV.mjs';
4
4
  import '@orpc/standard-server';
5
- import '../../shared/client.me25pt7v.mjs';
5
+ import '../../shared/client.C9pc00-H.mjs';
6
6
  import '@orpc/standard-server-fetch';
7
7
  import '../../shared/client.BLtwTQUg.mjs';
8
8
 
@@ -1,6 +1,6 @@
1
- export { C as CompositeStandardLinkPlugin, a as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, S as StandardLink, b as StandardRPCJsonSerializer, c as StandardRPCLink, d as StandardRPCLinkCodec, e as StandardRPCSerializer, g as getMalformedResponseErrorCode, t as toHttpPath, f as toStandardHeaders } from '../../shared/client.DbOybvnL.mjs';
1
+ export { C as CompositeStandardLinkPlugin, a as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, S as StandardLink, b as StandardRPCJsonSerializer, c as StandardRPCLink, d as StandardRPCLinkCodec, e as StandardRPCSerializer, g as getMalformedResponseErrorCode, t as toHttpPath, f as toStandardHeaders } from '../../shared/client.DxgEFWjV.mjs';
2
2
  import '@orpc/shared';
3
3
  import '@orpc/standard-server';
4
- import '../../shared/client.me25pt7v.mjs';
4
+ import '../../shared/client.C9pc00-H.mjs';
5
5
  import '@orpc/standard-server-fetch';
6
6
  import '../../shared/client.BLtwTQUg.mjs';
@@ -1,8 +1,8 @@
1
1
  import { readAsBuffer } from '@orpc/shared';
2
2
  import { ClientPeer } from '@orpc/standard-server-peer';
3
- import { c as StandardRPCLink } from '../../shared/client.DbOybvnL.mjs';
3
+ import { c as StandardRPCLink } from '../../shared/client.DxgEFWjV.mjs';
4
4
  import '@orpc/standard-server';
5
- import '../../shared/client.me25pt7v.mjs';
5
+ import '../../shared/client.C9pc00-H.mjs';
6
6
  import '@orpc/standard-server-fetch';
7
7
  import '../../shared/client.BLtwTQUg.mjs';
8
8
 
package/dist/index.d.mts CHANGED
@@ -207,7 +207,7 @@ type SafeClient<T extends NestedClient<any>> = T extends Client<infer UContext,
207
207
  declare function createSafeClient<T extends NestedClient<any>>(client: T): SafeClient<T>;
208
208
 
209
209
  declare const ORPC_CLIENT_PACKAGE_NAME = "@orpc/client";
210
- declare const ORPC_CLIENT_PACKAGE_VERSION = "1.14.4";
210
+ declare const ORPC_CLIENT_PACKAGE_VERSION = "1.14.5";
211
211
 
212
212
  /**
213
213
  * DynamicLink provides a way to dynamically resolve and delegate calls to other ClientLinks
package/dist/index.d.ts CHANGED
@@ -207,7 +207,7 @@ type SafeClient<T extends NestedClient<any>> = T extends Client<infer UContext,
207
207
  declare function createSafeClient<T extends NestedClient<any>>(client: T): SafeClient<T>;
208
208
 
209
209
  declare const ORPC_CLIENT_PACKAGE_NAME = "@orpc/client";
210
- declare const ORPC_CLIENT_PACKAGE_VERSION = "1.14.4";
210
+ declare const ORPC_CLIENT_PACKAGE_VERSION = "1.14.5";
211
211
 
212
212
  /**
213
213
  * DynamicLink provides a way to dynamically resolve and delegate calls to other ClientLinks
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { preventNativeAwait, isTypescriptObject } from '@orpc/shared';
2
2
  export { AsyncIteratorClass, EventPublisher, asyncIteratorToStream as eventIteratorToStream, asyncIteratorToUnproxiedDataStream as eventIteratorToUnproxiedDataStream, onError, onFinish, onStart, onSuccess, streamToAsyncIteratorClass as streamToEventIterator } from '@orpc/shared';
3
- import { i as isDefinedError } from './shared/client.me25pt7v.mjs';
4
- export { C as COMMON_ORPC_ERROR_DEFS, c as ORPCError, O as ORPC_CLIENT_PACKAGE_NAME, a as ORPC_CLIENT_PACKAGE_VERSION, g as createORPCErrorFromJson, b as fallbackORPCErrorMessage, f as fallbackORPCErrorStatus, e as isORPCErrorJson, d as isORPCErrorStatus, t as toORPCError } from './shared/client.me25pt7v.mjs';
3
+ import { i as isDefinedError } from './shared/client.C9pc00-H.mjs';
4
+ export { C as COMMON_ORPC_ERROR_DEFS, c as ORPCError, O as ORPC_CLIENT_PACKAGE_NAME, a as ORPC_CLIENT_PACKAGE_VERSION, g as createORPCErrorFromJson, b as fallbackORPCErrorMessage, f as fallbackORPCErrorStatus, e as isORPCErrorJson, d as isORPCErrorStatus, t as toORPCError } from './shared/client.C9pc00-H.mjs';
5
5
  export { m as mapEventIterator } from './shared/client.BLtwTQUg.mjs';
6
6
  export { ErrorEvent, getEventMeta, withEventMeta } from '@orpc/standard-server';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { isAsyncIteratorObject, defer, value, splitInHalf, toArray, stringifyJSON, overlayProxy, AsyncIteratorClass } from '@orpc/shared';
2
2
  import { toBatchRequest, parseBatchResponse, toBatchAbortSignal } from '@orpc/standard-server/batch';
3
3
  import { replicateStandardLazyResponse, getEventMeta, flattenHeader } from '@orpc/standard-server';
4
- import { C as COMMON_ORPC_ERROR_DEFS } from '../shared/client.me25pt7v.mjs';
4
+ import { C as COMMON_ORPC_ERROR_DEFS } from '../shared/client.C9pc00-H.mjs';
5
5
 
6
6
  class BatchLinkPlugin {
7
7
  groups;
@@ -1,7 +1,7 @@
1
1
  import { resolveMaybeOptionalOptions, getConstructor, isObject } from '@orpc/shared';
2
2
 
3
3
  const ORPC_CLIENT_PACKAGE_NAME = "@orpc/client";
4
- const ORPC_CLIENT_PACKAGE_VERSION = "1.14.4";
4
+ const ORPC_CLIENT_PACKAGE_VERSION = "1.14.5";
5
5
 
6
6
  const COMMON_ORPC_ERROR_DEFS = {
7
7
  BAD_REQUEST: {
@@ -87,14 +87,18 @@ function fallbackORPCErrorStatus(code, status) {
87
87
  function fallbackORPCErrorMessage(code, message) {
88
88
  return message || COMMON_ORPC_ERROR_DEFS[code]?.message || code;
89
89
  }
90
- const GLOBAL_ORPC_ERROR_CONSTRUCTORS_SYMBOL = Symbol.for(`__${ORPC_CLIENT_PACKAGE_NAME}@${ORPC_CLIENT_PACKAGE_VERSION}/error/ORPC_ERROR_CONSTRUCTORS__`);
91
- void (globalThis[GLOBAL_ORPC_ERROR_CONSTRUCTORS_SYMBOL] ??= /* @__PURE__ */ new WeakSet());
92
- const globalORPCErrorConstructors = globalThis[GLOBAL_ORPC_ERROR_CONSTRUCTORS_SYMBOL];
90
+ let globalORPCErrorConstructors;
93
91
  class ORPCError extends Error {
94
92
  defined;
95
93
  code;
96
94
  status;
97
95
  data;
96
+ static {
97
+ const GLOBAL_ORPC_ERROR_CONSTRUCTORS_SYMBOL = Symbol.for(`__${ORPC_CLIENT_PACKAGE_NAME}@${ORPC_CLIENT_PACKAGE_VERSION}/error/ORPC_ERROR_CONSTRUCTORS__`);
98
+ void (globalThis[GLOBAL_ORPC_ERROR_CONSTRUCTORS_SYMBOL] ??= /* @__PURE__ */ new WeakSet());
99
+ globalORPCErrorConstructors = globalThis[GLOBAL_ORPC_ERROR_CONSTRUCTORS_SYMBOL];
100
+ globalORPCErrorConstructors.add(ORPCError);
101
+ }
98
102
  constructor(code, ...rest) {
99
103
  const options = resolveMaybeOptionalOptions(rest);
100
104
  if (options.status !== void 0 && !isORPCErrorStatus(options.status)) {
@@ -138,7 +142,6 @@ class ORPCError extends Error {
138
142
  return super[Symbol.hasInstance](instance);
139
143
  }
140
144
  }
141
- globalORPCErrorConstructors.add(ORPCError);
142
145
  function isDefinedError(error) {
143
146
  return error instanceof ORPCError && error.defined;
144
147
  }
@@ -1,6 +1,6 @@
1
1
  import { toArray, runWithSpan, ORPC_NAME, isAsyncIteratorObject, asyncIteratorWithSpan, intercept, getGlobalOtelConfig, isObject, value, stringifyJSON } from '@orpc/shared';
2
2
  import { mergeStandardHeaders, ErrorEvent } from '@orpc/standard-server';
3
- import { C as COMMON_ORPC_ERROR_DEFS, d as isORPCErrorStatus, e as isORPCErrorJson, g as createORPCErrorFromJson, c as ORPCError, t as toORPCError } from './client.me25pt7v.mjs';
3
+ import { C as COMMON_ORPC_ERROR_DEFS, d as isORPCErrorStatus, e as isORPCErrorJson, g as createORPCErrorFromJson, c as ORPCError, t as toORPCError } from './client.C9pc00-H.mjs';
4
4
  import { toStandardHeaders as toStandardHeaders$1 } from '@orpc/standard-server-fetch';
5
5
  import { m as mapEventIterator } from './client.BLtwTQUg.mjs';
6
6
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/client",
3
3
  "type": "module",
4
- "version": "1.14.4",
4
+ "version": "1.14.5",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.dev",
7
7
  "repository": {
@@ -49,10 +49,10 @@
49
49
  "dist"
50
50
  ],
51
51
  "dependencies": {
52
- "@orpc/shared": "1.14.4",
53
- "@orpc/standard-server": "1.14.4",
54
- "@orpc/standard-server-fetch": "1.14.4",
55
- "@orpc/standard-server-peer": "1.14.4"
52
+ "@orpc/shared": "1.14.5",
53
+ "@orpc/standard-server": "1.14.5",
54
+ "@orpc/standard-server-fetch": "1.14.5",
55
+ "@orpc/standard-server-peer": "1.14.5"
56
56
  },
57
57
  "devDependencies": {
58
58
  "zod": "^4.3.6"