@orpc/zod 1.13.0 → 1.13.2
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/zod4/index.mjs +7 -1
- package/package.json +8 -8
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/zod",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"zod": ">=3.25.0",
|
|
33
|
-
"@orpc/contract": "1.13.
|
|
34
|
-
"@orpc/server": "1.13.
|
|
33
|
+
"@orpc/contract": "1.13.2",
|
|
34
|
+
"@orpc/server": "1.13.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"escape-string-regexp": "^5.0.0",
|
|
38
|
-
"wildcard-match": "^5.1.
|
|
39
|
-
"@orpc/json-schema": "1.13.
|
|
40
|
-
"@orpc/
|
|
41
|
-
"@orpc/
|
|
38
|
+
"wildcard-match": "^5.1.4",
|
|
39
|
+
"@orpc/json-schema": "1.13.2",
|
|
40
|
+
"@orpc/shared": "1.13.2",
|
|
41
|
+
"@orpc/openapi": "1.13.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"zod": "^4.1
|
|
44
|
+
"zod": "^4.2.1"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "unbuild",
|