@orpc/zod 1.7.2 → 1.7.3
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/index.mjs +1 -1
- package/dist/zod4/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
@@ -401,7 +401,7 @@ class ZodToJsonSchemaConverter {
|
|
401
401
|
this.anyJsonSchema = options.anyJsonSchema ?? {};
|
402
402
|
}
|
403
403
|
condition(schema) {
|
404
|
-
return schema !== void 0 && schema["~standard"].vendor === "zod";
|
404
|
+
return schema !== void 0 && schema["~standard"].vendor === "zod" && !("_zod" in schema);
|
405
405
|
}
|
406
406
|
convert(schema, options, lazyDepth = 0, isHandledCustomJSONSchema = false, isHandledZodDescription = false, structureDepth = 0) {
|
407
407
|
const def = schema._def;
|
package/dist/zod4/index.mjs
CHANGED
@@ -289,7 +289,7 @@ class ZodToJsonSchemaConverter {
|
|
289
289
|
this.interceptors = options.interceptors ?? [];
|
290
290
|
}
|
291
291
|
condition(schema) {
|
292
|
-
return schema !== void 0 && schema["~standard"].vendor === "zod";
|
292
|
+
return schema !== void 0 && schema["~standard"].vendor === "zod" && "_zod" in schema;
|
293
293
|
}
|
294
294
|
convert(schema, options) {
|
295
295
|
return this.#convert(schema, options, 0, 0);
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/zod",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.7.
|
4
|
+
"version": "1.7.3",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -30,15 +30,15 @@
|
|
30
30
|
],
|
31
31
|
"peerDependencies": {
|
32
32
|
"zod": ">=3.25.0",
|
33
|
-
"@orpc/contract": "1.7.
|
34
|
-
"@orpc/server": "1.7.
|
33
|
+
"@orpc/contract": "1.7.3",
|
34
|
+
"@orpc/server": "1.7.3"
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
37
|
"escape-string-regexp": "^5.0.0",
|
38
38
|
"wildcard-match": "^5.1.3",
|
39
|
-
"@orpc/
|
40
|
-
"@orpc/
|
41
|
-
"@orpc/openapi": "1.7.
|
39
|
+
"@orpc/json-schema": "1.7.3",
|
40
|
+
"@orpc/shared": "1.7.3",
|
41
|
+
"@orpc/openapi": "1.7.3"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
44
|
"zod": "^4.0.5"
|