hono-takibi 0.9.997 → 0.9.998
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 +36 -8
- package/dist/config/index.d.ts +621 -439
- package/dist/config/index.js +215 -138
- package/dist/core/angular-query/index.d.ts +14 -0
- package/dist/core/angular-query/index.js +21 -0
- package/dist/core/docs/index.d.ts +1 -1
- package/dist/core/docs/index.js +1 -1
- package/dist/core/preact-query/index.d.ts +14 -0
- package/dist/core/preact-query/index.js +24 -0
- package/dist/core/rpc/index.d.ts +1 -1
- package/dist/core/rpc/index.js +3 -3
- package/dist/core/solid-query/index.d.ts +14 -0
- package/dist/core/solid-query/index.js +20 -0
- package/dist/core/svelte-query/index.d.ts +1 -1
- package/dist/core/svelte-query/index.js +1 -1
- package/dist/core/swr/index.d.ts +1 -1
- package/dist/core/swr/index.js +1 -1
- package/dist/core/tanstack-query/index.d.ts +1 -1
- package/dist/core/tanstack-query/index.js +1 -1
- package/dist/core/type/index.d.ts +1 -1
- package/dist/core/type/index.js +6 -4
- package/dist/core/vue-query/index.d.ts +1 -1
- package/dist/core/vue-query/index.js +7 -3
- package/dist/{docs-1QJKvmlJ.js → docs-CSuOwViw.js} +1 -1
- package/dist/generator/zod-openapi-hono/openapi/index.d.ts +1 -1
- package/dist/generator/zod-openapi-hono/openapi/index.js +1 -1
- package/dist/{index-CMfYY9IJ.d.ts → index-BDpZiPrC.d.ts} +1 -0
- package/dist/index.js +9 -3
- package/dist/{openapi-BCUS4k9Q.js → openapi-BghxZU1N.js} +322 -429
- package/dist/{openapi-CkIxDbUh.js → openapi-CBoTbTSE.js} +11 -11
- package/dist/{query-KPg0LuAd.js → query-BEHUeKMm.js} +121 -56
- package/dist/{rpc-DFAo02Gs.js → rpc-0ionzZZB.js} +1 -1
- package/dist/vite-plugin/index.js +12 -3
- package/package.json +13 -2
- /package/dist/{guard-Bckx07hH.js → guard-CGdVjfki.js} +0 -0
- /package/dist/{utils-BW8xrN9x.js → utils-aOXRa2YU.js} +0 -0
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npm install -D hono-takibi
|
|
|
15
15
|
- OpenAPI schemas to [Zod](https://zod.dev/) schemas
|
|
16
16
|
- [@hono/zod-openapi](https://hono.dev/examples/zod-openapi) route definitions
|
|
17
17
|
- App entry point + handler stubs + test files
|
|
18
|
-
- Client library hooks (TanStack Query,
|
|
18
|
+
- Client library hooks (SWR, TanStack Query, Preact Query, Solid Query, Vue Query, Svelte Query, Angular Query)
|
|
19
19
|
- RPC client, mock server, TypeScript types
|
|
20
20
|
- API reference docs with [hono-cli](https://github.com/honojs/cli) commands
|
|
21
21
|
|
|
@@ -269,7 +269,7 @@ export default app
|
|
|
269
269
|
|
|
270
270
|
## Client Library Integrations
|
|
271
271
|
|
|
272
|
-
Supported: TanStack Query,
|
|
272
|
+
Supported: SWR, TanStack Query, Preact Query, Solid Query, Vue Query, Svelte Query, Angular Query, RPC Client.
|
|
273
273
|
|
|
274
274
|
```ts
|
|
275
275
|
export default defineConfig({
|
|
@@ -287,6 +287,17 @@ export default defineConfig({
|
|
|
287
287
|
})
|
|
288
288
|
```
|
|
289
289
|
|
|
290
|
+
### Infinite Query (`x-pagination`)
|
|
291
|
+
|
|
292
|
+
Set `x-pagination: true` on a GET operation to generate infinite query hooks.
|
|
293
|
+
|
|
294
|
+
```yaml
|
|
295
|
+
paths:
|
|
296
|
+
/posts:
|
|
297
|
+
get:
|
|
298
|
+
x-pagination: true
|
|
299
|
+
```
|
|
300
|
+
|
|
290
301
|
## Test & Mock Generation
|
|
291
302
|
|
|
292
303
|
### Test Generation
|
|
@@ -498,21 +509,27 @@ export default defineConfig({
|
|
|
498
509
|
parseResponse: true, // Use parseResponse for type-safe responses
|
|
499
510
|
},
|
|
500
511
|
|
|
501
|
-
// Client library integrations (TanStack Query,
|
|
512
|
+
// Client library integrations (SWR, TanStack Query, Preact Query, Solid Query, Vue Query, Svelte Query, Angular Query)
|
|
513
|
+
swr: {
|
|
514
|
+
output: './src/swr',
|
|
515
|
+
import: '../client',
|
|
516
|
+
split: true,
|
|
517
|
+
client: 'client',
|
|
518
|
+
},
|
|
502
519
|
'tanstack-query': {
|
|
503
520
|
output: './src/tanstack-query',
|
|
504
521
|
import: '../client',
|
|
505
522
|
split: true,
|
|
506
523
|
client: 'client',
|
|
507
524
|
},
|
|
508
|
-
'
|
|
509
|
-
output: './src/
|
|
525
|
+
'preact-query': {
|
|
526
|
+
output: './src/preact-query',
|
|
510
527
|
import: '../client',
|
|
511
528
|
split: true,
|
|
512
529
|
client: 'client',
|
|
513
530
|
},
|
|
514
|
-
|
|
515
|
-
output: './src/
|
|
531
|
+
'solid-query': {
|
|
532
|
+
output: './src/solid-query',
|
|
516
533
|
import: '../client',
|
|
517
534
|
split: true,
|
|
518
535
|
client: 'client',
|
|
@@ -523,6 +540,18 @@ export default defineConfig({
|
|
|
523
540
|
split: true,
|
|
524
541
|
client: 'client',
|
|
525
542
|
},
|
|
543
|
+
'svelte-query': {
|
|
544
|
+
output: './src/svelte-query',
|
|
545
|
+
import: '../client',
|
|
546
|
+
split: true,
|
|
547
|
+
client: 'client',
|
|
548
|
+
},
|
|
549
|
+
'angular-query': {
|
|
550
|
+
output: './src/angular-query',
|
|
551
|
+
import: '../client',
|
|
552
|
+
split: true,
|
|
553
|
+
client: 'client',
|
|
554
|
+
},
|
|
526
555
|
|
|
527
556
|
// Test generation
|
|
528
557
|
test: {
|
|
@@ -555,7 +584,6 @@ export default defineConfig({
|
|
|
555
584
|
**This package is in active development and may introduce breaking changes without prior notice.**
|
|
556
585
|
|
|
557
586
|
- Not all OpenAPI features are supported
|
|
558
|
-
- Circular references through `allOf` may cause stack overflow in type generation
|
|
559
587
|
- Some OpenAPI validations may not be perfectly converted to Zod
|
|
560
588
|
|
|
561
589
|
We strongly recommend:
|