@kubb/plugin-react-query 5.10.1 → 5.10.3

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/index.cjs CHANGED
@@ -37,7 +37,7 @@ var compatibility = {
37
37
  "node": ">=22.22"
38
38
  };
39
39
  // package.json
40
- var version = "5.10.1";
40
+ var version = "5.10.3";
41
41
  // ../../internals/client/src/resolveClient.ts
42
42
  /**
43
43
  * Resolves which client plugin a consumer (react-query, vue-query, swr, mcp) should call for an
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ var compatibility = {
10
10
  "node": ">=22.22"
11
11
  };
12
12
  // package.json
13
- var version = "5.10.1";
13
+ var version = "5.10.3";
14
14
  // ../../internals/client/src/resolveClient.ts
15
15
  /**
16
16
  * Resolves which client plugin a consumer (react-query, vue-query, swr, mcp) should call for an
@@ -17,6 +17,8 @@ const { data, error, isLoading } = useGetPetById({ path: { petId: 1 } })
17
17
 
18
18
  The examples set [`integerType: 'number'`](https://kubb.dev/extensions/kubb-labs/adapter-oas/options#integertype) on the adapter, so an `int64` id such as `petId` is a `number`. With the default it is a `bigint` and the call takes `1n`.
19
19
 
20
+ Path keys keep the names from the spec, so a `{pet-id}` placeholder is passed as `path: { 'pet-id': 1 }`. Set [`pathParamsCasing: 'camelcase'`](https://kubb.dev/extensions/kubb-labs/adapter-oas/options#pathparamscasing) on the adapter (`@kubb/adapter-oas` 5.20.0 or later) to pass `path: { petId: 1 }` instead, the name MSW handlers and query keys already use. The HTTP request stays the same.
21
+
20
22
  The second argument has two optional groups. `query` takes any TanStack Query option, and `query.client` sets the `QueryClient` to use. The top-level `client` takes request config for this call, such as `baseURL` or `signal`:
21
23
 
22
24
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-react-query",
3
- "version": "5.10.1",
3
+ "version": "5.10.3",
4
4
  "description": "Generate type-safe TanStack Query (React Query) hooks with Kubb. Covers useQuery, useMutation, useInfiniteQuery, and queryOptions with full TypeScript support.",
5
5
  "keywords": [
6
6
  "code-generation",
@@ -81,16 +81,16 @@
81
81
  "registry": "https://registry.npmjs.org/"
82
82
  },
83
83
  "dependencies": {
84
- "@kubb/kit": "^5.18.8",
85
- "@kubb/plugin-ts": "^5.5.1",
86
- "@kubb/renderer-jsx": "^5.18.8"
84
+ "@kubb/kit": "^5.20.1",
85
+ "@kubb/plugin-ts": "^5.5.3",
86
+ "@kubb/renderer-jsx": "^5.20.1"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@internals/client": "0.0.0",
90
90
  "@internals/shared": "0.0.0",
91
91
  "@internals/tanstack-query": "0.0.0",
92
92
  "@internals/utils": "0.0.0",
93
- "@kubb/plugin-client": "6.0.1",
93
+ "@kubb/plugin-client": "6.0.3",
94
94
  "@tanstack/react-query": "^5.107.1"
95
95
  },
96
96
  "peerDependencies": {