@orpc/client 0.52.0 → 0.53.0
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/dist/adapters/fetch/index.d.mts +4 -4
- package/dist/adapters/fetch/index.d.ts +4 -4
- package/dist/adapters/fetch/index.mjs +4 -7
- package/dist/adapters/standard/index.d.mts +3 -3
- package/dist/adapters/standard/index.d.ts +3 -3
- package/dist/adapters/standard/index.mjs +2 -2
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.mjs +5 -5
- package/dist/plugins/index.d.mts +102 -20
- package/dist/plugins/index.d.ts +102 -20
- package/dist/plugins/index.mjs +196 -32
- package/dist/shared/{client.grRbC25r.d.ts → client.Bt2hFtM_.d.mts} +18 -12
- package/dist/shared/{client.jKEwIsRd.mjs → client.CRWEpqLB.mjs} +17 -17
- package/dist/shared/{client.C0lT7w02.d.mts → client.CipPQkhk.d.mts} +6 -7
- package/dist/shared/{client.C0lT7w02.d.ts → client.CipPQkhk.d.ts} +6 -7
- package/dist/shared/{client.Bt94sjrK.d.mts → client.DXvQo1nS.d.mts} +10 -23
- package/dist/shared/{client.D-jrSuDb.d.ts → client.Dc8eXpCj.d.ts} +10 -23
- package/dist/shared/{client.DhAxdT4W.mjs → client.DpICn1BD.mjs} +34 -15
- package/dist/shared/{client.5813Ufvs.d.mts → client.FvDtk0Vr.d.ts} +18 -12
- package/package.json +4 -4
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Interceptor, ThrowableError } from '@orpc/shared';
|
2
2
|
import { StandardRequest, StandardLazyResponse } from '@orpc/standard-server';
|
3
|
-
import { a as ClientContext, b as ClientOptions, C as ClientLink } from './client.
|
3
|
+
import { a as ClientContext, b as ClientOptions, C as ClientLink } from './client.CipPQkhk.js';
|
4
4
|
|
5
5
|
interface StandardLinkCodec<T extends ClientContext> {
|
6
6
|
encode(path: readonly string[], input: unknown, options: ClientOptions<T>): Promise<StandardRequest>;
|
@@ -10,20 +10,26 @@ interface StandardLinkClient<T extends ClientContext> {
|
|
10
10
|
call(request: StandardRequest, options: ClientOptions<T>, path: readonly string[], input: unknown): Promise<StandardLazyResponse>;
|
11
11
|
}
|
12
12
|
|
13
|
-
declare class InvalidEventIteratorRetryResponse extends Error {
|
14
|
-
}
|
15
13
|
interface StandardLinkPlugin<T extends ClientContext> {
|
14
|
+
order?: number;
|
16
15
|
init?(options: StandardLinkOptions<T>): void;
|
17
16
|
}
|
17
|
+
declare class CompositeStandardLinkPlugin<T extends ClientContext, TPlugin extends StandardLinkPlugin<T>> implements StandardLinkPlugin<T> {
|
18
|
+
protected readonly plugins: TPlugin[];
|
19
|
+
constructor(plugins?: readonly TPlugin[]);
|
20
|
+
init(options: StandardLinkOptions<T>): void;
|
21
|
+
}
|
22
|
+
|
23
|
+
interface StandardLinkInterceptorOptions<T extends ClientContext> extends ClientOptions<T> {
|
24
|
+
path: readonly string[];
|
25
|
+
input: unknown;
|
26
|
+
}
|
27
|
+
interface StandardLinkClientInterceptorOptions<T extends ClientContext> extends StandardLinkInterceptorOptions<T> {
|
28
|
+
request: StandardRequest;
|
29
|
+
}
|
18
30
|
interface StandardLinkOptions<T extends ClientContext> {
|
19
|
-
interceptors?: Interceptor<
|
20
|
-
|
21
|
-
input: unknown;
|
22
|
-
options: ClientOptions<T>;
|
23
|
-
}, unknown, ThrowableError>[];
|
24
|
-
clientInterceptors?: Interceptor<{
|
25
|
-
request: StandardRequest;
|
26
|
-
}, StandardLazyResponse, ThrowableError>[];
|
31
|
+
interceptors?: Interceptor<StandardLinkInterceptorOptions<T>, unknown, ThrowableError>[];
|
32
|
+
clientInterceptors?: Interceptor<StandardLinkClientInterceptorOptions<T>, StandardLazyResponse, ThrowableError>[];
|
27
33
|
plugins?: StandardLinkPlugin<T>[];
|
28
34
|
}
|
29
35
|
declare class StandardLink<T extends ClientContext> implements ClientLink<T> {
|
@@ -36,4 +42,4 @@ declare class StandardLink<T extends ClientContext> implements ClientLink<T> {
|
|
36
42
|
call(path: readonly string[], input: unknown, options: ClientOptions<T>): Promise<unknown>;
|
37
43
|
}
|
38
44
|
|
39
|
-
export {
|
45
|
+
export { CompositeStandardLinkPlugin as C, type StandardLinkClientInterceptorOptions as S, type StandardLinkPlugin as a, type StandardLinkOptions as b, type StandardLinkInterceptorOptions as c, StandardLink as d, type StandardLinkCodec as e, type 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.
|
4
|
+
"version": "0.53.0",
|
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/standard-server": "0.
|
43
|
-
"@orpc/
|
44
|
-
"@orpc/
|
42
|
+
"@orpc/standard-server": "0.53.0",
|
43
|
+
"@orpc/shared": "0.53.0",
|
44
|
+
"@orpc/standard-server-fetch": "0.53.0"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"zod": "^3.24.2"
|