@kubb/plugin-zod 3.17.1 → 3.18.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.
@@ -1,4 +1,4 @@
1
- import { Operation, PluginZod, Schema, SchemaObject } from "./types-B0UqdcbG.cjs";
1
+ import { Operation, PluginZod, Schema, SchemaObject } from "./types-C4zDVwZ4.cjs";
2
2
 
3
3
  //#region ../plugin-oas/src/hooks/useOperationManager.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { Operation, PluginZod, Schema, SchemaObject } from "./types-YpNWeJUW.js";
1
+ import { Operation, PluginZod, Schema, SchemaObject } from "./types-BY-RtmUj.js";
2
2
 
3
3
  //#region ../plugin-oas/src/hooks/useOperationManager.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { Generator, PluginZod } from "./types-B0UqdcbG.cjs";
1
+ import { Generator, PluginZod } from "./types-C4zDVwZ4.cjs";
2
2
 
3
3
  //#region src/generators/zodGenerator.d.ts
4
4
  declare const zodGenerator: Generator<PluginZod>;
@@ -1,4 +1,4 @@
1
- import { Generator, PluginZod } from "./types-YpNWeJUW.js";
1
+ import { Generator, PluginZod } from "./types-BY-RtmUj.js";
2
2
 
3
3
  //#region src/generators/zodGenerator.d.ts
4
4
  declare const zodGenerator: Generator<PluginZod>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginZod, UserPluginWithLifeCycle } from "./types-B0UqdcbG.cjs";
1
+ import { Options, PluginZod, UserPluginWithLifeCycle } from "./types-C4zDVwZ4.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginZodName = "plugin-zod";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginZod, UserPluginWithLifeCycle } from "./types-YpNWeJUW.js";
1
+ import { Options, PluginZod, UserPluginWithLifeCycle } from "./types-BY-RtmUj.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginZodName = "plugin-zod";
@@ -270,6 +270,27 @@ type Config<TInput = Input> = {
270
270
  * @default true
271
271
  */
272
272
  write?: boolean;
273
+ /**
274
+ * Specifies the formatting tool to be used.
275
+ * @default prettier
276
+ *
277
+ * Possible values:
278
+ * - 'prettier': Uses Prettier for code formatting.
279
+ * - 'biome': Uses Biome for code formatting.
280
+ *
281
+ */
282
+ format?: 'prettier' | 'biome' | false;
283
+ /**
284
+ * Specifies the linter that should be used to analyze the code.
285
+ * The accepted values indicate different linting tools.
286
+ *
287
+ * Possible values:
288
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
289
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
290
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
291
+ *
292
+ */
293
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
273
294
  /**
274
295
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
275
296
  * @default { '.ts': '.ts'}
@@ -1234,4 +1255,4 @@ type ResolvedOptions = {
1234
1255
  type PluginZod = PluginFactoryOptions<'plugin-zod', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1235
1256
  //#endregion
1236
1257
  export { Generator, type Operation$1 as Operation, Options$1 as Options, PluginZod, Schema, SchemaObject$1 as SchemaObject, UserPluginWithLifeCycle };
1237
- //# sourceMappingURL=types-B0UqdcbG.d.cts.map
1258
+ //# sourceMappingURL=types-BY-RtmUj.d.ts.map
@@ -270,6 +270,27 @@ type Config<TInput = Input> = {
270
270
  * @default true
271
271
  */
272
272
  write?: boolean;
273
+ /**
274
+ * Specifies the formatting tool to be used.
275
+ * @default prettier
276
+ *
277
+ * Possible values:
278
+ * - 'prettier': Uses Prettier for code formatting.
279
+ * - 'biome': Uses Biome for code formatting.
280
+ *
281
+ */
282
+ format?: 'prettier' | 'biome' | false;
283
+ /**
284
+ * Specifies the linter that should be used to analyze the code.
285
+ * The accepted values indicate different linting tools.
286
+ *
287
+ * Possible values:
288
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
289
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
290
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
291
+ *
292
+ */
293
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
273
294
  /**
274
295
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
275
296
  * @default { '.ts': '.ts'}
@@ -1234,4 +1255,4 @@ type ResolvedOptions = {
1234
1255
  type PluginZod = PluginFactoryOptions<'plugin-zod', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1235
1256
  //#endregion
1236
1257
  export { Generator, type Operation$1 as Operation, Options$1 as Options, PluginZod, Schema, SchemaObject$1 as SchemaObject, UserPluginWithLifeCycle };
1237
- //# sourceMappingURL=types-YpNWeJUW.d.ts.map
1258
+ //# sourceMappingURL=types-C4zDVwZ4.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-zod",
3
- "version": "3.17.1",
3
+ "version": "3.18.0",
4
4
  "description": "Zod schema generator plugin for Kubb, creating type-safe validation schemas from OpenAPI specifications for runtime data validation.",
5
5
  "keywords": [
6
6
  "zod",
@@ -73,20 +73,20 @@
73
73
  "!/**/__tests__/**"
74
74
  ],
75
75
  "dependencies": {
76
- "@kubb/core": "3.17.1",
77
- "@kubb/oas": "3.17.1",
78
- "@kubb/parser-ts": "3.17.1",
79
- "@kubb/plugin-ts": "3.17.1",
80
- "@kubb/plugin-oas": "3.17.1",
81
- "@kubb/react": "3.17.1"
76
+ "@kubb/core": "3.18.0",
77
+ "@kubb/oas": "3.18.0",
78
+ "@kubb/parser-ts": "3.18.0",
79
+ "@kubb/plugin-oas": "3.18.0",
80
+ "@kubb/plugin-ts": "3.18.0",
81
+ "@kubb/react": "3.18.0"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@asteasolutions/zod-to-openapi": "^7.3.4",
85
85
  "@hono/zod-openapi": "0.19.2",
86
86
  "tsdown": "^0.14.1",
87
87
  "zod": "^3.25.76",
88
- "@kubb/config-ts": "3.17.1",
89
- "@kubb/plugin-oas": "3.17.1"
88
+ "@kubb/config-ts": "3.18.0",
89
+ "@kubb/plugin-oas": "3.18.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@kubb/react": "^3.0.0"