@kubb/plugin-zod 4.12.14 → 4.13.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 { i as Schema, n as PluginZod, o as Operation, s as SchemaObject } from "./types-D1FNBue0.cjs";
1
+ import { i as Schema, n as PluginZod, o as Operation, s as SchemaObject } from "./types-0F7gmbhI.cjs";
2
2
  import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as Schema, n as PluginZod, o as Operation, s as SchemaObject } from "./types-CONJXNis.js";
1
+ import { i as Schema, n as PluginZod, o as Operation, s as SchemaObject } from "./types-DTqgH0X2.js";
2
2
  import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { n as PluginZod, r as ReactGenerator } from "./types-D1FNBue0.cjs";
1
+ import { n as PluginZod, r as ReactGenerator } from "./types-0F7gmbhI.cjs";
2
2
 
3
3
  //#region src/generators/operationsGenerator.d.ts
4
4
  declare const operationsGenerator: ReactGenerator<PluginZod>;
@@ -1,4 +1,4 @@
1
- import { n as PluginZod, r as ReactGenerator } from "./types-CONJXNis.js";
1
+ import { n as PluginZod, r as ReactGenerator } from "./types-DTqgH0X2.js";
2
2
 
3
3
  //#region src/generators/operationsGenerator.d.ts
4
4
  declare const operationsGenerator: ReactGenerator<PluginZod>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginZod, t as Options } from "./types-D1FNBue0.cjs";
1
+ import { a as UserPluginWithLifeCycle, n as PluginZod, t as Options } from "./types-0F7gmbhI.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 { a as UserPluginWithLifeCycle, n as PluginZod, t as Options } from "./types-CONJXNis.js";
1
+ import { a as UserPluginWithLifeCycle, n as PluginZod, t as Options } from "./types-DTqgH0X2.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginZodName = "plugin-zod";
@@ -354,22 +354,24 @@ type Config<TInput = Input> = {
354
354
  * @default prettier
355
355
  *
356
356
  * Possible values:
357
+ * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
357
358
  * - 'prettier': Uses Prettier for code formatting.
358
359
  * - 'biome': Uses Biome for code formatting.
359
360
  *
360
361
  */
361
- format?: 'prettier' | 'biome' | false;
362
+ format?: 'auto' | 'prettier' | 'biome' | false;
362
363
  /**
363
364
  * Specifies the linter that should be used to analyze the code.
364
365
  * The accepted values indicate different linting tools.
365
366
  *
366
367
  * Possible values:
368
+ * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
367
369
  * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
368
370
  * - 'biome': Represents the Biome linter, a modern tool for code scanning.
369
371
  * - 'oxlint': Represents the Oxlint tool for linting purposes.
370
372
  *
371
373
  */
372
- lint?: 'eslint' | 'biome' | 'oxlint' | false;
374
+ lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
373
375
  /**
374
376
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
375
377
  * @default { '.ts': '.ts'}
@@ -1293,4 +1295,4 @@ type ResolvedOptions = {
1293
1295
  type PluginZod = PluginFactoryOptions<'plugin-zod', Options, ResolvedOptions, never, ResolvePathOptions>;
1294
1296
  //#endregion
1295
1297
  export { UserPluginWithLifeCycle as a, Schema as i, PluginZod as n, Operation$1 as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
1296
- //# sourceMappingURL=types-D1FNBue0.d.cts.map
1298
+ //# sourceMappingURL=types-0F7gmbhI.d.cts.map
@@ -354,22 +354,24 @@ type Config<TInput = Input> = {
354
354
  * @default prettier
355
355
  *
356
356
  * Possible values:
357
+ * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
357
358
  * - 'prettier': Uses Prettier for code formatting.
358
359
  * - 'biome': Uses Biome for code formatting.
359
360
  *
360
361
  */
361
- format?: 'prettier' | 'biome' | false;
362
+ format?: 'auto' | 'prettier' | 'biome' | false;
362
363
  /**
363
364
  * Specifies the linter that should be used to analyze the code.
364
365
  * The accepted values indicate different linting tools.
365
366
  *
366
367
  * Possible values:
368
+ * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
367
369
  * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
368
370
  * - 'biome': Represents the Biome linter, a modern tool for code scanning.
369
371
  * - 'oxlint': Represents the Oxlint tool for linting purposes.
370
372
  *
371
373
  */
372
- lint?: 'eslint' | 'biome' | 'oxlint' | false;
374
+ lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
373
375
  /**
374
376
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
375
377
  * @default { '.ts': '.ts'}
@@ -1293,4 +1295,4 @@ type ResolvedOptions = {
1293
1295
  type PluginZod = PluginFactoryOptions<'plugin-zod', Options, ResolvedOptions, never, ResolvePathOptions>;
1294
1296
  //#endregion
1295
1297
  export { UserPluginWithLifeCycle as a, Schema as i, PluginZod as n, Operation$1 as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
1296
- //# sourceMappingURL=types-CONJXNis.d.ts.map
1298
+ //# sourceMappingURL=types-DTqgH0X2.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-zod",
3
- "version": "4.12.14",
3
+ "version": "4.13.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",
@@ -68,14 +68,14 @@
68
68
  }
69
69
  ],
70
70
  "dependencies": {
71
- "@kubb/react-fabric": "0.7.4",
72
- "@kubb/core": "4.12.14",
73
- "@kubb/oas": "4.12.14",
74
- "@kubb/plugin-oas": "4.12.14",
75
- "@kubb/plugin-ts": "4.12.14"
71
+ "@kubb/react-fabric": "0.9.0",
72
+ "@kubb/core": "4.13.0",
73
+ "@kubb/oas": "4.13.0",
74
+ "@kubb/plugin-oas": "4.13.0",
75
+ "@kubb/plugin-ts": "4.13.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@asteasolutions/zod-to-openapi": "^8.2.0",
78
+ "@asteasolutions/zod-to-openapi": "^8.4.0",
79
79
  "zod": "^3.25.76"
80
80
  },
81
81
  "engines": {