Skip to content

Releases: zenstackhq/zenstack

ZenStack Release v1.10.0

02 Mar 05:02
0dfc81f
Compare
Choose a tag to compare

Fixes and Improvements

  • Fixed typing issue in generated query hooks for TanStack Query (for Vue) #1056
  • Fixed zenstack CLI errors when running bun/bunx in non-tty environment by @ErikMCM
  • Allows enum types for id fields by @Ustice
  • Fixed missing parameters for a few built-in attributes (@@fulltext, @@db.VarBinary) by @Ustice
  • Fixed the problem that transformation attributes (@trim, @lower, @upper) are not effective for update operations #1005
  • Fixed the incorrect policy rejection when field-level policy specifies override but no model-level policy is defined #1014
  • Improved ZModel checking for nullability consistency between relation field and foreign key field #177
  • Generated Zod schemas now include coercion (z.coerce.date()) for DateTime typed fields #1067
  • Improved typing of error field of the TanStack Query mutation hooks #1062

Docs

New quick start guide for NextJS app router.

New Contributors

Welcome @ErikMCM @Ustice and @TGTGamer to becoming our new contributors!

Full Changelog: v1.9.0...v1.10.0

v2.0.0-alpha.2

21 Feb 06:55
c2f84f9
Compare
Choose a tag to compare
v2.0.0-alpha.2 Pre-release
Pre-release

2.0.0-alpha.2 (2024-02-21)

Miscellaneous Chores

ZenStack Release v1.9.0

17 Feb 02:35
d0eaf25
Compare
Choose a tag to compare

What's Changed

  • New data transformation attributes @trim, @upper, @lower - they make sure values are transformed before storing into the database, and are also generated as corresponding Zod calls by the @core/zod plugin. By @simonedelmann docs
  • The parameters of Prisma transactions (timeout, maxWait, etc.) used internally by ZenStack are configurable #986 docs
  • Fixed several issues related to validating multi-level inheritance from abstract models #965 #971 #983
  • Fixed the issue the @omit attribute doesn't trim fields included in a nested one-to-many #984
  • Support for complex usage of @@index #987
  • Tanstack-query plugin now generates useSuspense and useSuspenseInfinite query hooks when generating for version "v5" and targeting "react" #857

New Contributors

Full Changelog: v1.8.1...v1.9.0

ZenStack Release v2.0.0-alpha.1

17 Feb 04:29
7b453f7
Compare
Choose a tag to compare
Pre-release

New Features

Breaking Changes

Check here for a list of breaking changes.


Please make sure to check out the Upgrading to V2 documentation for more details.

ZenStack Release v1.8.1

01 Feb 14:53
a658f27
Compare
Choose a tag to compare

Features and Improvements

  • Fixed "hostname not found" error when deploying to Vercel #931 by @Azzerty23
  • Fixed CLI crash when package.json is not found in the current dir #960
  • Fixed typing of tanstack-query code generation to properly support "select" options #963
  • Optimized typing of the generated TRPC code (to prepare for supporting trpc v11 down the road)

Thanks to @Azzerty23 for the contribution!

Full Changelog: v1.7.1...v1.8.0

ZenStack Release v1.7.1

26 Jan 02:24
2b2bfcf
Compare
Choose a tag to compare

What's Changed

  • Fixed an incorrect access policy injection when updateMany or delegeMany are nested inside update operation in certain cases #961

Full Changelog: v1.7.0...v1.7.1

ZenStack Release v1.7.0

16 Jan 08:48
3b9a6c4
Compare
Choose a tag to compare

New Features

  • VSCode extension and JetBrains plugin now support better auto-completion

    There's auto-completion inside attributes now. It's not perfect, but it should be a pretty big improvement compared to previous versions. Having accurate contextual auto-completion still requires quite some work, and we'll continue improving it down the road. Please let use know your pain points!

image

What's Changed

  • Fixed type generation error for tanstack-query plugin when targeting Svelt #945 by @bbozzay
  • Fixed ZModel validation error when using empty array in @default attribute #947 by @chunkerchunker

About V2

While gradually wrapping up the V1 track, we're making some good progressing on experimenting polymorphism in V2 branch. Please stay tuned for updates.

New Contributors

Welcome @bbozzay and @chunkerchunker to becoming warmhearted contributors! Thank you for making ZenStack a better toolkit!

Full Changelog: v1.6.2...v1.7.0

ZenStack Release v1.6.2

10 Jan 06:24
5a92044
Compare
Choose a tag to compare

What's Changed

  • Fixed an issue that transactions may not be properly rolled back due to nesting.
  • Marked several APIs deprecated: withPolicy, withPassword, withOmit, withPreset. They'll be removed in V2.

Full Changelog: v1.6.1...v1.6.2

ZenStack Release v1.6.1

03 Jan 13:00
890aeeb
Compare
Choose a tag to compare

What's Changed

  • Added support for the new nanoid() attribute function supported by Prisma #923 by @dikyarga
  • Policy generation error when auth() is accessed with multi-level member access #921
  • Incorrect resolution when references are resolved inside collection predicate expressions #925
  • Updated several vulnerable npm dependencies

New Contributors

Full Changelog: v1.6.0...v1.6.1

ZenStack Release v1.6.0

01 Jan 14:02
bdb95ff
Compare
Choose a tag to compare

🎈 Happy New Year 🎈

New Features

  • First release of JetBrains plugin! Search for "ZenStack Language Tools" in WebStorm or install it from here #519
  • Plugin package for integrating with RedwoodJS docs

Improvements and Fixes

  • [openapi] make sure optional fields are generated as nullable types
  • [zmodel] fixed crash caused by missing opposite side of relation field when model inheritance is used
  • [zmodel] stricter type checking for disallowing comparison between fields of different models #901
  • [zod] fields with default values are generated into zod schema with ".default" #886

Full Changelog: v1.5.0...v1.6.0