zodvex 0.7.9 → 0.7.10

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 (37) hide show
  1. package/dist/cli/index.js +3 -1
  2. package/dist/cli/index.js.map +1 -1
  3. package/dist/client/index.js +84 -11
  4. package/dist/client/index.js.map +1 -1
  5. package/dist/codegen/index.js +2 -1
  6. package/dist/codegen/index.js.map +1 -1
  7. package/dist/core/index.js.map +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/internal/boundaryHelpers.d.ts +1 -0
  10. package/dist/internal/boundaryHelpers.d.ts.map +1 -1
  11. package/dist/internal/paginationCodec.d.ts +8 -0
  12. package/dist/internal/paginationCodec.d.ts.map +1 -0
  13. package/dist/mini/client/index.js +84 -11
  14. package/dist/mini/client/index.js.map +1 -1
  15. package/dist/mini/index.js.map +1 -1
  16. package/dist/mini/react/index.js +74 -3
  17. package/dist/mini/react/index.js.map +1 -1
  18. package/dist/mini/server/index.js.map +1 -1
  19. package/dist/public/cli/init.d.ts.map +1 -1
  20. package/dist/public/client/index.d.ts +1 -1
  21. package/dist/public/client/index.d.ts.map +1 -1
  22. package/dist/public/client/zodvexClient.d.ts +23 -9
  23. package/dist/public/client/zodvexClient.d.ts.map +1 -1
  24. package/dist/public/codegen/generate.d.ts.map +1 -1
  25. package/dist/public/react/hooks.d.ts +11 -2
  26. package/dist/public/react/hooks.d.ts.map +1 -1
  27. package/dist/react/index.js +74 -3
  28. package/dist/react/index.js.map +1 -1
  29. package/dist/server/index.js.map +1 -1
  30. package/package.json +7 -4
  31. package/src/internal/boundaryHelpers.ts +1 -1
  32. package/src/internal/paginationCodec.ts +60 -0
  33. package/src/public/cli/init.ts +1 -0
  34. package/src/public/client/index.ts +1 -1
  35. package/src/public/client/zodvexClient.ts +70 -21
  36. package/src/public/codegen/generate.ts +2 -1
  37. package/src/public/react/hooks.ts +55 -5
package/dist/cli/index.js CHANGED
@@ -73,6 +73,7 @@ import { zodvexRegistry } from './api'
73
73
 
74
74
  export const useZodQuery = undefined as any
75
75
  export const useZodMutation = undefined as any
76
+ export const useZodPaginatedQuery = undefined as any
76
77
  export const useQuery_experimental = undefined as any
77
78
  export const createClient = undefined as any
78
79
  `;
@@ -2409,7 +2410,7 @@ function generateClientFile(options) {
2409
2410
  "import { zodvexRegistry } from './api.js'"
2410
2411
  ];
2411
2412
  const jsExports = [
2412
- "export const { useZodQuery, useZodMutation, useQuery_experimental } = createZodvexHooks(zodvexRegistry)",
2413
+ "export const { useZodQuery, useZodMutation, useZodPaginatedQuery, useQuery_experimental } = createZodvexHooks(zodvexRegistry)",
2413
2414
  "",
2414
2415
  "export const createClient = (options) =>",
2415
2416
  " createZodvexClient(zodvexRegistry, options)",
@@ -2432,6 +2433,7 @@ ${jsExports.join("\n")}
2432
2433
  ];
2433
2434
  const dtsDeclarations = [
2434
2435
  "export declare const useZodQuery: ZodvexHooks['useZodQuery']",
2436
+ "export declare const useZodPaginatedQuery: ZodvexHooks['useZodPaginatedQuery']",
2435
2437
  "export declare const useQuery_experimental: ZodvexHooks['useQuery_experimental']",
2436
2438
  "export declare const useZodMutation: ZodvexHooks['useZodMutation']",
2437
2439
  "",