@kubb/plugin-vue-query 5.3.0 → 5.4.0-canary.20261013T074222

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/OVERVIEW.md ADDED
@@ -0,0 +1,18 @@
1
+ # Vue Query
2
+
3
+ Generates TanStack Query helpers for Vue from your OpenAPI spec. By default you get `queryOptions` factories with their query and mutation keys. Set `hooks: true` to also get `useQuery`, `useInfiniteQuery`, and `useMutation` composables with reactive parameters.
4
+
5
+ The plugin ships no HTTP client. Each helper calls a function generated by a client plugin.
6
+
7
+ ## Setup
8
+
9
+ - Add `@kubb/plugin-ts` and a client plugin: `@kubb/plugin-fetch` or `@kubb/plugin-axios`.
10
+ - Install `@tanstack/vue-query` v5 or higher in the app that uses the generated code.
11
+ - Configure validation on the client plugin, not here.
12
+
13
+ ## Options worth knowing
14
+
15
+ - `client` picks `fetch` or `axios` when both client plugins are registered. A single client is detected automatically.
16
+ - `hooks` adds the `use*` composables on top of the option factories.
17
+ - `infinite` adds infinite queries for pagination. Set `infinite.queryParam` to the query parameter that holds the page cursor.
18
+ - `query` and `mutation` set which HTTP methods become queries (`GET`) and mutations (`POST`, `PUT`, `PATCH`, `DELETE`), and where the TanStack Query runtime is imported from. Set either to `false` to skip it.
package/dist/index.cjs CHANGED
@@ -352,8 +352,14 @@ function createGroupConfig(group) {
352
352
  };
353
353
  }
354
354
  //#endregion
355
+ //#region kubb-extension.json
356
+ var compatibility = {
357
+ "kubb": ">=5.8.0",
358
+ "node": ">=22"
359
+ };
360
+ //#endregion
355
361
  //#region package.json
356
- var version = "5.3.0";
362
+ var version = "5.4.0-canary.20261013T074222";
357
363
  //#endregion
358
364
  //#region ../../internals/tanstack-query/src/utils.ts
359
365
  /**
@@ -1797,7 +1803,7 @@ const pluginVueQuery = (0, kubb_kit.definePlugin)({
1797
1803
  meta: {
1798
1804
  name: pluginVueQueryName,
1799
1805
  version,
1800
- compatibility: { kubb: ">=5.8.0" }
1806
+ compatibility
1801
1807
  },
1802
1808
  dependencies: { [_kubb_plugin_ts.pluginTsName]: {} },
1803
1809
  setup(options) {