@kubb/plugin-ts 4.12.15 → 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 PluginTs, o as OasTypes, s as SchemaObject } from "./types-Bl4YfnWA.cjs";
1
+ import { i as Schema, n as PluginTs, o as OasTypes, s as SchemaObject } from "./types-WHo75HZq.cjs";
2
2
  import { KubbNode } from "@kubb/react-fabric/types";
3
3
 
4
4
  //#region src/components/OasType.d.ts
@@ -1,4 +1,4 @@
1
- import { i as Schema, n as PluginTs, o as OasTypes, s as SchemaObject } from "./types-EDONJgES.js";
1
+ import { i as Schema, n as PluginTs, o as OasTypes, s as SchemaObject } from "./types-De3dRAE2.js";
2
2
  import { KubbNode } from "@kubb/react-fabric/types";
3
3
 
4
4
  //#region src/components/OasType.d.ts
@@ -1,4 +1,4 @@
1
- import { n as PluginTs, r as ReactGenerator } from "./types-Bl4YfnWA.cjs";
1
+ import { n as PluginTs, r as ReactGenerator } from "./types-WHo75HZq.cjs";
2
2
 
3
3
  //#region src/generators/typeGenerator.d.ts
4
4
  declare const typeGenerator: ReactGenerator<PluginTs>;
@@ -1,4 +1,4 @@
1
- import { n as PluginTs, r as ReactGenerator } from "./types-EDONJgES.js";
1
+ import { n as PluginTs, r as ReactGenerator } from "./types-De3dRAE2.js";
2
2
 
3
3
  //#region src/generators/typeGenerator.d.ts
4
4
  declare const typeGenerator: ReactGenerator<PluginTs>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginTs, t as Options } from "./types-Bl4YfnWA.cjs";
1
+ import { a as UserPluginWithLifeCycle, n as PluginTs, t as Options } from "./types-WHo75HZq.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginTsName = "plugin-ts";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as UserPluginWithLifeCycle, n as PluginTs, t as Options } from "./types-EDONJgES.js";
1
+ import { a as UserPluginWithLifeCycle, n as PluginTs, t as Options } from "./types-De3dRAE2.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginTsName = "plugin-ts";
@@ -1,12 +1,12 @@
1
+ import { Fabric } from "@kubb/react-fabric";
2
+ import ts from "typescript";
1
3
  import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
2
4
  import BaseOas from "oas";
3
5
  import { Operation } from "oas/operation";
4
6
  import * as OasTypes from "oas/types";
5
7
  import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
6
8
  import { KubbFile } from "@kubb/fabric-core/types";
7
- import { Fabric } from "@kubb/react-fabric";
8
9
  import { KubbNode } from "@kubb/react-fabric/types";
9
- import ts from "typescript";
10
10
 
11
11
  //#region ../oas/src/types.d.ts
12
12
  type contentType = 'application/json' | (string & {});
