Skip to content

ZenStack Release v1.0.0-beta.21

Compare
Choose a tag to compare
@ymc9 ymc9 released this 05 Sep 03:45
· 398 commits to main since this release
225c689

New Features

  • TRPC plugin now generates more flexible typings for routers and allows you to merge your own routers without breaking their typing - by @mateus-p , an example scenario here
  • Zod plugin now exports detailed Prisma input object schemas through @zenstackhq/runtime/zod/objects #647 - by @abdullahahmeda
  • Add support for Prisma's fluent API #401
  • TRPC plugin now generates the (previously missing) count procedure #618
  • ZModel schema now allows escaping characters in string literals with backslashes #416

Fixes and Improvements

  • @zenstackhq/server how has explicit "exports" in package.json, making it more friendly to bundlers - by @krist7599555
  • Fixed zod and openapi generation issue when Prisma's "fullTextSearch" preview feature is enabled #650
  • Fixed the problem that very small float number literal is output as "e-notation" in generated Prisma schema #646 with help from @sitch
  • Fixed incorrect zod schema generation when field-validation attributes (@gt etc.) are used on Decimal fields #657
  • Auxiliary fields (zenstack_guard and zenstack_transaction) previously generated into Prisma schema are finally removed!
  • Policy generation errors when this keyword is used in field-level policy rules #665

Breaking Changes

  • Not really breaking, but may be surprising. The zenstack_guard and zenstack_transaction fields previously generated by ZenStack are not used anymore and have been removed. This will cause changes in the generated Prisma schema, and you can choose to create a new migration file to sync the changes to the database.
  • ZenStack CLI now does more strict checking on "==" and "!=" operators in policy rules. If you compare incompatible fields (e.g., fields of relation to different models), the CLI will emit errors.

New Contributors

Big ❤️ THANK YOU ❤️ to our amazing new contributors! @mateus-p @abdullahahmeda @krist7599555

We're very close to a V1 release now!!!


Full Changelog: v1.0.0-beta.20...v1.0.0-beta.21