@kubb/plugin-swr 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.
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{types-B0V_ZhUm.d.ts → types-DOmQq13q.d.ts} +5 -3
- package/dist/{types-B7W7fq1E.d.cts → types-k8j96LNI.d.cts} +5 -3
- package/package.json +10 -10
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-
|
|
1
|
+
import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-k8j96LNI.cjs";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-
|
|
1
|
+
import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-DOmQq13q.js";
|
|
2
2
|
import { FunctionParams } from "@kubb/react-fabric";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/generators.d.cts
CHANGED
package/dist/generators.d.ts
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-
|
|
1
|
+
import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-k8j96LNI.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginSwrName = "plugin-swr";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-
|
|
1
|
+
import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-DOmQq13q.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginSwrName = "plugin-swr";
|
|
@@ -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'}
|
|
@@ -1424,4 +1426,4 @@ type ResolvedOptions = {
|
|
|
1424
1426
|
type PluginSwr = PluginFactoryOptions<'plugin-swr', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1425
1427
|
//#endregion
|
|
1426
1428
|
export { OperationSchemas as a, ReactGenerator as i, PluginSwr as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
|
|
1427
|
-
//# sourceMappingURL=types-
|
|
1429
|
+
//# sourceMappingURL=types-DOmQq13q.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'}
|
|
@@ -1424,4 +1426,4 @@ type ResolvedOptions = {
|
|
|
1424
1426
|
type PluginSwr = PluginFactoryOptions<'plugin-swr', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1425
1427
|
//#endregion
|
|
1426
1428
|
export { OperationSchemas as a, ReactGenerator as i, PluginSwr as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
|
|
1427
|
-
//# sourceMappingURL=types-
|
|
1429
|
+
//# sourceMappingURL=types-k8j96LNI.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-swr",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "SWR hooks generator plugin for Kubb, creating type-safe data fetching hooks from OpenAPI specifications for React and Next.js applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"swr",
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@kubb/react-fabric": "0.
|
|
74
|
-
"remeda": "^2.
|
|
75
|
-
"@kubb/core": "4.
|
|
76
|
-
"@kubb/oas": "4.
|
|
77
|
-
"@kubb/plugin-client": "4.
|
|
78
|
-
"@kubb/plugin-oas": "4.
|
|
79
|
-
"@kubb/plugin-ts": "4.
|
|
80
|
-
"@kubb/plugin-zod": "4.
|
|
73
|
+
"@kubb/react-fabric": "0.9.0",
|
|
74
|
+
"remeda": "^2.33.1",
|
|
75
|
+
"@kubb/core": "4.13.0",
|
|
76
|
+
"@kubb/oas": "4.13.0",
|
|
77
|
+
"@kubb/plugin-client": "4.13.0",
|
|
78
|
+
"@kubb/plugin-oas": "4.13.0",
|
|
79
|
+
"@kubb/plugin-ts": "4.13.0",
|
|
80
|
+
"@kubb/plugin-zod": "4.13.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@kubb/react-fabric": "0.
|
|
83
|
+
"@kubb/react-fabric": "0.9.0"
|
|
84
84
|
},
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": ">=20"
|