@kubb/plugin-zod 5.4.5 → 5.4.7
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 +2 -2
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/docs/guides/customization.md +148 -0
- package/docs/options.md +273 -0
- package/docs/overview.md +40 -0
- package/kubb-extension.json +210 -0
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { Resolver, addGenerator, ast, containsCircularRef, createResolver,
|
|
2
|
+
import { Resolver, addGenerator, ast, containsCircularRef, createResolver, defineExtension, defineGenerator, extractRefName, setMacros, setResolver, syncSchemaRef } from "kubb/kit";
|
|
3
3
|
import { Const, File, Function, Type, jsxRenderer } from "kubb/jsx";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "kubb/jsx/jsx-runtime";
|
|
5
5
|
//#region ../../internals/shared/src/params.ts
|
|
@@ -2219,8 +2219,14 @@ const zodGenerator = defineGenerator({
|
|
|
2219
2219
|
}
|
|
2220
2220
|
});
|
|
2221
2221
|
//#endregion
|
|
2222
|
+
//#region kubb-extension.json
|
|
2223
|
+
var compatibility = {
|
|
2224
|
+
"kubb": ">=5.8.3",
|
|
2225
|
+
"node": ">=22"
|
|
2226
|
+
};
|
|
2227
|
+
//#endregion
|
|
2222
2228
|
//#region package.json
|
|
2223
|
-
var version = "5.4.
|
|
2229
|
+
var version = "5.4.7";
|
|
2224
2230
|
//#endregion
|
|
2225
2231
|
//#region src/resolvers/resolverZod.ts
|
|
2226
2232
|
/**
|
|
@@ -2308,11 +2314,12 @@ const pluginZodName = "plugin-zod";
|
|
|
2308
2314
|
* })
|
|
2309
2315
|
* ```
|
|
2310
2316
|
*/
|
|
2311
|
-
const pluginZod =
|
|
2317
|
+
const pluginZod = defineExtension({
|
|
2318
|
+
kind: "plugin",
|
|
2312
2319
|
meta: {
|
|
2313
2320
|
name: pluginZodName,
|
|
2314
2321
|
version,
|
|
2315
|
-
compatibility
|
|
2322
|
+
compatibility
|
|
2316
2323
|
},
|
|
2317
2324
|
setup(options) {
|
|
2318
2325
|
const { output = {
|