@orpc/zod 0.0.0-next.ea1d4fd → 0.0.0-next.eaec0b2

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
@@ -1,23 +1,23 @@
1
1
  <div align="center">
2
- <image align="center" src="https://orpc.unnoq.com/logo.webp" width=280 alt="oRPC logo" />
2
+ <image align="center" src="https://orpc.dev/logo.webp" width=280 alt="oRPC logo" />
3
3
  </div>
4
4
 
5
5
  <h1></h1>
6
6
 
7
7
  <div align="center">
8
- <a href="https://codecov.io/gh/unnoq/orpc">
9
- <img alt="codecov" src="https://codecov.io/gh/unnoq/orpc/branch/main/graph/badge.svg">
8
+ <a href="https://codecov.io/gh/middleapi/orpc">
9
+ <img alt="codecov" src="https://codecov.io/gh/middleapi/orpc/branch/main/graph/badge.svg">
10
10
  </a>
11
11
  <a href="https://www.npmjs.com/package/@orpc/zod">
12
12
  <img alt="weekly downloads" src="https://img.shields.io/npm/dw/%40orpc%2Fzod?logo=npm" />
13
13
  </a>
14
- <a href="https://github.com/unnoq/orpc/blob/main/LICENSE">
15
- <img alt="MIT License" src="https://img.shields.io/github/license/unnoq/orpc?logo=open-source-initiative" />
14
+ <a href="https://github.com/middleapi/orpc/blob/main/LICENSE">
15
+ <img alt="MIT License" src="https://img.shields.io/github/license/middleapi/orpc?logo=open-source-initiative" />
16
16
  </a>
17
17
  <a href="https://discord.gg/TXEbwRBvQn">
18
18
  <img alt="Discord" src="https://img.shields.io/discord/1308966753044398161?color=7389D8&label&logo=discord&logoColor=ffffff" />
19
19
  </a>
20
- <a href="https://deepwiki.com/unnoq/orpc">
20
+ <a href="https://deepwiki.com/middleapi/orpc">
21
21
  <img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki">
22
22
  </a>
23
23
  </div>
@@ -45,7 +45,7 @@
45
45
 
46
46
  ## Documentation
47
47
 
48
- You can find the full documentation [here](https://orpc.unnoq.com).
48
+ You can find the full documentation [here](https://orpc.dev).
49
49
 
50
50
  ## Packages
51
51
 
@@ -142,4 +142,4 @@ const InputSchema = oz.openapi(
142
142
 
143
143
  ## License
144
144
 
145
- Distributed under the MIT License. See [LICENSE](https://github.com/unnoq/orpc/blob/main/LICENSE) for more information.
145
+ Distributed under the MIT License. See [LICENSE](https://github.com/middleapi/orpc/blob/main/LICENSE) for more information.
@@ -7,7 +7,7 @@ import * as zod_v4_core from 'zod/v4/core';
7
7
  import { $ZodType, $input, $output } from 'zod/v4/core';
8
8
 
9
9
  /**
10
- * @deprecated Use [Smart Coercion Plugin](https://orpc.unnoq.com/docs/openapi/plugins/smart-coercion) instead.
10
+ * @deprecated Use [Smart Coercion Plugin](https://orpc.dev/docs/openapi/plugins/smart-coercion) instead.
11
11
  */
12
12
  declare class experimental_ZodSmartCoercionPlugin<TContext extends Context> implements StandardHandlerPlugin<TContext> {
13
13
  #private;
@@ -7,7 +7,7 @@ import * as zod_v4_core from 'zod/v4/core';
7
7
  import { $ZodType, $input, $output } from 'zod/v4/core';
8
8
 
9
9
  /**
10
- * @deprecated Use [Smart Coercion Plugin](https://orpc.unnoq.com/docs/openapi/plugins/smart-coercion) instead.
10
+ * @deprecated Use [Smart Coercion Plugin](https://orpc.dev/docs/openapi/plugins/smart-coercion) instead.
11
11
  */
12
12
  declare class experimental_ZodSmartCoercionPlugin<TContext extends Context> implements StandardHandlerPlugin<TContext> {
13
13
  #private;
@@ -591,7 +591,13 @@ class ZodToJsonSchemaConverter {
591
591
  }
592
592
  case "pipe": {
593
593
  const pipe = schema2;
594
- return this.#convert(options2.strategy === "input" ? pipe._zod.def.in : pipe._zod.def.out, options2, lazyDepth2, structureDepth);
594
+ return this.#convert(
595
+ // prefer out schema when in schema is preprocess/transform
596
+ options2.strategy === "input" && pipe._zod.def.in._zod.def.type !== "transform" ? pipe._zod.def.in : pipe._zod.def.out,
597
+ options2,
598
+ lazyDepth2,
599
+ structureDepth
600
+ );
595
601
  }
596
602
  case "readonly": {
597
603
  const readonly_ = schema2;
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@orpc/zod",
3
3
  "type": "module",
4
- "version": "0.0.0-next.ea1d4fd",
4
+ "version": "0.0.0-next.eaec0b2",
5
5
  "license": "MIT",
6
- "homepage": "https://orpc.unnoq.com",
6
+ "homepage": "https://orpc.dev",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/unnoq/orpc.git",
9
+ "url": "git+https://github.com/middleapi/orpc.git",
10
10
  "directory": "packages/zod"
11
11
  },
12
12
  "keywords": [
13
- "unnoq",
14
13
  "orpc"
15
14
  ],
16
15
  "exports": {
@@ -30,18 +29,18 @@
30
29
  ],
31
30
  "peerDependencies": {
32
31
  "zod": ">=3.25.0",
33
- "@orpc/contract": "0.0.0-next.ea1d4fd",
34
- "@orpc/server": "0.0.0-next.ea1d4fd"
32
+ "@orpc/contract": "0.0.0-next.eaec0b2",
33
+ "@orpc/server": "0.0.0-next.eaec0b2"
35
34
  },
36
35
  "dependencies": {
37
36
  "escape-string-regexp": "^5.0.0",
38
- "wildcard-match": "^5.1.3",
39
- "@orpc/json-schema": "0.0.0-next.ea1d4fd",
40
- "@orpc/openapi": "0.0.0-next.ea1d4fd",
41
- "@orpc/shared": "0.0.0-next.ea1d4fd"
37
+ "wildcard-match": "^5.1.4",
38
+ "@orpc/json-schema": "0.0.0-next.eaec0b2",
39
+ "@orpc/shared": "0.0.0-next.eaec0b2",
40
+ "@orpc/openapi": "0.0.0-next.eaec0b2"
42
41
  },
43
42
  "devDependencies": {
44
- "zod": "^4.1.12"
43
+ "zod": "^4.3.2"
45
44
  },
46
45
  "scripts": {
47
46
  "build": "unbuild",