@kubb/plugin-svelte-query 4.21.0 → 4.21.1

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 PluginSvelteQuery, o as Operation, r as Transformer, s as __name } from "./types-BUe2gV6R.cjs";
1
+ import { a as OperationSchemas, n as PluginSvelteQuery, o as Operation, r as Transformer, s as __name } from "./types-BkhovPjN.cjs";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { FabricReactNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { a as OperationSchemas, n as PluginSvelteQuery, o as Operation, r as Transformer } from "./types-ZCy002j7.js";
2
+ import { a as OperationSchemas, n as PluginSvelteQuery, o as Operation, r as Transformer } from "./types-D3I6F2Ek.js";
3
3
  import { FunctionParams } from "@kubb/react-fabric";
4
4
  import { FabricReactNode } from "@kubb/react-fabric/types";
5
5
 
@@ -1,4 +1,4 @@
1
- import { i as ReactGenerator, n as PluginSvelteQuery, s as __name } from "./types-BUe2gV6R.cjs";
1
+ import { i as ReactGenerator, n as PluginSvelteQuery, s as __name } from "./types-BkhovPjN.cjs";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSvelteQuery>;
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-ZCy002j7.js";
2
+ import { i as ReactGenerator, n as PluginSvelteQuery } from "./types-D3I6F2Ek.js";
3
3
 
4
4
  //#region src/generators/mutationGenerator.d.ts
5
5
  declare const mutationGenerator: ReactGenerator<PluginSvelteQuery>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as PluginSvelteQuery, s as __name, t as Options } from "./types-BUe2gV6R.cjs";
1
+ import { n as PluginSvelteQuery, s as __name, t as Options } from "./types-BkhovPjN.cjs";
2
2
  import * as _kubb_core0 from "@kubb/core";
3
3
 
4
4
  //#region src/plugin.d.ts
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { n as PluginSvelteQuery, t as Options } from "./types-ZCy002j7.js";
2
+ import { n as PluginSvelteQuery, t as Options } from "./types-D3I6F2Ek.js";
3
3
  import * as _kubb_core0 from "@kubb/core";
4
4
 
5
5
  //#region src/plugin.d.ts
@@ -781,7 +781,7 @@ type Options = {
781
781
  /**
782
782
  * Override some useMutation behaviors.
783
783
  */
784
- mutation?: Mutation | false;
784
+ mutation?: Partial<Mutation> | false;
785
785
  /**
786
786
  * Which parser should be used before returning the data to `@tanstack/query`.
787
787
  * `'zod'` uses `@kubb/plugin-zod` to parse the data.
@@ -814,4 +814,4 @@ type ResolvedOptions = {
814
814
  type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options, ResolvedOptions, never, ResolvePathOptions>;
815
815
  //#endregion
816
816
  export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, Operation$1 as o, Transformer as r, __name as s, Options as t };
817
- //# sourceMappingURL=types-BUe2gV6R.d.cts.map
817
+ //# sourceMappingURL=types-BkhovPjN.d.cts.map
@@ -780,7 +780,7 @@ type Options = {
780
780
  /**
781
781
  * Override some useMutation behaviors.
782
782
  */
783
- mutation?: Mutation | false;
783
+ mutation?: Partial<Mutation> | false;
784
784
  /**
785
785
  * Which parser should be used before returning the data to `@tanstack/query`.
786
786
  * `'zod'` uses `@kubb/plugin-zod` to parse the data.
@@ -813,4 +813,4 @@ type ResolvedOptions = {
813
813
  type PluginSvelteQuery = PluginFactoryOptions<'plugin-svelte-query', Options, ResolvedOptions, never, ResolvePathOptions>;
814
814
  //#endregion
815
815
  export { OperationSchemas as a, ReactGenerator as i, PluginSvelteQuery as n, Operation$1 as o, Transformer as r, Options as t };
816
- //# sourceMappingURL=types-ZCy002j7.d.ts.map
816
+ //# sourceMappingURL=types-D3I6F2Ek.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-svelte-query",
3
- "version": "4.21.0",
3
+ "version": "4.21.1",
4
4
  "description": "Svelte Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Svelte applications.",
5
5
  "keywords": [
6
6
  "svelte-query",
@@ -73,17 +73,17 @@
73
73
  }
74
74
  ],
75
75
  "dependencies": {
76
- "@kubb/react-fabric": "0.12.10",
76
+ "@kubb/react-fabric": "0.12.11",
77
77
  "remeda": "^2.33.5",
78
- "@kubb/core": "4.21.0",
79
- "@kubb/oas": "4.21.0",
80
- "@kubb/plugin-client": "4.21.0",
81
- "@kubb/plugin-oas": "4.21.0",
82
- "@kubb/plugin-ts": "4.21.0",
83
- "@kubb/plugin-zod": "4.21.0"
78
+ "@kubb/core": "4.21.1",
79
+ "@kubb/oas": "4.21.1",
80
+ "@kubb/plugin-client": "4.21.1",
81
+ "@kubb/plugin-oas": "4.21.1",
82
+ "@kubb/plugin-ts": "4.21.1",
83
+ "@kubb/plugin-zod": "4.21.1"
84
84
  },
85
85
  "peerDependencies": {
86
- "@kubb/react-fabric": "0.12.10"
86
+ "@kubb/react-fabric": "0.12.11"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=20"
package/src/types.ts CHANGED
@@ -111,7 +111,7 @@ export type Options = {
111
111
  /**
112
112
  * Override some useMutation behaviors.
113
113
  */
114
- mutation?: Mutation | false
114
+ mutation?: Partial<Mutation> | false
115
115
  /**
116
116
  * Which parser should be used before returning the data to `@tanstack/query`.
117
117
  * `'zod'` uses `@kubb/plugin-zod` to parse the data.