@orpc/client 0.0.0-next.d760838 → 0.0.0-next.d9aa1c2
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 +13 -17
- package/dist/adapters/fetch/index.d.mts +11 -4
- package/dist/adapters/fetch/index.d.ts +11 -4
- package/dist/adapters/fetch/index.mjs +3 -6
- package/dist/adapters/standard/index.d.mts +2 -2
- package/dist/adapters/standard/index.d.ts +2 -2
- package/dist/adapters/standard/index.mjs +1 -1
- package/dist/index.d.mts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/plugins/index.d.mts +53 -3
- package/dist/plugins/index.d.ts +53 -3
- package/dist/plugins/index.mjs +47 -12
- package/dist/shared/{client.CDvsX60w.d.ts → client.8TjrVhkC.d.ts} +6 -2
- package/dist/shared/{client.CUq1_W_X.d.mts → client.BjJBZryq.d.mts} +6 -2
- package/dist/shared/{client.p3ON_yzu.d.ts → client.C9U9n1f3.d.ts} +12 -6
- package/dist/shared/{client.OLTJgDL8.mjs → client.DpICn1BD.mjs} +24 -6
- package/dist/shared/{client.C7z5zk4v.d.mts → client.FXep-a3a.d.mts} +12 -6
- package/package.json +4 -4
package/README.md
CHANGED
@@ -21,28 +21,24 @@
|
|
21
21
|
|
22
22
|
<h3 align="center">Typesafe APIs Made Simple 🪄</h3>
|
23
23
|
|
24
|
-
**oRPC is a powerful combination of RPC and OpenAPI**, makes it easy to build APIs that are end-to-end type-safe and adhere to OpenAPI standards
|
24
|
+
**oRPC is a powerful combination of RPC and OpenAPI**, makes it easy to build APIs that are end-to-end type-safe and adhere to OpenAPI standards
|
25
25
|
|
26
26
|
---
|
27
27
|
|
28
28
|
## Highlights
|
29
29
|
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
-
|
42
|
-
- **Reusability 🔄**: Write once and reuse your code across multiple purposes effortlessly.
|
43
|
-
- **Extendability 🔌**: Easily enhance oRPC with plugins, middleware, and interceptors.
|
44
|
-
- **Reliability 🛡️**: Well-tested, fully TypeScript, production-ready, and MIT licensed for peace of mind.
|
45
|
-
- **Simplicity 💡**: Enjoy straightforward, clean code with no hidden magic.
|
30
|
+
- **🔗 End-to-End Type Safety**: Ensure type-safe inputs, outputs, and errors from client to server.
|
31
|
+
- **📘 First-Class OpenAPI**: Built-in support that fully adheres to the OpenAPI standard.
|
32
|
+
- **📝 Contract-First Development**: Optionally define your API contract before implementation.
|
33
|
+
- **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte), Pinia Colada, and more.
|
34
|
+
- **🚀 Server Actions**: Fully compatible with React Server Actions on Next.js, TanStack Start, and other platforms.
|
35
|
+
- **🔠 Standard Schema Support**: Works out of the box with Zod, Valibot, ArkType, and other schema validators.
|
36
|
+
- **🗃️ Native Types**: Supports native types like Date, File, Blob, BigInt, URL, and more.
|
37
|
+
- **⏱️ Lazy Router**: Enhance cold start times with our lazy routing feature.
|
38
|
+
- **📡 SSE & Streaming**: Enjoy full type-safe support for SSE and streaming.
|
39
|
+
- **🌍 Multi-Runtime Support**: Fast and lightweight on Cloudflare, Deno, Bun, Node.js, and beyond.
|
40
|
+
- **🔌 Extendability**: Easily extend functionality with plugins, middleware, and interceptors.
|
41
|
+
- **🛡️ Reliability**: Well-tested, TypeScript-based, production-ready, and MIT licensed.
|
46
42
|
|
47
43
|
## Documentation
|
48
44
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { StandardRequest, StandardLazyResponse } from '@orpc/standard-server';
|
2
2
|
import { ToFetchRequestOptions } from '@orpc/standard-server-fetch';
|
3
3
|
import { a as ClientContext, b as ClientOptions } from '../../shared/client.CipPQkhk.mjs';
|
4
|
-
import { f as StandardLinkClient
|
5
|
-
import { f as StandardRPCLinkOptions } from '../../shared/client.
|
4
|
+
import { f as StandardLinkClient } from '../../shared/client.FXep-a3a.mjs';
|
5
|
+
import { f as StandardRPCLinkOptions, g as StandardRPCLink } from '../../shared/client.BjJBZryq.mjs';
|
6
6
|
import '@orpc/shared';
|
7
7
|
|
8
8
|
interface LinkFetchClientOptions<T extends ClientContext> extends ToFetchRequestOptions {
|
@@ -19,8 +19,15 @@ declare class LinkFetchClient<T extends ClientContext> implements StandardLinkCl
|
|
19
19
|
|
20
20
|
interface RPCLinkOptions<T extends ClientContext> extends StandardRPCLinkOptions<T>, LinkFetchClientOptions<T> {
|
21
21
|
}
|
22
|
-
|
22
|
+
/**
|
23
|
+
* The RPC Link communicates with the server using the RPC protocol.
|
24
|
+
*
|
25
|
+
* @see {@link https://orpc.unnoq.com/docs/client/rpc-link RPC Link Docs}
|
26
|
+
* @see {@link https://orpc.unnoq.com/docs/advanced/rpc-protocol RPC Protocol Docs}
|
27
|
+
*/
|
28
|
+
declare class RPCLink<T extends ClientContext> extends StandardRPCLink<T> {
|
23
29
|
constructor(options: RPCLinkOptions<T>);
|
24
30
|
}
|
25
31
|
|
26
|
-
export { LinkFetchClient,
|
32
|
+
export { LinkFetchClient, RPCLink };
|
33
|
+
export type { LinkFetchClientOptions, RPCLinkOptions };
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { StandardRequest, StandardLazyResponse } from '@orpc/standard-server';
|
2
2
|
import { ToFetchRequestOptions } from '@orpc/standard-server-fetch';
|
3
3
|
import { a as ClientContext, b as ClientOptions } from '../../shared/client.CipPQkhk.js';
|
4
|
-
import { f as StandardLinkClient
|
5
|
-
import { f as StandardRPCLinkOptions } from '../../shared/client.
|
4
|
+
import { f as StandardLinkClient } from '../../shared/client.C9U9n1f3.js';
|
5
|
+
import { f as StandardRPCLinkOptions, g as StandardRPCLink } from '../../shared/client.8TjrVhkC.js';
|
6
6
|
import '@orpc/shared';
|
7
7
|
|
8
8
|
interface LinkFetchClientOptions<T extends ClientContext> extends ToFetchRequestOptions {
|
@@ -19,8 +19,15 @@ declare class LinkFetchClient<T extends ClientContext> implements StandardLinkCl
|
|
19
19
|
|
20
20
|
interface RPCLinkOptions<T extends ClientContext> extends StandardRPCLinkOptions<T>, LinkFetchClientOptions<T> {
|
21
21
|
}
|
22
|
-
|
22
|
+
/**
|
23
|
+
* The RPC Link communicates with the server using the RPC protocol.
|
24
|
+
*
|
25
|
+
* @see {@link https://orpc.unnoq.com/docs/client/rpc-link RPC Link Docs}
|
26
|
+
* @see {@link https://orpc.unnoq.com/docs/advanced/rpc-protocol RPC Protocol Docs}
|
27
|
+
*/
|
28
|
+
declare class RPCLink<T extends ClientContext> extends StandardRPCLink<T> {
|
23
29
|
constructor(options: RPCLinkOptions<T>);
|
24
30
|
}
|
25
31
|
|
26
|
-
export { LinkFetchClient,
|
32
|
+
export { LinkFetchClient, RPCLink };
|
33
|
+
export type { LinkFetchClientOptions, RPCLinkOptions };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { toFetchRequest, toStandardLazyResponse } from '@orpc/standard-server-fetch';
|
2
|
-
import { S as StandardLink, b as StandardRPCJsonSerializer, c as StandardRPCLinkCodec, d as StandardRPCSerializer } from '../../shared/client.OLTJgDL8.mjs';
|
3
2
|
import '@orpc/shared';
|
3
|
+
import { c as StandardRPCLink } from '../../shared/client.DpICn1BD.mjs';
|
4
4
|
import '@orpc/standard-server';
|
5
5
|
import '../../shared/client.CRWEpqLB.mjs';
|
6
6
|
|
@@ -19,13 +19,10 @@ class LinkFetchClient {
|
|
19
19
|
}
|
20
20
|
}
|
21
21
|
|
22
|
-
class RPCLink extends
|
22
|
+
class RPCLink extends StandardRPCLink {
|
23
23
|
constructor(options) {
|
24
|
-
const jsonSerializer = new StandardRPCJsonSerializer(options);
|
25
|
-
const serializer = new StandardRPCSerializer(jsonSerializer);
|
26
|
-
const linkCodec = new StandardRPCLinkCodec(serializer, options);
|
27
24
|
const linkClient = new LinkFetchClient(options);
|
28
|
-
super(
|
25
|
+
super(linkClient, options);
|
29
26
|
}
|
30
27
|
}
|
31
28
|
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export {
|
2
|
-
export { S as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, c as StandardRPCCustomJsonSerializer, b as StandardRPCJsonSerialized, a as StandardRPCJsonSerializedMetaItem, e as StandardRPCJsonSerializer, d as StandardRPCJsonSerializerOptions,
|
1
|
+
export { C as CompositeStandardLinkPlugin, d as StandardLink, f as StandardLinkClient, S as StandardLinkClientInterceptorOptions, e as StandardLinkCodec, c as StandardLinkInterceptorOptions, b as StandardLinkOptions, a as StandardLinkPlugin } from '../../shared/client.FXep-a3a.mjs';
|
2
|
+
export { S as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, c as StandardRPCCustomJsonSerializer, b as StandardRPCJsonSerialized, a as StandardRPCJsonSerializedMetaItem, e as StandardRPCJsonSerializer, d as StandardRPCJsonSerializerOptions, g as StandardRPCLink, i as StandardRPCLinkCodec, h as StandardRPCLinkCodecOptions, f as StandardRPCLinkOptions, j as StandardRPCSerializer } from '../../shared/client.BjJBZryq.mjs';
|
3
3
|
import { H as HTTPPath } from '../../shared/client.CipPQkhk.mjs';
|
4
4
|
import '@orpc/shared';
|
5
5
|
import '@orpc/standard-server';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export {
|
2
|
-
export { S as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, c as StandardRPCCustomJsonSerializer, b as StandardRPCJsonSerialized, a as StandardRPCJsonSerializedMetaItem, e as StandardRPCJsonSerializer, d as StandardRPCJsonSerializerOptions,
|
1
|
+
export { C as CompositeStandardLinkPlugin, d as StandardLink, f as StandardLinkClient, S as StandardLinkClientInterceptorOptions, e as StandardLinkCodec, c as StandardLinkInterceptorOptions, b as StandardLinkOptions, a as StandardLinkPlugin } from '../../shared/client.C9U9n1f3.js';
|
2
|
+
export { S as STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES, c as StandardRPCCustomJsonSerializer, b as StandardRPCJsonSerialized, a as StandardRPCJsonSerializedMetaItem, e as StandardRPCJsonSerializer, d as StandardRPCJsonSerializerOptions, g as StandardRPCLink, i as StandardRPCLinkCodec, h as StandardRPCLinkCodecOptions, f as StandardRPCLinkOptions, j as StandardRPCSerializer } from '../../shared/client.8TjrVhkC.js';
|
3
3
|
import { H as HTTPPath } from '../../shared/client.CipPQkhk.js';
|
4
4
|
import '@orpc/shared';
|
5
5
|
import '@orpc/standard-server';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
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 } from '../../shared/client.DpICn1BD.mjs';
|
2
2
|
import '@orpc/shared';
|
3
3
|
import '@orpc/standard-server';
|
4
4
|
import '../../shared/client.CRWEpqLB.mjs';
|
package/dist/index.d.mts
CHANGED
@@ -10,11 +10,18 @@ interface createORPCClientOptions {
|
|
10
10
|
*/
|
11
11
|
path?: string[];
|
12
12
|
}
|
13
|
+
/**
|
14
|
+
* Create a oRPC client-side client from a link.
|
15
|
+
*
|
16
|
+
* @see {@link https://orpc.unnoq.com/docs/client/client-side Client-side Client Docs}
|
17
|
+
*/
|
13
18
|
declare function createORPCClient<T extends NestedClient<any>>(link: ClientLink<InferClientContext<T>>, options?: createORPCClientOptions): T;
|
14
19
|
|
15
20
|
/**
|
16
21
|
* DynamicLink provides a way to dynamically resolve and delegate calls to other ClientLinks
|
17
22
|
* based on the request path, input, and context.
|
23
|
+
*
|
24
|
+
* @see {@link https://orpc.unnoq.com/docs/client/dynamic-link Dynamic Link Docs}
|
18
25
|
*/
|
19
26
|
declare class DynamicLink<TClientContext extends ClientContext> implements ClientLink<TClientContext> {
|
20
27
|
private readonly linkResolver;
|
@@ -149,7 +156,14 @@ type SafeResult<TOutput, TError> = [error: null, data: TOutput, isDefined: false
|
|
149
156
|
isDefined: true;
|
150
157
|
isSuccess: false;
|
151
158
|
};
|
159
|
+
/**
|
160
|
+
* Works like try/catch, but can infer error types.
|
161
|
+
*
|
162
|
+
* @info support both tuple `[error, data, isDefined, isSuccess]` and object `{ error, data, isDefined, isSuccess }` styles.
|
163
|
+
* @see {@link https://orpc.unnoq.com/docs/client/error-handling Client Error Handling Docs}
|
164
|
+
*/
|
152
165
|
declare function safe<TOutput, TError = ThrowableError>(promise: ClientPromiseResult<TOutput, TError>): Promise<SafeResult<TOutput, TError>>;
|
153
166
|
declare function resolveFriendlyClientOptions<T extends ClientContext>(options: FriendlyClientOptions<T>): ClientOptions<T>;
|
154
167
|
|
155
|
-
export { COMMON_ORPC_ERROR_DEFS, ClientContext, ClientLink, ClientOptions, ClientPromiseResult,
|
168
|
+
export { COMMON_ORPC_ERROR_DEFS, ClientContext, ClientLink, ClientOptions, ClientPromiseResult, DynamicLink, FriendlyClientOptions, InferClientContext, NestedClient, ORPCError, createORPCClient, createORPCErrorFromJson, fallbackORPCErrorMessage, fallbackORPCErrorStatus, isDefinedError, isORPCErrorJson, isORPCErrorStatus, mapEventIterator, resolveFriendlyClientOptions, safe, toORPCError };
|
169
|
+
export type { CommonORPCErrorCode, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, SafeResult, createORPCClientOptions };
|
package/dist/index.d.ts
CHANGED
@@ -10,11 +10,18 @@ interface createORPCClientOptions {
|
|
10
10
|
*/
|
11
11
|
path?: string[];
|
12
12
|
}
|
13
|
+
/**
|
14
|
+
* Create a oRPC client-side client from a link.
|
15
|
+
*
|
16
|
+
* @see {@link https://orpc.unnoq.com/docs/client/client-side Client-side Client Docs}
|
17
|
+
*/
|
13
18
|
declare function createORPCClient<T extends NestedClient<any>>(link: ClientLink<InferClientContext<T>>, options?: createORPCClientOptions): T;
|
14
19
|
|
15
20
|
/**
|
16
21
|
* DynamicLink provides a way to dynamically resolve and delegate calls to other ClientLinks
|
17
22
|
* based on the request path, input, and context.
|
23
|
+
*
|
24
|
+
* @see {@link https://orpc.unnoq.com/docs/client/dynamic-link Dynamic Link Docs}
|
18
25
|
*/
|
19
26
|
declare class DynamicLink<TClientContext extends ClientContext> implements ClientLink<TClientContext> {
|
20
27
|
private readonly linkResolver;
|
@@ -149,7 +156,14 @@ type SafeResult<TOutput, TError> = [error: null, data: TOutput, isDefined: false
|
|
149
156
|
isDefined: true;
|
150
157
|
isSuccess: false;
|
151
158
|
};
|
159
|
+
/**
|
160
|
+
* Works like try/catch, but can infer error types.
|
161
|
+
*
|
162
|
+
* @info support both tuple `[error, data, isDefined, isSuccess]` and object `{ error, data, isDefined, isSuccess }` styles.
|
163
|
+
* @see {@link https://orpc.unnoq.com/docs/client/error-handling Client Error Handling Docs}
|
164
|
+
*/
|
152
165
|
declare function safe<TOutput, TError = ThrowableError>(promise: ClientPromiseResult<TOutput, TError>): Promise<SafeResult<TOutput, TError>>;
|
153
166
|
declare function resolveFriendlyClientOptions<T extends ClientContext>(options: FriendlyClientOptions<T>): ClientOptions<T>;
|
154
167
|
|
155
|
-
export { COMMON_ORPC_ERROR_DEFS, ClientContext, ClientLink, ClientOptions, ClientPromiseResult,
|
168
|
+
export { COMMON_ORPC_ERROR_DEFS, ClientContext, ClientLink, ClientOptions, ClientPromiseResult, DynamicLink, FriendlyClientOptions, InferClientContext, NestedClient, ORPCError, createORPCClient, createORPCErrorFromJson, fallbackORPCErrorMessage, fallbackORPCErrorStatus, isDefinedError, isORPCErrorJson, isORPCErrorStatus, mapEventIterator, resolveFriendlyClientOptions, safe, toORPCError };
|
169
|
+
export type { CommonORPCErrorCode, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, SafeResult, createORPCClientOptions };
|
package/dist/plugins/index.d.mts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Value } from '@orpc/shared';
|
2
2
|
import { StandardHeaders, StandardRequest } from '@orpc/standard-server';
|
3
|
-
import { S as StandardLinkClientInterceptorOptions, a as StandardLinkPlugin, b as StandardLinkOptions, c as StandardLinkInterceptorOptions } from '../shared/client.
|
3
|
+
import { S as StandardLinkClientInterceptorOptions, a as StandardLinkPlugin, b as StandardLinkOptions, c as StandardLinkInterceptorOptions } from '../shared/client.FXep-a3a.mjs';
|
4
4
|
import { a as ClientContext } from '../shared/client.CipPQkhk.mjs';
|
5
5
|
|
6
6
|
interface BatchLinkPluginGroup<T extends ClientContext> {
|
@@ -51,6 +51,12 @@ interface BatchLinkPluginOptions<T extends ClientContext> {
|
|
51
51
|
*/
|
52
52
|
exclude?: (options: StandardLinkClientInterceptorOptions<T>) => boolean;
|
53
53
|
}
|
54
|
+
/**
|
55
|
+
* The Batch Request/Response Plugin allows you to combine multiple requests and responses into a single batch,
|
56
|
+
* reducing the overhead of sending each one separately.
|
57
|
+
*
|
58
|
+
* @see {@link https://orpc.unnoq.com/docs/plugins/batch-request-response Batch Request/Response Plugin Docs}
|
59
|
+
*/
|
54
60
|
declare class BatchLinkPlugin<T extends ClientContext> implements StandardLinkPlugin<T> {
|
55
61
|
#private;
|
56
62
|
private readonly groups;
|
@@ -61,6 +67,7 @@ declare class BatchLinkPlugin<T extends ClientContext> implements StandardLinkPl
|
|
61
67
|
private readonly mapRequestItem;
|
62
68
|
private readonly exclude;
|
63
69
|
private pending;
|
70
|
+
order: number;
|
64
71
|
constructor(options: BatchLinkPluginOptions<T>);
|
65
72
|
init(options: StandardLinkOptions<T>): void;
|
66
73
|
}
|
@@ -93,13 +100,18 @@ interface ClientRetryPluginContext {
|
|
93
100
|
/**
|
94
101
|
* The hook called when retrying, and return the unsubscribe function.
|
95
102
|
*/
|
96
|
-
onRetry?: (options: ClientRetryPluginAttemptOptions<ClientRetryPluginContext>) => void | (() => void);
|
103
|
+
onRetry?: (options: ClientRetryPluginAttemptOptions<ClientRetryPluginContext>) => void | ((isSuccess: boolean) => void);
|
97
104
|
}
|
98
105
|
declare class ClientRetryPluginInvalidEventIteratorRetryResponse extends Error {
|
99
106
|
}
|
100
107
|
interface ClientRetryPluginOptions {
|
101
108
|
default?: ClientRetryPluginContext;
|
102
109
|
}
|
110
|
+
/**
|
111
|
+
* The Client Retry Plugin enables retrying client calls when errors occur.
|
112
|
+
*
|
113
|
+
* @see {@link https://orpc.unnoq.com/docs/plugins/client-retry Client Retry Plugin Docs}
|
114
|
+
*/
|
103
115
|
declare class ClientRetryPlugin<T extends ClientRetryPluginContext> implements StandardLinkPlugin<T> {
|
104
116
|
private readonly defaultRetry;
|
105
117
|
private readonly defaultRetryDelay;
|
@@ -109,4 +121,42 @@ declare class ClientRetryPlugin<T extends ClientRetryPluginContext> implements S
|
|
109
121
|
init(options: StandardLinkOptions<T>): void;
|
110
122
|
}
|
111
123
|
|
112
|
-
|
124
|
+
interface SimpleCsrfProtectionLinkPluginOptions<T extends ClientContext> {
|
125
|
+
/**
|
126
|
+
* The name of the header to check.
|
127
|
+
*
|
128
|
+
* @default 'x-csrf-token'
|
129
|
+
*/
|
130
|
+
headerName?: Value<string, [options: StandardLinkClientInterceptorOptions<T>]>;
|
131
|
+
/**
|
132
|
+
* The value of the header to check.
|
133
|
+
*
|
134
|
+
* @default 'orpc'
|
135
|
+
*
|
136
|
+
*/
|
137
|
+
headerValue?: Value<string, [options: StandardLinkClientInterceptorOptions<T>]>;
|
138
|
+
/**
|
139
|
+
* Exclude a procedure from the plugin.
|
140
|
+
*
|
141
|
+
* @default false
|
142
|
+
*/
|
143
|
+
exclude?: Value<boolean, [options: StandardLinkClientInterceptorOptions<T>]>;
|
144
|
+
}
|
145
|
+
/**
|
146
|
+
* This plugin adds basic Cross-Site Request Forgery (CSRF) protection to your oRPC application.
|
147
|
+
* It helps ensure that requests to your procedures originate from JavaScript code,
|
148
|
+
* not from other sources like standard HTML forms or direct browser navigation.
|
149
|
+
*
|
150
|
+
* @see {@link https://orpc.unnoq.com/docs/plugins/simple-csrf-protection Simple CSRF Protection Plugin Docs}
|
151
|
+
*/
|
152
|
+
declare class SimpleCsrfProtectionLinkPlugin<T extends ClientContext> implements StandardLinkPlugin<T> {
|
153
|
+
private readonly headerName;
|
154
|
+
private readonly headerValue;
|
155
|
+
private readonly exclude;
|
156
|
+
constructor(options?: SimpleCsrfProtectionLinkPluginOptions<T>);
|
157
|
+
order: number;
|
158
|
+
init(options: StandardLinkOptions<T>): void;
|
159
|
+
}
|
160
|
+
|
161
|
+
export { BatchLinkPlugin, ClientRetryPlugin, ClientRetryPluginInvalidEventIteratorRetryResponse, SimpleCsrfProtectionLinkPlugin };
|
162
|
+
export type { BatchLinkPluginGroup, BatchLinkPluginOptions, ClientRetryPluginAttemptOptions, ClientRetryPluginContext, ClientRetryPluginOptions, SimpleCsrfProtectionLinkPluginOptions };
|
package/dist/plugins/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Value } from '@orpc/shared';
|
2
2
|
import { StandardHeaders, StandardRequest } from '@orpc/standard-server';
|
3
|
-
import { S as StandardLinkClientInterceptorOptions, a as StandardLinkPlugin, b as StandardLinkOptions, c as StandardLinkInterceptorOptions } from '../shared/client.
|
3
|
+
import { S as StandardLinkClientInterceptorOptions, a as StandardLinkPlugin, b as StandardLinkOptions, c as StandardLinkInterceptorOptions } from '../shared/client.C9U9n1f3.js';
|
4
4
|
import { a as ClientContext } from '../shared/client.CipPQkhk.js';
|
5
5
|
|
6
6
|
interface BatchLinkPluginGroup<T extends ClientContext> {
|
@@ -51,6 +51,12 @@ interface BatchLinkPluginOptions<T extends ClientContext> {
|
|
51
51
|
*/
|
52
52
|
exclude?: (options: StandardLinkClientInterceptorOptions<T>) => boolean;
|
53
53
|
}
|
54
|
+
/**
|
55
|
+
* The Batch Request/Response Plugin allows you to combine multiple requests and responses into a single batch,
|
56
|
+
* reducing the overhead of sending each one separately.
|
57
|
+
*
|
58
|
+
* @see {@link https://orpc.unnoq.com/docs/plugins/batch-request-response Batch Request/Response Plugin Docs}
|
59
|
+
*/
|
54
60
|
declare class BatchLinkPlugin<T extends ClientContext> implements StandardLinkPlugin<T> {
|
55
61
|
#private;
|
56
62
|
private readonly groups;
|
@@ -61,6 +67,7 @@ declare class BatchLinkPlugin<T extends ClientContext> implements StandardLinkPl
|
|
61
67
|
private readonly mapRequestItem;
|
62
68
|
private readonly exclude;
|
63
69
|
private pending;
|
70
|
+
order: number;
|
64
71
|
constructor(options: BatchLinkPluginOptions<T>);
|
65
72
|
init(options: StandardLinkOptions<T>): void;
|
66
73
|
}
|
@@ -93,13 +100,18 @@ interface ClientRetryPluginContext {
|
|
93
100
|
/**
|
94
101
|
* The hook called when retrying, and return the unsubscribe function.
|
95
102
|
*/
|
96
|
-
onRetry?: (options: ClientRetryPluginAttemptOptions<ClientRetryPluginContext>) => void | (() => void);
|
103
|
+
onRetry?: (options: ClientRetryPluginAttemptOptions<ClientRetryPluginContext>) => void | ((isSuccess: boolean) => void);
|
97
104
|
}
|
98
105
|
declare class ClientRetryPluginInvalidEventIteratorRetryResponse extends Error {
|
99
106
|
}
|
100
107
|
interface ClientRetryPluginOptions {
|
101
108
|
default?: ClientRetryPluginContext;
|
102
109
|
}
|
110
|
+
/**
|
111
|
+
* The Client Retry Plugin enables retrying client calls when errors occur.
|
112
|
+
*
|
113
|
+
* @see {@link https://orpc.unnoq.com/docs/plugins/client-retry Client Retry Plugin Docs}
|
114
|
+
*/
|
103
115
|
declare class ClientRetryPlugin<T extends ClientRetryPluginContext> implements StandardLinkPlugin<T> {
|
104
116
|
private readonly defaultRetry;
|
105
117
|
private readonly defaultRetryDelay;
|
@@ -109,4 +121,42 @@ declare class ClientRetryPlugin<T extends ClientRetryPluginContext> implements S
|
|
109
121
|
init(options: StandardLinkOptions<T>): void;
|
110
122
|
}
|
111
123
|
|
112
|
-
|
124
|
+
interface SimpleCsrfProtectionLinkPluginOptions<T extends ClientContext> {
|
125
|
+
/**
|
126
|
+
* The name of the header to check.
|
127
|
+
*
|
128
|
+
* @default 'x-csrf-token'
|
129
|
+
*/
|
130
|
+
headerName?: Value<string, [options: StandardLinkClientInterceptorOptions<T>]>;
|
131
|
+
/**
|
132
|
+
* The value of the header to check.
|
133
|
+
*
|
134
|
+
* @default 'orpc'
|
135
|
+
*
|
136
|
+
*/
|
137
|
+
headerValue?: Value<string, [options: StandardLinkClientInterceptorOptions<T>]>;
|
138
|
+
/**
|
139
|
+
* Exclude a procedure from the plugin.
|
140
|
+
*
|
141
|
+
* @default false
|
142
|
+
*/
|
143
|
+
exclude?: Value<boolean, [options: StandardLinkClientInterceptorOptions<T>]>;
|
144
|
+
}
|
145
|
+
/**
|
146
|
+
* This plugin adds basic Cross-Site Request Forgery (CSRF) protection to your oRPC application.
|
147
|
+
* It helps ensure that requests to your procedures originate from JavaScript code,
|
148
|
+
* not from other sources like standard HTML forms or direct browser navigation.
|
149
|
+
*
|
150
|
+
* @see {@link https://orpc.unnoq.com/docs/plugins/simple-csrf-protection Simple CSRF Protection Plugin Docs}
|
151
|
+
*/
|
152
|
+
declare class SimpleCsrfProtectionLinkPlugin<T extends ClientContext> implements StandardLinkPlugin<T> {
|
153
|
+
private readonly headerName;
|
154
|
+
private readonly headerValue;
|
155
|
+
private readonly exclude;
|
156
|
+
constructor(options?: SimpleCsrfProtectionLinkPluginOptions<T>);
|
157
|
+
order: number;
|
158
|
+
init(options: StandardLinkOptions<T>): void;
|
159
|
+
}
|
160
|
+
|
161
|
+
export { BatchLinkPlugin, ClientRetryPlugin, ClientRetryPluginInvalidEventIteratorRetryResponse, SimpleCsrfProtectionLinkPlugin };
|
162
|
+
export type { BatchLinkPluginGroup, BatchLinkPluginOptions, ClientRetryPluginAttemptOptions, ClientRetryPluginContext, ClientRetryPluginOptions, SimpleCsrfProtectionLinkPluginOptions };
|
package/dist/plugins/index.mjs
CHANGED
@@ -11,6 +11,7 @@ class BatchLinkPlugin {
|
|
11
11
|
mapRequestItem;
|
12
12
|
exclude;
|
13
13
|
pending;
|
14
|
+
order = 5e6;
|
14
15
|
constructor(options) {
|
15
16
|
this.groups = options.groups;
|
16
17
|
this.pending = /* @__PURE__ */ new Map();
|
@@ -174,20 +175,20 @@ class ClientRetryPlugin {
|
|
174
175
|
}
|
175
176
|
let lastEventId = interceptorOptions.lastEventId;
|
176
177
|
let lastEventRetry;
|
177
|
-
let
|
178
|
+
let callback;
|
178
179
|
let attemptIndex = 0;
|
179
|
-
const next = async (
|
180
|
-
let
|
180
|
+
const next = async (initialError) => {
|
181
|
+
let currentError = initialError;
|
181
182
|
while (true) {
|
182
183
|
const updatedInterceptorOptions = { ...interceptorOptions, lastEventId };
|
183
|
-
if (
|
184
|
+
if (currentError) {
|
184
185
|
if (attemptIndex >= maxAttempts) {
|
185
|
-
throw
|
186
|
+
throw currentError.error;
|
186
187
|
}
|
187
188
|
const attemptOptions = {
|
188
189
|
...updatedInterceptorOptions,
|
189
190
|
attemptIndex,
|
190
|
-
error:
|
191
|
+
error: currentError.error,
|
191
192
|
lastEventRetry
|
192
193
|
};
|
193
194
|
const shouldRetryBool = await value(
|
@@ -195,23 +196,24 @@ class ClientRetryPlugin {
|
|
195
196
|
attemptOptions
|
196
197
|
);
|
197
198
|
if (!shouldRetryBool) {
|
198
|
-
throw
|
199
|
+
throw currentError.error;
|
199
200
|
}
|
200
|
-
|
201
|
+
callback = onRetry?.(attemptOptions);
|
201
202
|
const retryDelayMs = await value(retryDelay, attemptOptions);
|
202
203
|
await new Promise((resolve) => setTimeout(resolve, retryDelayMs));
|
203
204
|
attemptIndex++;
|
204
205
|
}
|
205
206
|
try {
|
207
|
+
currentError = void 0;
|
206
208
|
return await interceptorOptions.next(updatedInterceptorOptions);
|
207
209
|
} catch (error) {
|
210
|
+
currentError = { error };
|
208
211
|
if (updatedInterceptorOptions.signal?.aborted === true) {
|
209
212
|
throw error;
|
210
213
|
}
|
211
|
-
current = { error };
|
212
214
|
} finally {
|
213
|
-
|
214
|
-
|
215
|
+
callback?.(!currentError);
|
216
|
+
callback = void 0;
|
215
217
|
}
|
216
218
|
}
|
217
219
|
};
|
@@ -253,4 +255,37 @@ class ClientRetryPlugin {
|
|
253
255
|
}
|
254
256
|
}
|
255
257
|
|
256
|
-
|
258
|
+
class SimpleCsrfProtectionLinkPlugin {
|
259
|
+
headerName;
|
260
|
+
headerValue;
|
261
|
+
exclude;
|
262
|
+
constructor(options = {}) {
|
263
|
+
this.headerName = options.headerName ?? "x-csrf-token";
|
264
|
+
this.headerValue = options.headerValue ?? "orpc";
|
265
|
+
this.exclude = options.exclude ?? false;
|
266
|
+
}
|
267
|
+
order = 8e6;
|
268
|
+
init(options) {
|
269
|
+
options.clientInterceptors ??= [];
|
270
|
+
options.clientInterceptors.push(async (options2) => {
|
271
|
+
const excluded = await value(this.exclude, options2);
|
272
|
+
if (excluded) {
|
273
|
+
return options2.next();
|
274
|
+
}
|
275
|
+
const headerName = await value(this.headerName, options2);
|
276
|
+
const headerValue = await value(this.headerValue, options2);
|
277
|
+
return options2.next({
|
278
|
+
...options2,
|
279
|
+
request: {
|
280
|
+
...options2.request,
|
281
|
+
headers: {
|
282
|
+
...options2.request.headers,
|
283
|
+
[headerName]: headerValue
|
284
|
+
}
|
285
|
+
}
|
286
|
+
});
|
287
|
+
});
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
export { BatchLinkPlugin, ClientRetryPlugin, ClientRetryPluginInvalidEventIteratorRetryResponse, SimpleCsrfProtectionLinkPlugin };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { a as ClientContext, b as ClientOptions, d as HTTPMethod } from './client.CipPQkhk.js';
|
2
|
-
import { e as StandardLinkCodec, b as StandardLinkOptions } from './client.
|
2
|
+
import { e as StandardLinkCodec, b as StandardLinkOptions, d as StandardLink, f as StandardLinkClient } from './client.C9U9n1f3.js';
|
3
3
|
import { Segment, Value } from '@orpc/shared';
|
4
4
|
import { StandardHeaders, StandardRequest, StandardLazyResponse } from '@orpc/standard-server';
|
5
5
|
|
@@ -83,5 +83,9 @@ declare class StandardRPCLinkCodec<T extends ClientContext> implements StandardL
|
|
83
83
|
|
84
84
|
interface StandardRPCLinkOptions<T extends ClientContext> extends StandardLinkOptions<T>, StandardRPCLinkCodecOptions<T>, StandardRPCJsonSerializerOptions {
|
85
85
|
}
|
86
|
+
declare class StandardRPCLink<T extends ClientContext> extends StandardLink<T> {
|
87
|
+
constructor(linkClient: StandardLinkClient<T>, options: StandardRPCLinkOptions<T>);
|
88
|
+
}
|
86
89
|
|
87
|
-
export { STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES as S,
|
90
|
+
export { STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES as S, StandardRPCJsonSerializer as e, StandardRPCLink as g, StandardRPCLinkCodec as i, StandardRPCSerializer as j };
|
91
|
+
export type { StandardRPCJsonSerializedMetaItem as a, StandardRPCJsonSerialized as b, StandardRPCCustomJsonSerializer as c, StandardRPCJsonSerializerOptions as d, StandardRPCLinkOptions as f, StandardRPCLinkCodecOptions as h };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { a as ClientContext, b as ClientOptions, d as HTTPMethod } from './client.CipPQkhk.mjs';
|
2
|
-
import { e as StandardLinkCodec, b as StandardLinkOptions } from './client.
|
2
|
+
import { e as StandardLinkCodec, b as StandardLinkOptions, d as StandardLink, f as StandardLinkClient } from './client.FXep-a3a.mjs';
|
3
3
|
import { Segment, Value } from '@orpc/shared';
|
4
4
|
import { StandardHeaders, StandardRequest, StandardLazyResponse } from '@orpc/standard-server';
|
5
5
|
|
@@ -83,5 +83,9 @@ declare class StandardRPCLinkCodec<T extends ClientContext> implements StandardL
|
|
83
83
|
|
84
84
|
interface StandardRPCLinkOptions<T extends ClientContext> extends StandardLinkOptions<T>, StandardRPCLinkCodecOptions<T>, StandardRPCJsonSerializerOptions {
|
85
85
|
}
|
86
|
+
declare class StandardRPCLink<T extends ClientContext> extends StandardLink<T> {
|
87
|
+
constructor(linkClient: StandardLinkClient<T>, options: StandardRPCLinkOptions<T>);
|
88
|
+
}
|
86
89
|
|
87
|
-
export { STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES as S,
|
90
|
+
export { STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES as S, StandardRPCJsonSerializer as e, StandardRPCLink as g, StandardRPCLinkCodec as i, StandardRPCSerializer as j };
|
91
|
+
export type { StandardRPCJsonSerializedMetaItem as a, StandardRPCJsonSerialized as b, StandardRPCCustomJsonSerializer as c, StandardRPCJsonSerializerOptions as d, StandardRPCLinkOptions as f, StandardRPCLinkCodecOptions as h };
|
@@ -2,6 +2,16 @@ import { Interceptor, ThrowableError } from '@orpc/shared';
|
|
2
2
|
import { StandardRequest, StandardLazyResponse } from '@orpc/standard-server';
|
3
3
|
import { a as ClientContext, b as ClientOptions, C as ClientLink } from './client.CipPQkhk.js';
|
4
4
|
|
5
|
+
interface StandardLinkPlugin<T extends ClientContext> {
|
6
|
+
order?: number;
|
7
|
+
init?(options: StandardLinkOptions<T>): void;
|
8
|
+
}
|
9
|
+
declare class CompositeStandardLinkPlugin<T extends ClientContext, TPlugin extends StandardLinkPlugin<T>> implements StandardLinkPlugin<T> {
|
10
|
+
protected readonly plugins: TPlugin[];
|
11
|
+
constructor(plugins?: readonly TPlugin[]);
|
12
|
+
init(options: StandardLinkOptions<T>): void;
|
13
|
+
}
|
14
|
+
|
5
15
|
interface StandardLinkCodec<T extends ClientContext> {
|
6
16
|
encode(path: readonly string[], input: unknown, options: ClientOptions<T>): Promise<StandardRequest>;
|
7
17
|
decode(response: StandardLazyResponse, options: ClientOptions<T>, path: readonly string[], input: unknown): Promise<unknown>;
|
@@ -10,11 +20,6 @@ interface StandardLinkClient<T extends ClientContext> {
|
|
10
20
|
call(request: StandardRequest, options: ClientOptions<T>, path: readonly string[], input: unknown): Promise<StandardLazyResponse>;
|
11
21
|
}
|
12
22
|
|
13
|
-
declare class InvalidEventIteratorRetryResponse extends Error {
|
14
|
-
}
|
15
|
-
interface StandardLinkPlugin<T extends ClientContext> {
|
16
|
-
init?(options: StandardLinkOptions<T>): void;
|
17
|
-
}
|
18
23
|
interface StandardLinkInterceptorOptions<T extends ClientContext> extends ClientOptions<T> {
|
19
24
|
path: readonly string[];
|
20
25
|
input: unknown;
|
@@ -37,4 +42,5 @@ declare class StandardLink<T extends ClientContext> implements ClientLink<T> {
|
|
37
42
|
call(path: readonly string[], input: unknown, options: ClientOptions<T>): Promise<unknown>;
|
38
43
|
}
|
39
44
|
|
40
|
-
export {
|
45
|
+
export { CompositeStandardLinkPlugin as C, StandardLink as d };
|
46
|
+
export type { StandardLinkClientInterceptorOptions as S, StandardLinkPlugin as a, StandardLinkOptions as b, StandardLinkInterceptorOptions as c, StandardLinkCodec as e, StandardLinkClient as f };
|
@@ -2,15 +2,24 @@ import { toArray, intercept, isObject, value, isAsyncIteratorObject, stringifyJS
|
|
2
2
|
import { mergeStandardHeaders, ErrorEvent } from '@orpc/standard-server';
|
3
3
|
import { C as COMMON_ORPC_ERROR_DEFS, b as isORPCErrorStatus, c as isORPCErrorJson, d as createORPCErrorFromJson, O as ORPCError, m as mapEventIterator, t as toORPCError } from './client.CRWEpqLB.mjs';
|
4
4
|
|
5
|
-
class
|
5
|
+
class CompositeStandardLinkPlugin {
|
6
|
+
plugins;
|
7
|
+
constructor(plugins = []) {
|
8
|
+
this.plugins = [...plugins].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
9
|
+
}
|
10
|
+
init(options) {
|
11
|
+
for (const plugin of this.plugins) {
|
12
|
+
plugin.init?.(options);
|
13
|
+
}
|
14
|
+
}
|
6
15
|
}
|
16
|
+
|
7
17
|
class StandardLink {
|
8
18
|
constructor(codec, sender, options = {}) {
|
9
19
|
this.codec = codec;
|
10
20
|
this.sender = sender;
|
11
|
-
|
12
|
-
|
13
|
-
}
|
21
|
+
const plugin = new CompositeStandardLinkPlugin(options.plugins);
|
22
|
+
plugin.init(options);
|
14
23
|
this.interceptors = toArray(options.interceptors);
|
15
24
|
this.clientInterceptors = toArray(options.clientInterceptors);
|
16
25
|
}
|
@@ -258,7 +267,7 @@ class StandardRPCLinkCodec {
|
|
258
267
|
}
|
259
268
|
throw new ORPCError(getMalformedResponseErrorCode(response.status), {
|
260
269
|
status: response.status,
|
261
|
-
data: deserialized
|
270
|
+
data: { ...response, body: deserialized }
|
262
271
|
});
|
263
272
|
}
|
264
273
|
return deserialized;
|
@@ -334,4 +343,13 @@ class StandardRPCSerializer {
|
|
334
343
|
}
|
335
344
|
}
|
336
345
|
|
337
|
-
|
346
|
+
class StandardRPCLink extends StandardLink {
|
347
|
+
constructor(linkClient, options) {
|
348
|
+
const jsonSerializer = new StandardRPCJsonSerializer(options);
|
349
|
+
const serializer = new StandardRPCSerializer(jsonSerializer);
|
350
|
+
const linkCodec = new StandardRPCLinkCodec(serializer, options);
|
351
|
+
super(linkCodec, linkClient, options);
|
352
|
+
}
|
353
|
+
}
|
354
|
+
|
355
|
+
export { CompositeStandardLinkPlugin as C, StandardLink as S, STANDARD_RPC_JSON_SERIALIZER_BUILT_IN_TYPES as a, StandardRPCJsonSerializer as b, StandardRPCLink as c, StandardRPCLinkCodec as d, StandardRPCSerializer as e, getMalformedResponseErrorCode as g, toHttpPath as t };
|
@@ -2,6 +2,16 @@ import { Interceptor, ThrowableError } from '@orpc/shared';
|
|
2
2
|
import { StandardRequest, StandardLazyResponse } from '@orpc/standard-server';
|
3
3
|
import { a as ClientContext, b as ClientOptions, C as ClientLink } from './client.CipPQkhk.mjs';
|
4
4
|
|
5
|
+
interface StandardLinkPlugin<T extends ClientContext> {
|
6
|
+
order?: number;
|
7
|
+
init?(options: StandardLinkOptions<T>): void;
|
8
|
+
}
|
9
|
+
declare class CompositeStandardLinkPlugin<T extends ClientContext, TPlugin extends StandardLinkPlugin<T>> implements StandardLinkPlugin<T> {
|
10
|
+
protected readonly plugins: TPlugin[];
|
11
|
+
constructor(plugins?: readonly TPlugin[]);
|
12
|
+
init(options: StandardLinkOptions<T>): void;
|
13
|
+
}
|
14
|
+
|
5
15
|
interface StandardLinkCodec<T extends ClientContext> {
|
6
16
|
encode(path: readonly string[], input: unknown, options: ClientOptions<T>): Promise<StandardRequest>;
|
7
17
|
decode(response: StandardLazyResponse, options: ClientOptions<T>, path: readonly string[], input: unknown): Promise<unknown>;
|
@@ -10,11 +20,6 @@ interface StandardLinkClient<T extends ClientContext> {
|
|
10
20
|
call(request: StandardRequest, options: ClientOptions<T>, path: readonly string[], input: unknown): Promise<StandardLazyResponse>;
|
11
21
|
}
|
12
22
|
|
13
|
-
declare class InvalidEventIteratorRetryResponse extends Error {
|
14
|
-
}
|
15
|
-
interface StandardLinkPlugin<T extends ClientContext> {
|
16
|
-
init?(options: StandardLinkOptions<T>): void;
|
17
|
-
}
|
18
23
|
interface StandardLinkInterceptorOptions<T extends ClientContext> extends ClientOptions<T> {
|
19
24
|
path: readonly string[];
|
20
25
|
input: unknown;
|
@@ -37,4 +42,5 @@ declare class StandardLink<T extends ClientContext> implements ClientLink<T> {
|
|
37
42
|
call(path: readonly string[], input: unknown, options: ClientOptions<T>): Promise<unknown>;
|
38
43
|
}
|
39
44
|
|
40
|
-
export {
|
45
|
+
export { CompositeStandardLinkPlugin as C, StandardLink as d };
|
46
|
+
export type { StandardLinkClientInterceptorOptions as S, StandardLinkPlugin as a, StandardLinkOptions as b, StandardLinkInterceptorOptions as c, StandardLinkCodec as e, StandardLinkClient as f };
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/client",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.0-next.
|
4
|
+
"version": "0.0.0-next.d9aa1c2",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -39,9 +39,9 @@
|
|
39
39
|
"dist"
|
40
40
|
],
|
41
41
|
"dependencies": {
|
42
|
-
"@orpc/shared": "0.0.0-next.
|
43
|
-
"@orpc/standard-server": "0.0.0-next.
|
44
|
-
"@orpc/standard-server-fetch": "0.0.0-next.
|
42
|
+
"@orpc/shared": "0.0.0-next.d9aa1c2",
|
43
|
+
"@orpc/standard-server": "0.0.0-next.d9aa1c2",
|
44
|
+
"@orpc/standard-server-fetch": "0.0.0-next.d9aa1c2"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"zod": "^3.24.2"
|