@kubb/plugin-react-query 5.0.0-beta.33 → 5.0.0-beta.36
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/README.md +11 -11
- package/dist/{components-DLUeLMsz.cjs → components-DQAYLQW0.cjs} +1 -1
- package/dist/{components-DLUeLMsz.cjs.map → components-DQAYLQW0.cjs.map} +1 -1
- package/dist/{components-BVmVgpLX.js → components-IArDg-DO.js} +2 -2
- package/dist/{components-BVmVgpLX.js.map → components-IArDg-DO.js.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.d.ts +2 -2
- package/dist/components.js +1 -1
- package/dist/{generators-BFn9CLBS.js → generators-BXapgG_2.js} +3 -3
- package/dist/{generators-BFn9CLBS.js.map → generators-BXapgG_2.js.map} +1 -1
- package/dist/{generators--AcF4Y4n.cjs → generators-Miad-8AB.cjs} +2 -2
- package/dist/{generators--AcF4Y4n.cjs.map → generators-Miad-8AB.cjs.map} +1 -1
- package/dist/generators.cjs +1 -1
- package/dist/generators.d.ts +9 -10
- package/dist/generators.js +1 -1
- package/dist/index.cjs +9 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +10 -13
- package/dist/index.js.map +1 -1
- package/dist/{types-DiZPLTXl.d.ts → types-Dh4HNR9K.d.ts} +2 -2
- package/package.json +9 -8
- package/src/plugin.ts +1 -1
- /package/dist/{chunk--u3MIqq1.js → chunk-C0LytTxp.js} +0 -0
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<h1>@kubb/plugin-react-query</h1>
|
|
3
2
|
<a href="https://kubb.dev" target="_blank" rel="noopener noreferrer">
|
|
4
|
-
<img
|
|
3
|
+
<img src="https://kubb.dev/og.png" alt="Kubb banner">
|
|
5
4
|
</a>
|
|
6
5
|
|
|
7
6
|
[![npm version][npm-version-src]][npm-version-href]
|
|
@@ -11,8 +10,6 @@
|
|
|
11
10
|
[![Sponsors][sponsors-src]][sponsors-href]
|
|
12
11
|
|
|
13
12
|
<h4>
|
|
14
|
-
<a href="https://codesandbox.io/s/github/kubb-labs/plugins/tree/main/examples/react-query" target="_blank">View Demo</a>
|
|
15
|
-
<span> · </span>
|
|
16
13
|
<a href="https://kubb.dev/plugins/react-query" target="_blank">Documentation</a>
|
|
17
14
|
<span> · </span>
|
|
18
15
|
<a href="https://github.com/kubb-labs/kubb/issues/" target="_blank">Report Bug</a>
|
|
@@ -21,14 +18,13 @@
|
|
|
21
18
|
</h4>
|
|
22
19
|
</div>
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
<br />
|
|
22
|
+
|
|
23
|
+
# @kubb/plugin-react-query
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
### Generate TanStack Query hooks from OpenAPI
|
|
27
26
|
|
|
28
|
-
-
|
|
29
|
-
- Infers request, response, and error types from the spec
|
|
30
|
-
- Groups output files by tag, operation, or a custom strategy
|
|
31
|
-
- Works with `@kubb/plugin-ts`, `@kubb/plugin-zod`, and `@kubb/plugin-client`
|
|
27
|
+
`@kubb/plugin-react-query` generates TanStack Query hooks from your OpenAPI specification. Each operation becomes a typed `useQuery`, `useMutation`, or `useInfiniteQuery` hook.
|
|
32
28
|
|
|
33
29
|
## Installation
|
|
34
30
|
|
|
@@ -46,7 +42,7 @@ See the [full documentation](https://kubb.dev/plugins/react-query) for configura
|
|
|
46
42
|
|
|
47
43
|
## Supporting Kubb
|
|
48
44
|
|
|
49
|
-
Kubb is an
|
|
45
|
+
Kubb is an open source project, and its development is funded entirely by sponsors. If you would like to become a sponsor, please consider:
|
|
50
46
|
|
|
51
47
|
- [Become a Sponsor on GitHub](https://github.com/sponsors/stijnvanhulle)
|
|
52
48
|
|
|
@@ -56,6 +52,10 @@ Kubb is an MIT-licensed open source project with its ongoing development made po
|
|
|
56
52
|
</a>
|
|
57
53
|
</p>
|
|
58
54
|
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
[MIT](https://github.com/kubb-labs/plugins/blob/main/LICENSE)
|
|
58
|
+
|
|
59
59
|
<!-- Badges -->
|
|
60
60
|
|
|
61
61
|
[npm-version-src]: https://img.shields.io/npm/v/@kubb/plugin-react-query?flat&colorA=18181B&colorB=f58517
|