@kubb/plugin-zod 5.4.12 → 5.4.14
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.cjs +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/kubb-extension.json +30 -0
- package/package.json +4 -4
package/kubb-extension.json
CHANGED
|
@@ -205,6 +205,36 @@
|
|
|
205
205
|
"description": "Wrap schemas in z.coerce so input is coerced before validation",
|
|
206
206
|
"type": "boolean",
|
|
207
207
|
"default": false
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"key": "compile",
|
|
211
|
+
"path": ["compile"],
|
|
212
|
+
"label": "Compile",
|
|
213
|
+
"description": "Wrap schemas with z.compile(...) for faster validation. Needs Zod 4.5 or later",
|
|
214
|
+
"type": "boolean",
|
|
215
|
+
"default": false
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"key": "typeGuards",
|
|
219
|
+
"path": ["typeGuards"],
|
|
220
|
+
"label": "Type Guards",
|
|
221
|
+
"description": "Generate is* type guards and assert* functions for each schema. Needs Zod 4.6 or later",
|
|
222
|
+
"type": "boolean",
|
|
223
|
+
"default": false
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"key": "banner",
|
|
227
|
+
"path": ["output", "banner"],
|
|
228
|
+
"label": "Banner",
|
|
229
|
+
"description": "Text added at the top of every generated file",
|
|
230
|
+
"type": "text"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"key": "footer",
|
|
234
|
+
"path": ["output", "footer"],
|
|
235
|
+
"label": "Footer",
|
|
236
|
+
"description": "Text added at the end of every generated file",
|
|
237
|
+
"type": "text"
|
|
208
238
|
}
|
|
209
239
|
]
|
|
210
240
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-zod",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.14",
|
|
4
4
|
"description": "Generate Zod validation schemas with Kubb for runtime data parsing and type safety. Pairs with @kubb/plugin-ts for end-to-end type coverage.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generation",
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@internals/shared": "0.0.0",
|
|
73
73
|
"@internals/utils": "0.0.0",
|
|
74
|
-
"kubb": "^5.
|
|
75
|
-
"zod": "^4.6.
|
|
74
|
+
"kubb": "^5.12.7",
|
|
75
|
+
"zod": "^4.6.7"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"kubb": "^5.
|
|
78
|
+
"kubb": "^5.12.7",
|
|
79
79
|
"zod": "^4.0.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependenciesMeta": {
|