@kubb/plugin-react-query 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 { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-CAXc6Q1t.cjs";
1
+ import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-DsUAbtO2.cjs";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-C7usMmnf.js";
1
+ import { c as Operation, i as Transformer, o as OperationSchemas, r as PluginReactQuery, t as Infinite } from "./types-B8O05Cdu.js";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as ReactGenerator, r as PluginReactQuery } from "./types-CAXc6Q1t.cjs";
1
+ import { a as ReactGenerator, r as PluginReactQuery } from "./types-DsUAbtO2.cjs";
2
2
 
3
3
  //#region src/generators/infiniteQueryGenerator.d.ts
4
4
  declare const infiniteQueryGenerator: ReactGenerator<PluginReactQuery>;
@@ -1,4 +1,4 @@
1
- import { a as ReactGenerator, r as PluginReactQuery } from "./types-C7usMmnf.js";
1
+ import { a as ReactGenerator, r as PluginReactQuery } from "./types-B8O05Cdu.js";
2
2
 
3
3
  //#region src/generators/infiniteQueryGenerator.d.ts
4
4
  declare const infiniteQueryGenerator: ReactGenerator<PluginReactQuery>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-CAXc6Q1t.cjs";
1
+ import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-DsUAbtO2.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginReactQueryName = "plugin-react-query";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-C7usMmnf.js";
1
+ import { n as Options, r as PluginReactQuery, s as UserPluginWithLifeCycle } from "./types-B8O05Cdu.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginReactQueryName = "plugin-react-query";
@@ -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'}
@@ -1464,4 +1466,4 @@ type ResolvedOptions = {
1464
1466
  type PluginReactQuery = PluginFactoryOptions<'plugin-react-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1465
1467
  //#endregion
1466
1468
  export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options as n, OperationSchemas as o, PluginReactQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
1467
- //# sourceMappingURL=types-C7usMmnf.d.ts.map
1469
+ //# sourceMappingURL=types-B8O05Cdu.d.ts.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'}
@@ -1464,4 +1466,4 @@ type ResolvedOptions = {
1464
1466
  type PluginReactQuery = PluginFactoryOptions<'plugin-react-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1465
1467
  //#endregion
1466
1468
  export { ReactGenerator as a, Operation$1 as c, Transformer as i, Options as n, OperationSchemas as o, PluginReactQuery as r, UserPluginWithLifeCycle as s, Infinite as t };
1467
- //# sourceMappingURL=types-CAXc6Q1t.d.cts.map
1469
+ //# sourceMappingURL=types-DsUAbtO2.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-react-query",
3
- "version": "4.12.15",
3
+ "version": "4.13.0",
4
4
  "description": "React Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for React applications.",
5
5
  "keywords": [
6
6
  "react-query",
@@ -67,17 +67,17 @@
67
67
  }
68
68
  ],
69
69
  "dependencies": {
70
- "@kubb/react-fabric": "0.8.0",
71
- "remeda": "^2.32.2",
72
- "@kubb/core": "4.12.15",
73
- "@kubb/oas": "4.12.15",
74
- "@kubb/plugin-client": "4.12.15",
75
- "@kubb/plugin-oas": "4.12.15",
76
- "@kubb/plugin-ts": "4.12.15",
77
- "@kubb/plugin-zod": "4.12.15"
70
+ "@kubb/react-fabric": "0.9.0",
71
+ "remeda": "^2.33.1",
72
+ "@kubb/core": "4.13.0",
73
+ "@kubb/oas": "4.13.0",
74
+ "@kubb/plugin-client": "4.13.0",
75
+ "@kubb/plugin-oas": "4.13.0",
76
+ "@kubb/plugin-ts": "4.13.0",
77
+ "@kubb/plugin-zod": "4.13.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "@kubb/react-fabric": "0.8.0"
80
+ "@kubb/react-fabric": "0.9.0"
81
81
  },
82
82
  "engines": {
83
83
  "node": ">=20"