@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.
@@ -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
  }
@@ -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
  }
@@ -41,8 +41,11 @@ class ResponseValidationPlugin {
41
41
  constructor(contract) {
42
42
  this.contract = contract;
43
43
  }
44
- order = 15e5;
45
- // make sure run before DurableEventIteratorLinkPlugin
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.8.9",
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/client": "1.8.9",
35
- "@orpc/shared": "1.8.9"
34
+ "@orpc/shared": "1.9.0",
35
+ "@orpc/client": "1.9.0"
36
36
  },
37
37
  "devDependencies": {
38
- "arktype": "2.1.21",
38
+ "arktype": "2.1.22",
39
39
  "valibot": "^1.1.0",
40
- "zod": "^4.1.5"
40
+ "zod": "^4.1.11"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "unbuild",