@7nohe/openapi-react-query-codegen 3.0.2 โ 3.1.0-beta.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.
- package/README.md +12 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/js/%407nohe%2Fopenapi-react-query-codegen)
|
|
6
6
|
|
|
7
|
-
๐ **[Documentation](https://openapi-react-query-codegen.vercel.app)** ยท [Migrating to v3](https://openapi-react-query-codegen.vercel.app/guides/migrating-to-v3/)
|
|
7
|
+
๐ **[Documentation](https://openapi-react-query-codegen.vercel.app)** ยท [Migrating to v3](https://openapi-react-query-codegen.vercel.app/guides/migrating-to-v3/) ยท [Coming from openapi-react-query](https://openapi-react-query-codegen.vercel.app/guides/migrating-from-openapi-react-query/)
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -35,18 +35,20 @@ See the [documentation](https://openapi-react-query-codegen.vercel.app) for CLI
|
|
|
35
35
|
|
|
36
36
|
## How it compares
|
|
37
37
|
|
|
38
|
-
| | This library | @hey-api tanstack-query plugin | Orval |
|
|
39
|
-
|
|
40
|
-
| `queryOptions` / `infiniteQueryOptions` factories (TanStack v5 pattern) | โ
| โ
| โ |
|
|
41
|
-
| Ready-to-use hooks (`useQuery` / suspense / infinite variants) | โ
| โ (options only) | โ
|
|
|
42
|
-
| SSR helpers (`prefetchQuery` / `prefetchInfiniteQuery` / `ensureQueryData`) | โ
| โ | Partial (`usePrefetch`) |
|
|
43
|
-
| Hierarchical query keys for granular invalidation | โ
| โ
(tags) | Partial |
|
|
44
|
-
| Stable release line | โ
SemVer | pre-1.0, frequent breaking changes | โ
|
|
|
45
|
-
| MSW mock generation | โ (out of scope) | โ | โ
|
|
|
46
|
-
| Vue / Solid / Svelte / Angular | โ React-focused | โ
| โ
|
|
|
38
|
+
| | This library | @hey-api tanstack-query plugin | Orval | openapi-react-query |
|
|
39
|
+
|---|---|---|---|---|
|
|
40
|
+
| `queryOptions` / `infiniteQueryOptions` factories (TanStack v5 pattern) | โ
| โ
| โ | โ
(`$api.queryOptions`) |
|
|
41
|
+
| Ready-to-use hooks (`useQuery` / suspense / infinite variants) | โ
generated per operation | โ (options only) | โ
| โ
runtime wrapper (method + path strings) |
|
|
42
|
+
| SSR helpers (`prefetchQuery` / `prefetchInfiniteQuery` / `ensureQueryData`) | โ
| โ | Partial (`usePrefetch`) | Not provided (use `queryOptions`) |
|
|
43
|
+
| Hierarchical query keys for granular invalidation | โ
| โ
(tags) | Partial | Not documented |
|
|
44
|
+
| Stable release line | โ
SemVer | pre-1.0, frequent breaking changes | โ
| โ ๏ธ upstream openapi-typescript is in [maintenance mode](https://github.com/openapi-ts/openapi-typescript/issues/2874) |
|
|
45
|
+
| MSW mock generation | โ (out of scope) | โ | โ
| โ |
|
|
46
|
+
| Vue / Solid / Svelte / Angular | โ React-focused | โ
| โ
| โ |
|
|
47
47
|
|
|
48
48
|
**Scope**: this library is deliberately React-focused and does not generate API mocks โ use Orval if MSW mocks are your priority, or hey-api's own plugin if you need non-React frameworks.
|
|
49
49
|
|
|
50
|
+
**Coming from openapi-typescript / openapi-fetch / openapi-react-query?** See the [migration guide](https://openapi-react-query-codegen.vercel.app/guides/migrating-from-openapi-react-query/).
|
|
51
|
+
|
|
50
52
|
## Stability policy
|
|
51
53
|
|
|
52
54
|
This library builds on [@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts), which is pre-1.0 and moves fast. We **pin the exact hey-api version** and absorb its breaking changes for you: hey-api upgrades land here only after our full snapshot-test suite passes, and are released as minor versions. Your generated API surface follows SemVer โ breaking output changes only happen in major versions, with a migration guide.
|