@kubb/plugin-client 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 { FunctionParams, KubbNode, Operation, OperationSchemas, PluginClient } from "./types-Cpfa5PKO.cjs";
1
+ import { FunctionParams, KubbNode, Operation, OperationSchemas, PluginClient } from "./types-CX3qvh_y.cjs";
2
2
 
3
3
  //#region src/components/Client.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { FunctionParams, KubbNode, Operation, OperationSchemas, PluginClient } from "./types-CdM4kNiz.js";
1
+ import { FunctionParams, KubbNode, Operation, OperationSchemas, PluginClient } from "./types-Dff_FBev.js";
2
2
 
3
3
  //#region src/components/Client.d.ts
4
4
 
@@ -1,4 +1,4 @@
1
- import { Generator, PluginClient } from "./types-Cpfa5PKO.cjs";
1
+ import { Generator, PluginClient } from "./types-CX3qvh_y.cjs";
2
2
 
3
3
  //#region src/generators/clientGenerator.d.ts
4
4
  declare const clientGenerator: Generator<PluginClient>;
@@ -1,4 +1,4 @@
1
- import { Generator, PluginClient } from "./types-CdM4kNiz.js";
1
+ import { Generator, PluginClient } from "./types-Dff_FBev.js";
2
2
 
3
3
  //#region src/generators/clientGenerator.d.ts
4
4
  declare const clientGenerator: Generator<PluginClient>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginClient, UserPluginWithLifeCycle } from "./types-Cpfa5PKO.cjs";
1
+ import { Options, PluginClient, UserPluginWithLifeCycle } from "./types-CX3qvh_y.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginClientName = "plugin-client";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options, PluginClient, UserPluginWithLifeCycle } from "./types-CdM4kNiz.js";
1
+ import { Options, PluginClient, UserPluginWithLifeCycle } from "./types-Dff_FBev.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginClientName = "plugin-client";
@@ -271,6 +271,27 @@ type Config<TInput = Input> = {
271
271
  * @default true
272
272
  */
273
273
  write?: boolean;
274
+ /**
275
+ * Specifies the formatting tool to be used.
276
+ * @default prettier
277
+ *
278
+ * Possible values:
279
+ * - 'prettier': Uses Prettier for code formatting.
280
+ * - 'biome': Uses Biome for code formatting.
281
+ *
282
+ */
283
+ format?: 'prettier' | 'biome' | false;
284
+ /**
285
+ * Specifies the linter that should be used to analyze the code.
286
+ * The accepted values indicate different linting tools.
287
+ *
288
+ * Possible values:
289
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
290
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
291
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
292
+ *
293
+ */
294
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
274
295
  /**
275
296
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
276
297
  * @default { '.ts': '.ts'}
@@ -1271,4 +1292,4 @@ type ResolvedOptions = {
1271
1292
  type PluginClient = PluginFactoryOptions<'plugin-client', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1272
1293
  //#endregion
1273
1294
  export { FunctionParams, Generator, KubbNode, type Operation$1 as Operation, OperationSchemas, Options$1 as Options, PluginClient, UserPluginWithLifeCycle };
1274
- //# sourceMappingURL=types-Cpfa5PKO.d.cts.map
1295
+ //# sourceMappingURL=types-CX3qvh_y.d.cts.map
@@ -271,6 +271,27 @@ type Config<TInput = Input> = {
271
271
  * @default true
272
272
  */
273
273
  write?: boolean;
274
+ /**
275
+ * Specifies the formatting tool to be used.
276
+ * @default prettier
277
+ *
278
+ * Possible values:
279
+ * - 'prettier': Uses Prettier for code formatting.
280
+ * - 'biome': Uses Biome for code formatting.
281
+ *
282
+ */
283
+ format?: 'prettier' | 'biome' | false;
284
+ /**
285
+ * Specifies the linter that should be used to analyze the code.
286
+ * The accepted values indicate different linting tools.
287
+ *
288
+ * Possible values:
289
+ * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
290
+ * - 'biome': Represents the Biome linter, a modern tool for code scanning.
291
+ * - 'oxlint': Represents the Oxlint tool for linting purposes.
292
+ *
293
+ */
294
+ lint?: 'eslint' | 'biome' | 'oxlint' | false;
274
295
  /**
275
296
  * Override the extension to the generated imports and exports, by default each plugin will add an extension
276
297
  * @default { '.ts': '.ts'}
@@ -1271,4 +1292,4 @@ type ResolvedOptions = {
1271
1292
  type PluginClient = PluginFactoryOptions<'plugin-client', Options$1, ResolvedOptions, never, ResolvePathOptions>;
1272
1293
  //#endregion
1273
1294
  export { FunctionParams, Generator, KubbNode, type Operation$1 as Operation, OperationSchemas, Options$1 as Options, PluginClient, UserPluginWithLifeCycle };
1274
- //# sourceMappingURL=types-CdM4kNiz.d.ts.map
1295
+ //# sourceMappingURL=types-Dff_FBev.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-client",
3
- "version": "3.17.1",
3
+ "version": "3.18.0",
4
4
  "description": "API client generator plugin for Kubb, creating type-safe HTTP clients (Axios, Fetch) from OpenAPI specifications for making API requests.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -77,18 +77,18 @@
77
77
  "!/**/__tests__/**"
78
78
  ],
79
79
  "dependencies": {
80
- "@kubb/core": "3.17.1",
81
- "@kubb/oas": "3.17.1",
82
- "@kubb/plugin-oas": "3.17.1",
83
- "@kubb/plugin-ts": "3.17.1",
84
- "@kubb/plugin-zod": "3.17.1",
85
- "@kubb/react": "3.17.1"
80
+ "@kubb/core": "3.18.0",
81
+ "@kubb/oas": "3.18.0",
82
+ "@kubb/plugin-oas": "3.18.0",
83
+ "@kubb/plugin-ts": "3.18.0",
84
+ "@kubb/plugin-zod": "3.18.0",
85
+ "@kubb/react": "3.18.0"
86
86
  },
87
87
  "devDependencies": {
88
88
  "axios": "^1.11.0",
89
89
  "tsdown": "^0.14.1",
90
90
  "typescript": "^5.9.2",
91
- "@kubb/config-ts": "3.17.1"
91
+ "@kubb/config-ts": "3.18.0"
92
92
  },
93
93
  "peerDependencies": {
94
94
  "@kubb/react": "^3.0.0",