@kubb/plugin-swr 4.16.0 → 4.17.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 { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-CwL7syaC.cjs";
1
+ import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-Ct9bZvXK.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 { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-Cz44iw_v.js";
1
+ import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-BUq_a9r8.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 { i as ReactGenerator, n as PluginSwr } from "./types-CwL7syaC.cjs";
1
+ import { i as ReactGenerator, n as PluginSwr } from "./types-Ct9bZvXK.cjs";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSwr>;
@@ -1,4 +1,4 @@
1
- import { i as ReactGenerator, n as PluginSwr } from "./types-Cz44iw_v.js";
1
+ import { i as ReactGenerator, n as PluginSwr } from "./types-BUq_a9r8.js";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSwr>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-CwL7syaC.cjs";
1
+ import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-Ct9bZvXK.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-Cz44iw_v.js";
1
+ import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-BUq_a9r8.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSwrName = "plugin-swr";
@@ -1,9 +1,9 @@
1
+ import { Fabric } from "@kubb/react-fabric";
1
2
  import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
2
3
  import BaseOas from "oas";
3
4
  import { Operation } from "oas/operation";
4
5
  import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
5
6
  import { KubbFile } from "@kubb/fabric-core/types";
6
- import { Fabric } from "@kubb/react-fabric";
7
7
  import { KubbNode } from "@kubb/react-fabric/types";
8
8
 
9
9
  //#region ../oas/src/types.d.ts
@@ -361,7 +361,7 @@ type Config<TInput = Input> = {
361
361
  * - 'biome': Uses Biome for code formatting.
362
362
  *
363
363
  */
364
- format?: 'auto' | 'prettier' | 'biome' | false;
364
+ format?: 'auto' | 'prettier' | 'biome' | 'oxfmt' | false;
365
365
  /**
366
366
  * Specifies the linter that should be used to analyze the code.
367
367
  * The accepted values indicate different linting tools.
@@ -1442,4 +1442,4 @@ type ResolvedOptions = {
1442
1442
  type PluginSwr = PluginFactoryOptions<'plugin-swr', Options, ResolvedOptions, never, ResolvePathOptions>;
1443
1443
  //#endregion
1444
1444
  export { OperationSchemas as a, ReactGenerator as i, PluginSwr as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1445
- //# sourceMappingURL=types-CwL7syaC.d.cts.map
1445
+ //# sourceMappingURL=types-BUq_a9r8.d.ts.map
@@ -1,9 +1,9 @@
1
- import { Fabric } from "@kubb/react-fabric";
2
1
  import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
3
2
  import BaseOas from "oas";
4
3
  import { Operation } from "oas/operation";
5
4
  import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
6
5
  import { KubbFile } from "@kubb/fabric-core/types";
6
+ import { Fabric } from "@kubb/react-fabric";
7
7
  import { KubbNode } from "@kubb/react-fabric/types";
8
8
 
9
9
  //#region ../oas/src/types.d.ts
@@ -361,7 +361,7 @@ type Config<TInput = Input> = {
361
361
  * - 'biome': Uses Biome for code formatting.
362
362
  *
363
363
  */
364
- format?: 'auto' | 'prettier' | 'biome' | false;
364
+ format?: 'auto' | 'prettier' | 'biome' | 'oxfmt' | false;
365
365
  /**
366
366
  * Specifies the linter that should be used to analyze the code.
367
367
  * The accepted values indicate different linting tools.
@@ -1442,4 +1442,4 @@ type ResolvedOptions = {
1442
1442
  type PluginSwr = PluginFactoryOptions<'plugin-swr', Options, ResolvedOptions, never, ResolvePathOptions>;
1443
1443
  //#endregion
1444
1444
  export { OperationSchemas as a, ReactGenerator as i, PluginSwr as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1445
- //# sourceMappingURL=types-Cz44iw_v.d.ts.map
1445
+ //# sourceMappingURL=types-Ct9bZvXK.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-swr",
3
- "version": "4.16.0",
3
+ "version": "4.17.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.9.5",
74
- "remeda": "^2.33.2",
75
- "@kubb/core": "4.16.0",
76
- "@kubb/oas": "4.16.0",
77
- "@kubb/plugin-client": "4.16.0",
78
- "@kubb/plugin-oas": "4.16.0",
79
- "@kubb/plugin-ts": "4.16.0",
80
- "@kubb/plugin-zod": "4.16.0"
73
+ "@kubb/react-fabric": "0.10.0",
74
+ "remeda": "^2.33.4",
75
+ "@kubb/core": "4.17.0",
76
+ "@kubb/oas": "4.17.0",
77
+ "@kubb/plugin-client": "4.17.0",
78
+ "@kubb/plugin-oas": "4.17.0",
79
+ "@kubb/plugin-ts": "4.17.0",
80
+ "@kubb/plugin-zod": "4.17.0"
81
81
  },
82
82
  "peerDependencies": {
83
- "@kubb/react-fabric": "0.9.5"
83
+ "@kubb/react-fabric": "0.10.0"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=20"