@orpc/zod 1.13.1 → 1.13.4
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 +6 -6
- package/dist/zod4/index.mjs +7 -1
- package/package.json +9 -10
package/README.md
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
<h1></h1>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
|
-
<a href="https://codecov.io/gh/
|
|
9
|
-
<img alt="codecov" src="https://codecov.io/gh/
|
|
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/
|
|
15
|
-
<img alt="MIT License" src="https://img.shields.io/github/license/
|
|
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/
|
|
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>
|
|
@@ -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/
|
|
145
|
+
Distributed under the MIT License. See [LICENSE](https://github.com/middleapi/orpc/blob/main/LICENSE) for more information.
|
package/dist/zod4/index.mjs
CHANGED
|
@@ -591,7 +591,13 @@ class ZodToJsonSchemaConverter {
|
|
|
591
591
|
}
|
|
592
592
|
case "pipe": {
|
|
593
593
|
const pipe = schema2;
|
|
594
|
-
return this.#convert(
|
|
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": "1.13.
|
|
4
|
+
"version": "1.13.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
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": "1.13.
|
|
34
|
-
"@orpc/server": "1.13.
|
|
32
|
+
"@orpc/contract": "1.13.4",
|
|
33
|
+
"@orpc/server": "1.13.4"
|
|
35
34
|
},
|
|
36
35
|
"dependencies": {
|
|
37
36
|
"escape-string-regexp": "^5.0.0",
|
|
38
|
-
"wildcard-match": "^5.1.
|
|
39
|
-
"@orpc/json-schema": "1.13.
|
|
40
|
-
"@orpc/
|
|
41
|
-
"@orpc/
|
|
37
|
+
"wildcard-match": "^5.1.4",
|
|
38
|
+
"@orpc/json-schema": "1.13.4",
|
|
39
|
+
"@orpc/shared": "1.13.4",
|
|
40
|
+
"@orpc/openapi": "1.13.4"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
|
-
"zod": "^4.
|
|
43
|
+
"zod": "^4.3.2"
|
|
45
44
|
},
|
|
46
45
|
"scripts": {
|
|
47
46
|
"build": "unbuild",
|