@kubb/plugin-swr 4.13.0 → 4.14.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-k8j96LNI.cjs";
1
+ import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-Bpx6tX_E.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-DOmQq13q.js";
1
+ import { a as OperationSchemas, n as PluginSwr, r as Transformer, s as Operation } from "./types-CoafKdu2.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-k8j96LNI.cjs";
1
+ import { i as ReactGenerator, n as PluginSwr } from "./types-Bpx6tX_E.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-DOmQq13q.js";
1
+ import { i as ReactGenerator, n as PluginSwr } from "./types-CoafKdu2.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-k8j96LNI.cjs";
1
+ import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-Bpx6tX_E.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-DOmQq13q.js";
1
+ import { n as PluginSwr, o as UserPluginWithLifeCycle, t as Options } from "./types-CoafKdu2.js";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSwrName = "plugin-swr";
@@ -181,6 +181,8 @@ interface KubbEvents {
181
181
  id?: string;
182
182
  command: string;
183
183
  args?: readonly string[];
184
+ success: boolean;
185
+ error: Error | null;
184
186
  }];
185
187
  /**
186
188
  * Emitted when a new version of Kubb is available.
@@ -1079,7 +1081,7 @@ type SchemaGeneratorOptions = {
1079
1081
  dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date';
1080
1082
  unknownType: 'any' | 'unknown' | 'void';
1081
1083
  emptySchemaType: 'any' | 'unknown' | 'void';
1082
- enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
1084
+ enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1083
1085
  enumSuffix?: string;
1084
1086
  usedEnumNames?: Record<string, number>;
1085
1087
  mapper?: Record<string, string>;
@@ -1426,4 +1428,4 @@ type ResolvedOptions = {
1426
1428
  type PluginSwr = PluginFactoryOptions<'plugin-swr', Options, ResolvedOptions, never, ResolvePathOptions>;
1427
1429
  //#endregion
1428
1430
  export { OperationSchemas as a, ReactGenerator as i, PluginSwr as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1429
- //# sourceMappingURL=types-k8j96LNI.d.cts.map
1431
+ //# sourceMappingURL=types-Bpx6tX_E.d.cts.map
@@ -181,6 +181,8 @@ interface KubbEvents {
181
181
  id?: string;
182
182
  command: string;
183
183
  args?: readonly string[];
184
+ success: boolean;
185
+ error: Error | null;
184
186
  }];
185
187
  /**
186
188
  * Emitted when a new version of Kubb is available.
@@ -1079,7 +1081,7 @@ type SchemaGeneratorOptions = {
1079
1081
  dateType: false | 'string' | 'stringOffset' | 'stringLocal' | 'date';
1080
1082
  unknownType: 'any' | 'unknown' | 'void';
1081
1083
  emptySchemaType: 'any' | 'unknown' | 'void';
1082
- enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal';
1084
+ enumType?: 'enum' | 'asConst' | 'asPascalConst' | 'constEnum' | 'literal' | 'inlineLiteral';
1083
1085
  enumSuffix?: string;
1084
1086
  usedEnumNames?: Record<string, number>;
1085
1087
  mapper?: Record<string, string>;
@@ -1426,4 +1428,4 @@ type ResolvedOptions = {
1426
1428
  type PluginSwr = PluginFactoryOptions<'plugin-swr', Options, ResolvedOptions, never, ResolvePathOptions>;
1427
1429
  //#endregion
1428
1430
  export { OperationSchemas as a, ReactGenerator as i, PluginSwr as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1429
- //# sourceMappingURL=types-DOmQq13q.d.ts.map
1431
+ //# sourceMappingURL=types-CoafKdu2.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-swr",
3
- "version": "4.13.0",
3
+ "version": "4.14.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.0",
73
+ "@kubb/react-fabric": "0.9.2",
74
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"
75
+ "@kubb/core": "4.14.0",
76
+ "@kubb/oas": "4.14.0",
77
+ "@kubb/plugin-client": "4.14.0",
78
+ "@kubb/plugin-oas": "4.14.0",
79
+ "@kubb/plugin-ts": "4.14.0",
80
+ "@kubb/plugin-zod": "4.14.0"
81
81
  },
82
82
  "peerDependencies": {
83
- "@kubb/react-fabric": "0.9.0"
83
+ "@kubb/react-fabric": "0.9.2"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=20"