hono-takibi 0.9.995 → 0.9.997

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.
Files changed (34) hide show
  1. package/README.md +6 -6
  2. package/dist/config/index.d.ts +526 -232
  3. package/dist/config/index.js +36 -48
  4. package/dist/core/docs/index.d.ts +7 -12
  5. package/dist/core/docs/index.js +2 -2
  6. package/dist/core/rpc/index.d.ts +5 -4
  7. package/dist/core/rpc/index.js +45 -46
  8. package/dist/core/svelte-query/index.d.ts +6 -17
  9. package/dist/core/svelte-query/index.js +1 -14
  10. package/dist/core/swr/index.d.ts +5 -17
  11. package/dist/core/swr/index.js +1 -14
  12. package/dist/core/tanstack-query/index.d.ts +6 -17
  13. package/dist/core/tanstack-query/index.js +1 -14
  14. package/dist/core/type/index.d.ts +4 -2
  15. package/dist/core/type/index.js +20 -24
  16. package/dist/core/vue-query/index.d.ts +6 -17
  17. package/dist/core/vue-query/index.js +1 -14
  18. package/dist/{docs-Da_MOdAe.js → docs-1QJKvmlJ.js} +13 -40
  19. package/dist/emit-jWqQ0xpG.js +50 -0
  20. package/dist/{fsp-Bv1yR6UV.js → fsp-CmwX3H5i.js} +0 -34
  21. package/dist/generator/zod-openapi-hono/openapi/index.d.ts +1 -8
  22. package/dist/generator/zod-openapi-hono/openapi/index.js +1 -1
  23. package/dist/guard-Bckx07hH.js +73 -0
  24. package/dist/{index-CMf0VrGm.d.ts → index-CMfYY9IJ.d.ts} +0 -12
  25. package/dist/index.js +11 -16
  26. package/dist/{openapi-BZ9b1y3X.js → openapi-BCUS4k9Q.js} +399 -716
  27. package/dist/{openapi-D2QO8Njt.js → openapi-CkIxDbUh.js} +527 -577
  28. package/dist/{query-CArUJxE4.js → query-KPg0LuAd.js} +15 -15
  29. package/dist/{hono-rpc-BOLdCVD_.js → rpc-DFAo02Gs.js} +31 -79
  30. package/dist/{utils-B9bUHU9P.js → utils-BW8xrN9x.js} +5 -6
  31. package/dist/vite-plugin/index.js +95 -177
  32. package/package.json +11 -12
  33. package/dist/core-BlUaJE2n.js +0 -86
  34. package/dist/guard-BabA4f3q.js +0 -136
package/README.md CHANGED
@@ -196,7 +196,7 @@ export default defineConfig({
196
196
  template: {
197
197
  test: true,
198
198
  pathAlias: '@/',
199
- framework: 'bun', // "vitest" (default) | "bun"
199
+ testFramework: 'bun', // "vitest" (default) | "vite-plus" | "bun"
200
200
  },
201
201
  },
202
202
  })
@@ -206,7 +206,7 @@ This generates:
206
206
 
207
207
  - `src/index.ts` - App entry point with route registrations
208
208
  - `src/handlers/*.ts` - Handler stubs for each resource
209
- - `src/handlers/*.test.ts` - Test files with `@faker-js/faker` mock data (imports from `vitest` or `bun:test`)
209
+ - `src/handlers/*.test.ts` - Test files with `@faker-js/faker` mock data (imports from `vitest`, `vite-plus/test`, or `bun:test`)
210
210
 
211
211
  Re-running after updating your OpenAPI spec is safe — your hand-written handler logic and test customizations are preserved. Only new routes are added as stubs.
212
212
 
@@ -300,7 +300,7 @@ export default defineConfig({
300
300
  test: {
301
301
  output: './src/test.ts',
302
302
  import: '../index',
303
- framework: 'bun', // "vitest" (default) | "bun"
303
+ testFramework: 'bun', // "vitest" (default) | "vite-plus" | "bun"
304
304
  },
305
305
  })
306
306
  ```
@@ -372,7 +372,7 @@ export default defineConfig({
372
372
  // Base path prefix for all routes
373
373
  basePath: '/api',
374
374
 
375
- // oxfmt FormatOptions for generated code output
375
+ // oxfmt FormatConfig for generated code output
376
376
  // @see https://www.npmjs.com/package/oxfmt
377
377
  // format: {},
378
378
 
@@ -387,7 +387,7 @@ export default defineConfig({
387
387
  test: true, // Generate test files
388
388
  routeHandler: false, // false: inline .openapi() (default), true: RouteHandler exports
389
389
  pathAlias: '@/', // TypeScript path alias for imports
390
- framework: 'vitest', // "vitest" (default) | "bun" — test import source
390
+ testFramework: 'vitest', // "vitest" (default) | "vite-plus" | "bun" — test import source
391
391
  },
392
392
 
393
393
  // Export options (OpenAPI Components Object)
@@ -528,7 +528,7 @@ export default defineConfig({
528
528
  test: {
529
529
  output: './src/test.ts',
530
530
  import: '../index', // Import path for the app instance
531
- framework: 'vitest', // "vitest" (default) | "bun" — test import source
531
+ testFramework: 'vitest', // "vitest" (default) | "vite-plus" | "bun" — test import source
532
532
  },
533
533
 
534
534
  // Mock server generation