@orpc/zod 1.5.2 → 1.6.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.
- package/README.md +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
- **🔗 End-to-End Type Safety**: Ensure type-safe inputs, outputs, and errors from client to server.
|
31
31
|
- **📘 First-Class OpenAPI**: Built-in support that fully adheres to the OpenAPI standard.
|
32
32
|
- **📝 Contract-First Development**: Optionally define your API contract before implementation.
|
33
|
-
- **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte), Pinia Colada, and more.
|
33
|
+
- **⚙️ Framework Integrations**: Seamlessly integrate with TanStack Query (React, Vue, Solid, Svelte, Angular), Pinia Colada, and more.
|
34
34
|
- **🚀 Server Actions**: Fully compatible with React Server Actions on Next.js, TanStack Start, and other platforms.
|
35
35
|
- **🔠 Standard Schema Support**: Works out of the box with Zod, Valibot, ArkType, and other schema validators.
|
36
36
|
- **🗃️ Native Types**: Supports native types like Date, File, Blob, BigInt, URL, and more.
|
package/dist/index.mjs
CHANGED
@@ -789,7 +789,7 @@ class ZodToJsonSchemaConverter {
|
|
789
789
|
case ZodFirstPartyTypeKind.ZodNullable: {
|
790
790
|
const schema_ = schema;
|
791
791
|
const [required, json] = this.convert(schema_._def.innerType, options, lazyDepth, false, false, structureDepth);
|
792
|
-
return [required, { anyOf: [{ type: "null" }
|
792
|
+
return [required, { anyOf: [json, { type: "null" }] }];
|
793
793
|
}
|
794
794
|
}
|
795
795
|
return [true, this.unsupportedJsonSchema];
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/zod",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.6.0",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -30,18 +30,18 @@
|
|
30
30
|
],
|
31
31
|
"peerDependencies": {
|
32
32
|
"zod": ">=3.24.2",
|
33
|
-
"@orpc/contract": "1.
|
34
|
-
"@orpc/server": "1.
|
33
|
+
"@orpc/contract": "1.6.0",
|
34
|
+
"@orpc/server": "1.6.0"
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
37
|
"escape-string-regexp": "^5.0.0",
|
38
38
|
"wildcard-match": "^5.1.3",
|
39
|
-
"@orpc/openapi": "1.
|
40
|
-
"@orpc/shared": "1.
|
39
|
+
"@orpc/openapi": "1.6.0",
|
40
|
+
"@orpc/shared": "1.6.0"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"zod": "^3.25.
|
44
|
-
"zod-to-json-schema": "^3.24.
|
43
|
+
"zod": "^3.25.67",
|
44
|
+
"zod-to-json-schema": "^3.24.6"
|
45
45
|
},
|
46
46
|
"scripts": {
|
47
47
|
"build": "unbuild",
|