Skip to content

ZenStack Release v2.7.0

Compare
Choose a tag to compare
@ymc9 ymc9 released this 16 Oct 22:10
· 33 commits to main since this release
4e80c29

New Features

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