@kubb/plugin-oas 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.
@@ -321,22 +321,24 @@ type Config<TInput = Input> = {
321
321
  * @default prettier
322
322
  *
323
323
  * Possible values:
324
+ * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
324
325
  * - 'prettier': Uses Prettier for code formatting.
325
326
  * - 'biome': Uses Biome for code formatting.
326
327
  *
327
328
  */
328
- format?: 'prettier' | 'biome' | false;
329
+ format?: 'auto' | 'prettier' | 'biome' | false;
329
330
  /**
330
331
  * Specifies the linter that should be used to analyze the code.
331
332
  * The accepted values indicate different linting tools.
332
333
  *
333
334
  * Possible values:
335
+ * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
334
336
  * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
335
337
  * - 'biome': Represents the Biome linter, a modern tool for code scanning.
336
338
  * - 'oxlint': Represents the Oxlint tool for linting purposes.
337
339
  *
338
340
  */
339
- lint?: 'eslint' | 'biome' | 'oxlint' | false;
341
+ lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
340
342
  /**
341
343
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
342
344
  * @default { '.ts': '.ts'}
@@ -996,4 +998,4 @@ type SchemaTree = {
996
998
  declare function isKeyword<T extends Schema, K extends keyof SchemaKeywordMapper>(meta: T, keyword: K): meta is Extract<T, SchemaKeywordMapper[K]>;
997
999
  //#endregion
998
1000
  export { Plugin as C, AsyncEventEmitter as D, UserPluginWithLifeCycle as E, KubbEvents as O, Output as S, ResolveNameParams as T, contentType as _, SchemaMapper as a, Config as b, schemaKeywords as c, HttpMethod as d, OasTypes as f, SchemaObject$1 as g, Operation$1 as h, SchemaKeywordMapper as i, BaseGenerator as k, isOptional as l, OpenAPIV3_1 as m, SchemaKeyword as n, SchemaTree as o, OpenAPIV3 as p, SchemaKeywordBase as r, isKeyword as s, Schema as t, Oas as u, FileMetaBase as v, PluginFactoryOptions as w, Group as x, PluginManager as y };
999
- //# sourceMappingURL=SchemaMapper-HakvtkGV.d.cts.map
1001
+ //# sourceMappingURL=SchemaMapper-9OvKuuWc.d.cts.map
@@ -321,22 +321,24 @@ type Config<TInput = Input> = {
321
321
  * @default prettier
322
322
  *
323
323
  * Possible values:
324
+ * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
324
325
  * - 'prettier': Uses Prettier for code formatting.
325
326
  * - 'biome': Uses Biome for code formatting.
326
327
  *
327
328
  */
328
- format?: 'prettier' | 'biome' | false;
329
+ format?: 'auto' | 'prettier' | 'biome' | false;
329
330
  /**
330
331
  * Specifies the linter that should be used to analyze the code.
331
332
  * The accepted values indicate different linting tools.
332
333
  *
333
334
  * Possible values:
335
+ * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
334
336
  * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
335
337
  * - 'biome': Represents the Biome linter, a modern tool for code scanning.
336
338
  * - 'oxlint': Represents the Oxlint tool for linting purposes.
337
339
  *
338
340
  */
339
- lint?: 'eslint' | 'biome' | 'oxlint' | false;
341
+ lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
340
342
  /**
341
343
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
342
344
  * @default { '.ts': '.ts'}
@@ -996,4 +998,4 @@ type SchemaTree = {
996
998
  declare function isKeyword<T extends Schema, K extends keyof SchemaKeywordMapper>(meta: T, keyword: K): meta is Extract<T, SchemaKeywordMapper[K]>;
997
999
  //#endregion
998
1000
  export { Plugin as C, AsyncEventEmitter as D, UserPluginWithLifeCycle as E, KubbEvents as O, Output as S, ResolveNameParams as T, contentType as _, SchemaMapper as a, Config as b, schemaKeywords as c, HttpMethod as d, OasTypes as f, SchemaObject$1 as g, Operation$1 as h, SchemaKeywordMapper as i, BaseGenerator as k, isOptional as l, OpenAPIV3_1 as m, SchemaKeyword as n, SchemaTree as o, OpenAPIV3 as p, SchemaKeywordBase as r, isKeyword as s, Schema as t, Oas as u, FileMetaBase as v, PluginFactoryOptions as w, Group as x, PluginManager as y };
999
- //# sourceMappingURL=SchemaMapper-BOasY58R.d.ts.map
1001
+ //# sourceMappingURL=SchemaMapper-DBll0Fa6.d.ts.map
@@ -1,4 +1,4 @@
1
- import { C as Plugin, D as AsyncEventEmitter, O as KubbEvents, S as Output, T as ResolveNameParams, _ as contentType, b as Config, d as HttpMethod, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, k as BaseGenerator, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions, x as Group, y as PluginManager } from "./SchemaMapper-HakvtkGV.cjs";
1
+ import { C as Plugin, D as AsyncEventEmitter, O as KubbEvents, S as Output, T as ResolveNameParams, _ as contentType, b as Config, d as HttpMethod, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, k as BaseGenerator, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions, x as Group, y as PluginManager } from "./SchemaMapper-9OvKuuWc.cjs";
2
2
  import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import { Fabric } from "@kubb/react-fabric";
4
4
  import { KubbNode } from "@kubb/react-fabric/types";
@@ -353,4 +353,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
353
353
  declare function createGenerator<TOptions extends PluginFactoryOptions>(generator: UserGenerator<TOptions>): CoreGenerator<TOptions>;
354
354
  //#endregion
355
355
  export { Resolver as C, ResolvePathOptions as S, Options as _, createReactGenerator as a, Ref as b, SchemaGeneratorBuildOptions as c, OperationGenerator as d, OperationMethodResult as f, OperationSchemas as g, OperationSchema as h, ReactGenerator as i, SchemaGeneratorOptions as l, Include as m, createGenerator as n, GetSchemaGeneratorOptions as o, Exclude as p, Generator as r, SchemaGenerator as s, CoreGenerator as t, SchemaMethodResult as u, Override as v, FunctionParamsAST as w, Refs as x, PluginOas as y };
356
- //# sourceMappingURL=createGenerator-M1P2OUIT.d.cts.map
356
+ //# sourceMappingURL=createGenerator-260BgqYO.d.cts.map
@@ -1,4 +1,4 @@
1
- import { C as Plugin, D as AsyncEventEmitter, O as KubbEvents, S as Output, T as ResolveNameParams, _ as contentType, b as Config, d as HttpMethod, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, k as BaseGenerator, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions, x as Group, y as PluginManager } from "./SchemaMapper-BOasY58R.js";
1
+ import { C as Plugin, D as AsyncEventEmitter, O as KubbEvents, S as Output, T as ResolveNameParams, _ as contentType, b as Config, d as HttpMethod, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, k as BaseGenerator, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions, x as Group, y as PluginManager } from "./SchemaMapper-DBll0Fa6.js";
2
2
  import { Fabric } from "@kubb/react-fabric";
3
3
  import { KubbFile } from "@kubb/fabric-core/types";
4
4
  import { KubbNode } from "@kubb/react-fabric/types";
@@ -353,4 +353,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
353
353
  declare function createGenerator<TOptions extends PluginFactoryOptions>(generator: UserGenerator<TOptions>): CoreGenerator<TOptions>;
354
354
  //#endregion
355
355
  export { Resolver as C, ResolvePathOptions as S, Options as _, createReactGenerator as a, Ref as b, SchemaGeneratorBuildOptions as c, OperationGenerator as d, OperationMethodResult as f, OperationSchemas as g, OperationSchema as h, ReactGenerator as i, SchemaGeneratorOptions as l, Include as m, createGenerator as n, GetSchemaGeneratorOptions as o, Exclude as p, Generator as r, SchemaGenerator as s, CoreGenerator as t, SchemaMethodResult as u, Override as v, FunctionParamsAST as w, Refs as x, PluginOas as y };
356
- //# sourceMappingURL=createGenerator-BcqaXZ2y.d.ts.map
356
+ //# sourceMappingURL=createGenerator-g_79taIG.d.ts.map
@@ -1,5 +1,5 @@
1
- import "./SchemaMapper-HakvtkGV.cjs";
2
- import { a as createReactGenerator, n as createGenerator, r as Generator, t as CoreGenerator, y as PluginOas } from "./createGenerator-M1P2OUIT.cjs";
1
+ import "./SchemaMapper-9OvKuuWc.cjs";
2
+ import { a as createReactGenerator, n as createGenerator, r as Generator, t as CoreGenerator, y as PluginOas } from "./createGenerator-260BgqYO.cjs";
3
3
 
4
4
  //#region src/generators/jsonGenerator.d.ts
5
5
  declare const jsonGenerator: CoreGenerator<PluginOas>;
@@ -1,5 +1,5 @@
1
- import "./SchemaMapper-BOasY58R.js";
2
- import { a as createReactGenerator, n as createGenerator, r as Generator, t as CoreGenerator, y as PluginOas } from "./createGenerator-BcqaXZ2y.js";
1
+ import "./SchemaMapper-DBll0Fa6.js";
2
+ import { a as createReactGenerator, n as createGenerator, r as Generator, t as CoreGenerator, y as PluginOas } from "./createGenerator-g_79taIG.js";
3
3
 
4
4
  //#region src/generators/jsonGenerator.d.ts
5
5
  declare const jsonGenerator: CoreGenerator<PluginOas>;
package/dist/hooks.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Plugin, T as ResolveNameParams, h as Operation, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions } from "./SchemaMapper-HakvtkGV.cjs";
2
- import { d as OperationGenerator, g as OperationSchemas } from "./createGenerator-M1P2OUIT.cjs";
1
+ import { C as Plugin, T as ResolveNameParams, h as Operation, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions } from "./SchemaMapper-9OvKuuWc.cjs";
2
+ import { d as OperationGenerator, g as OperationSchemas } from "./createGenerator-260BgqYO.cjs";
3
3
  import { KubbFile } from "@kubb/fabric-core/types";
4
4
 
5
5
  //#region src/hooks/useOas.d.ts
package/dist/hooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Plugin, T as ResolveNameParams, h as Operation, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions } from "./SchemaMapper-BOasY58R.js";
2
- import { d as OperationGenerator, g as OperationSchemas } from "./createGenerator-BcqaXZ2y.js";
1
+ import { C as Plugin, T as ResolveNameParams, h as Operation, t as Schema, u as Oas, v as FileMetaBase, w as PluginFactoryOptions } from "./SchemaMapper-DBll0Fa6.js";
2
+ import { d as OperationGenerator, g as OperationSchemas } from "./createGenerator-g_79taIG.js";
3
3
  import { KubbFile } from "@kubb/fabric-core/types";
4
4
 
5
5
  //#region src/hooks/useOas.d.ts
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Plugin, E as UserPluginWithLifeCycle, a as SchemaMapper, b as Config, c as schemaKeywords, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, n as SchemaKeyword, o as SchemaTree, r as SchemaKeywordBase, s as isKeyword, t as Schema, w as PluginFactoryOptions } from "./SchemaMapper-HakvtkGV.cjs";
2
- import { C as Resolver, S as ResolvePathOptions, _ as Options, a as createReactGenerator$1, b as Ref, c as SchemaGeneratorBuildOptions, d as OperationGenerator, f as OperationMethodResult, g as OperationSchemas, h as OperationSchema, i as ReactGenerator, l as SchemaGeneratorOptions, m as Include, n as createGenerator$1, o as GetSchemaGeneratorOptions, p as Exclude, r as Generator$1, s as SchemaGenerator, u as SchemaMethodResult, v as Override, x as Refs, y as PluginOas } from "./createGenerator-M1P2OUIT.cjs";
1
+ import { C as Plugin, E as UserPluginWithLifeCycle, a as SchemaMapper, b as Config, c as schemaKeywords, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, n as SchemaKeyword, o as SchemaTree, r as SchemaKeywordBase, s as isKeyword, t as Schema, w as PluginFactoryOptions } from "./SchemaMapper-9OvKuuWc.cjs";
2
+ import { C as Resolver, S as ResolvePathOptions, _ as Options, a as createReactGenerator$1, b as Ref, c as SchemaGeneratorBuildOptions, d as OperationGenerator, f as OperationMethodResult, g as OperationSchemas, h as OperationSchema, i as ReactGenerator, l as SchemaGeneratorOptions, m as Include, n as createGenerator$1, o as GetSchemaGeneratorOptions, p as Exclude, r as Generator$1, s as SchemaGenerator, u as SchemaMethodResult, v as Override, x as Refs, y as PluginOas } from "./createGenerator-260BgqYO.cjs";
3
3
  import { Fabric } from "@kubb/react-fabric";
4
4
 
5
5
  //#region src/createParser.d.ts
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as Plugin, E as UserPluginWithLifeCycle, a as SchemaMapper, b as Config, c as schemaKeywords, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, n as SchemaKeyword, o as SchemaTree, r as SchemaKeywordBase, s as isKeyword, t as Schema, w as PluginFactoryOptions } from "./SchemaMapper-BOasY58R.js";
2
- import { C as Resolver, S as ResolvePathOptions, _ as Options, a as createReactGenerator$1, b as Ref, c as SchemaGeneratorBuildOptions, d as OperationGenerator, f as OperationMethodResult, g as OperationSchemas, h as OperationSchema, i as ReactGenerator, l as SchemaGeneratorOptions, m as Include, n as createGenerator$1, o as GetSchemaGeneratorOptions, p as Exclude, r as Generator$1, s as SchemaGenerator, u as SchemaMethodResult, v as Override, x as Refs, y as PluginOas } from "./createGenerator-BcqaXZ2y.js";
1
+ import { C as Plugin, E as UserPluginWithLifeCycle, a as SchemaMapper, b as Config, c as schemaKeywords, g as SchemaObject, h as Operation, i as SchemaKeywordMapper, n as SchemaKeyword, o as SchemaTree, r as SchemaKeywordBase, s as isKeyword, t as Schema, w as PluginFactoryOptions } from "./SchemaMapper-DBll0Fa6.js";
2
+ import { C as Resolver, S as ResolvePathOptions, _ as Options, a as createReactGenerator$1, b as Ref, c as SchemaGeneratorBuildOptions, d as OperationGenerator, f as OperationMethodResult, g as OperationSchemas, h as OperationSchema, i as ReactGenerator, l as SchemaGeneratorOptions, m as Include, n as createGenerator$1, o as GetSchemaGeneratorOptions, p as Exclude, r as Generator$1, s as SchemaGenerator, u as SchemaMethodResult, v as Override, x as Refs, y as PluginOas } from "./createGenerator-g_79taIG.js";
3
3
  import { Fabric } from "@kubb/react-fabric";
4
4
 
5
5
  //#region src/createParser.d.ts
package/dist/mocks.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Schema } from "./SchemaMapper-HakvtkGV.cjs";
1
+ import { t as Schema } from "./SchemaMapper-9OvKuuWc.cjs";
2
2
 
3
3
  //#region src/mocks/schemas.d.ts
4
4
  declare const schemas: {
package/dist/mocks.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as Schema } from "./SchemaMapper-BOasY58R.js";
1
+ import { t as Schema } from "./SchemaMapper-DBll0Fa6.js";
2
2
 
3
3
  //#region src/mocks/schemas.d.ts
4
4
  declare const schemas: {
package/dist/utils.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Output, _ as contentType, b as Config, f as OasTypes, g as SchemaObject, h as Operation, l as isOptional, m as OpenAPIV3_1, p as OpenAPIV3, u as Oas } from "./SchemaMapper-HakvtkGV.cjs";
2
- import { h as OperationSchema, w as FunctionParamsAST } from "./createGenerator-M1P2OUIT.cjs";
1
+ import { S as Output, _ as contentType, b as Config, f as OasTypes, g as SchemaObject, h as Operation, l as isOptional, m as OpenAPIV3_1, p as OpenAPIV3, u as Oas } from "./SchemaMapper-9OvKuuWc.cjs";
2
+ import { h as OperationSchema, w as FunctionParamsAST } from "./createGenerator-260BgqYO.cjs";
3
3
  import { Params } from "@kubb/react-fabric/types";
4
4
 
5
5
  //#region src/utils/getBanner.d.ts
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Output, _ as contentType, b as Config, f as OasTypes, g as SchemaObject, h as Operation, l as isOptional, m as OpenAPIV3_1, p as OpenAPIV3, u as Oas } from "./SchemaMapper-BOasY58R.js";
2
- import { h as OperationSchema, w as FunctionParamsAST } from "./createGenerator-BcqaXZ2y.js";
1
+ import { S as Output, _ as contentType, b as Config, f as OasTypes, g as SchemaObject, h as Operation, l as isOptional, m as OpenAPIV3_1, p as OpenAPIV3, u as Oas } from "./SchemaMapper-DBll0Fa6.js";
2
+ import { h as OperationSchema, w as FunctionParamsAST } from "./createGenerator-g_79taIG.js";
3
3
  import { Params } from "@kubb/react-fabric/types";
4
4
 
5
5
  //#region src/utils/getBanner.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-oas",
3
- "version": "4.12.14",
3
+ "version": "4.13.0",
4
4
  "description": "OpenAPI Specification (OAS) plugin for Kubb, providing core functionality for parsing and processing OpenAPI/Swagger schemas for code generation.",
5
5
  "keywords": [
6
6
  "openapi",
@@ -79,14 +79,14 @@
79
79
  }
80
80
  ],
81
81
  "dependencies": {
82
- "@kubb/react-fabric": "0.7.4",
82
+ "@kubb/react-fabric": "0.9.0",
83
83
  "p-limit": "^7.2.0",
84
- "remeda": "^2.32.2",
85
- "@kubb/core": "4.12.14",
86
- "@kubb/oas": "4.12.14"
84
+ "remeda": "^2.33.1",
85
+ "@kubb/core": "4.13.0",
86
+ "@kubb/oas": "4.13.0"
87
87
  },
88
88
  "peerDependencies": {
89
- "@kubb/react-fabric": "0.7.4"
89
+ "@kubb/react-fabric": "0.9.0"
90
90
  },
91
91
  "engines": {
92
92
  "node": ">=20"