ZenStack Release v2.7.0
New Features
- Hono server adapter! #1270 by @svetch doc
- RESTful server API handler now supports compound ID fields #1748 by @thomassnielsen doc
- TRPC client helper generation now supports Nuxt #1761 doc
Fixes and Improvements
- Fixed generated code compilation errors when Prisma is set to output to a custom relative output path #1743
- Removed
createManyAndReturn
field from "create" payload of polymorphic models to avoid confusion #1738 - TanStack-Query/SWR hooks optimistic update now supports "upsert" operation #1767 doc
- Added support to use
auth()
function inside policy filter functions (has
,contains
, etc.) - Fixed the problem that TanStack-Query optimistic update interfering with queries not managed by ZenStack #1774
- Added support for boolean fields with default values in generated Zod schemas by @Arkanii
- Generated OpenAPI spec now has all attributes as non-optional for RESTful flavor since all fields are returned #1744 by @thomassnielsen
- Fixed polymorphic model query issues when fields are inherited from an indirect abstract ancestor #1770
- Fixed IDE type-checking issue when importing a zmodel file from an npm package #1760
- Bumped Prisma peer dependency version to 5.21.x
New Contributors
Welcome @svetch @thomassnielsen @Arkanii as our new contributors! ❤️
Full Changelog: v2.6.2...v2.7.0