@@ -356,22 +356,24 @@ type Config<TInput = Input> = {
356
356
  * @default prettier
357
357
  *
358
358
  * Possible values:
359
+ * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
359
360
  * - 'prettier': Uses Prettier for code formatting.
360
361
  * - 'biome': Uses Biome for code formatting.
361
362
  *
362
363
  */
363
- format?: 'prettier' | 'biome' | false;
364
+ format?: 'auto' | 'prettier' | 'biome' | false;
364
365
  /**
365
366
  * Specifies the linter that should be used to analyze the code.
366
367
  * The accepted values indicate different linting tools.
367
368
  *
368
369
  * Possible values:
370
+ * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
369
371
  * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
370
372
  * - 'biome': Represents the Biome linter, a modern tool for code scanning.
371
373
  * - 'oxlint': Represents the Oxlint tool for linting purposes.
372
374
  *
373
375
  */
374
- lint?: 'eslint' | 'biome' | 'oxlint' | false;
376
+ lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
375
377
  /**
376
378
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
377
379
  * @default { '.ts': '.ts'}
@@ -1270,4 +1272,4 @@ type ResolvedOptions = {
1270
1272
  type PluginTs = PluginFactoryOptions<'plugin-ts', Options, ResolvedOptions, never, ResolvePathOptions>;
1271
1273
  //#endregion
1272
1274
  export { UserPluginWithLifeCycle as a, Schema as i, PluginTs as n, OasTypes as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
1273
- //# sourceMappingURL=types-Bl4YfnWA.d.cts.map
1275
+ //# sourceMappingURL=types-De3dRAE2.d.ts.map
@@ -1,12 +1,12 @@
1
- import { Fabric } from "@kubb/react-fabric";
2
- import ts from "typescript";
3
1
  import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
4
2
  import BaseOas from "oas";
5
3
  import { Operation } from "oas/operation";
6
4
  import * as OasTypes from "oas/types";
7
5
  import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
8
6
  import { KubbFile } from "@kubb/fabric-core/types";
7
+ import { Fabric } from "@kubb/react-fabric";
9
8
  import { KubbNode } from "@kubb/react-fabric/types";
9
+ import ts from "typescript";
10
10
 
11
11
  //#region ../oas/src/types.d.ts
12
12
  type contentType = 'application/json' | (string & {});
@@ -356,22 +356,24 @@ type Config<TInput = Input> = {
356
356
  * @default prettier
357
357
  *
358
358
  * Possible values:
359
+ * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
359
360
  * - 'prettier': Uses Prettier for code formatting.
360
361
  * - 'biome': Uses Biome for code formatting.
361
362
  *
362
363
  */
363
- format?: 'prettier' | 'biome' | false;
364
+ format?: 'auto' | 'prettier' | 'biome' | false;
364
365
  /**
365
366
  * Specifies the linter that should be used to analyze the code.
366
367
  * The accepted values indicate different linting tools.
367
368
  *
368
369
  * Possible values:
370
+ * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
369
371
  * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
370
372
  * - 'biome': Represents the Biome linter, a modern tool for code scanning.
371
373
  * - 'oxlint': Represents the Oxlint tool for linting purposes.
372
374
  *
373
375
  */
374
- lint?: 'eslint' | 'biome' | 'oxlint' | false;
376
+ lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
375
377
  /**
376
378
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
377
379
  * @default { '.ts': '.ts'}
@@ -1270,4 +1272,4 @@ type ResolvedOptions = {
1270
1272
  type PluginTs = PluginFactoryOptions<'plugin-ts', Options, ResolvedOptions, never, ResolvePathOptions>;
1271
1273
  //#endregion
1272
1274
  export { UserPluginWithLifeCycle as a, Schema as i, PluginTs as n, OasTypes as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
1273
- //# sourceMappingURL=types-EDONJgES.d.ts.map
1275
+ //# sourceMappingURL=types-WHo75HZq.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-ts",
3
- "version": "4.12.15",
3
+ "version": "4.13.0",
4
4
  "description": "TypeScript code generation plugin for Kubb, transforming OpenAPI schemas into TypeScript interfaces, types, and utility functions.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -64,17 +64,17 @@
64
64
  }
65
65
  ],
66
66
  "dependencies": {
67
- "@kubb/fabric-core": "0.8.0",
68
- "@kubb/react-fabric": "0.8.0",
67
+ "@kubb/fabric-core": "0.9.0",
68
+ "@kubb/react-fabric": "0.9.0",
69
69
  "natural-orderby": "^5.0.0",
70
- "remeda": "^2.32.2",
70
+ "remeda": "^2.33.1",
71
71
  "typescript": "5.9.3",
72
- "@kubb/core": "4.12.15",
73
- "@kubb/oas": "4.12.15",
74
- "@kubb/plugin-oas": "4.12.15"
72
+ "@kubb/core": "4.13.0",
73
+ "@kubb/oas": "4.13.0",
74
+ "@kubb/plugin-oas": "4.13.0"
75
75
  },
76
76
  "peerDependencies": {
77
- "@kubb/react-fabric": "0.8.0",
77
+ "@kubb/react-fabric": "0.9.0",
78
78
  "typescript": ">=5.9.0"
79
79
  },
80
80
  "engines": {