New Features
@zenstackhq/tanstack-query
and@zenstackhq/swr
plugins now generate InfinitefindMany
queries for supporting easier pagination. See documentation for tanstack-query and swr.
Fixes and Improvements
- Upgraded Prisma V4 dependencies to address a security audit warning
- Fixed the issue that the generated trpc code is not properly processed by vite
- More precise Zod typing when refinement is applied by @tlancina #676
- Fixed code generation error when there're unused enums in ZModel #674
- Make sure fastify plugin always return a reply to avoid stalling requests by @NeoN0x #684
- Added missing exports to "@zenstackhq/tanstack-query" package
- Fixed incorrect
count
result when complex policy conditions and where filters are mixed #689 - Exception thrown by enhanced PrismaClient now carries raw ZodError if the failure is due to zod validation #682
- Added "noUncheckedInput" option to zod plugin to turn off generation of "Unchecked" Prisma input types #681
zenstack generate
command now gives a warning if ZenStack packages of mismatched versions are detected #547zenstack generate
command now checks for newer versions and prompts #175- New CLI command line options:
- "-o, --output": set the default output directory for the built-in plugins
- "--no-default-plugins": turns off automatic running of built-in plugins
- "--no-compile": turns off automatic compilation of code generated by built-in plugins
enhance
API now has a newloadPath
option to load model metadata, policies and zod schemas from a custom location.
New Contributors
A big ❤️ THANK YOU ❤️ for the great contribution from @tlancina and @NeoN0x !
Full Changelog: v1.0.0-beta.21...v1.0.0-beta.23