@orpc/contract 1.8.9 → 1.9.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/plugins/index.d.mts
CHANGED
|
@@ -32,6 +32,10 @@ declare class RequestValidationPlugin<T extends ClientContext> implements Standa
|
|
|
32
32
|
declare class ResponseValidationPlugin<T extends ClientContext> implements StandardLinkPlugin<T> {
|
|
33
33
|
private readonly contract;
|
|
34
34
|
constructor(contract: AnyContractRouter);
|
|
35
|
+
/**
|
|
36
|
+
* run before (validate after) retry plugin, because validation failed can't be retried
|
|
37
|
+
* run before (validate after) durable iterator plugin, because we expect durable iterator to validation (if user use it)
|
|
38
|
+
*/
|
|
35
39
|
order: number;
|
|
36
40
|
init(options: StandardLinkOptions<T>): void;
|
|
37
41
|
}
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -32,6 +32,10 @@ declare class RequestValidationPlugin<T extends ClientContext> implements Standa
|
|
|
32
32
|
declare class ResponseValidationPlugin<T extends ClientContext> implements StandardLinkPlugin<T> {
|
|
33
33
|
private readonly contract;
|
|
34
34
|
constructor(contract: AnyContractRouter);
|
|
35
|
+
/**
|
|
36
|
+
* run before (validate after) retry plugin, because validation failed can't be retried
|
|
37
|
+
* run before (validate after) durable iterator plugin, because we expect durable iterator to validation (if user use it)
|
|
38
|
+
*/
|
|
35
39
|
order: number;
|
|
36
40
|
init(options: StandardLinkOptions<T>): void;
|
|
37
41
|
}
|
package/dist/plugins/index.mjs
CHANGED
|
@@ -41,8 +41,11 @@ class ResponseValidationPlugin {
|
|
|
41
41
|
constructor(contract) {
|
|
42
42
|
this.contract = contract;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
/**
|
|
45
|
+
* run before (validate after) retry plugin, because validation failed can't be retried
|
|
46
|
+
* run before (validate after) durable iterator plugin, because we expect durable iterator to validation (if user use it)
|
|
47
|
+
*/
|
|
48
|
+
order = 12e5;
|
|
46
49
|
init(options) {
|
|
47
50
|
options.interceptors ??= [];
|
|
48
51
|
options.interceptors.push(async ({ next, path }) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/contract",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.9.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@standard-schema/spec": "^1.0.0",
|
|
33
33
|
"openapi-types": "^12.1.3",
|
|
34
|
-
"@orpc/
|
|
35
|
-
"@orpc/
|
|
34
|
+
"@orpc/shared": "1.9.0",
|
|
35
|
+
"@orpc/client": "1.9.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"arktype": "2.1.
|
|
38
|
+
"arktype": "2.1.22",
|
|
39
39
|
"valibot": "^1.1.0",
|
|
40
|
-
"zod": "^4.1.
|
|
40
|
+
"zod": "^4.1.11"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "unbuild",
|