Skip to content

Releases: zenstackhq/zenstack-v3

ZenStack Release v3.2.0

09 Jan 11:35
b0996b4

Choose a tag to compare

🎉 New Features

Lots of cool stuff just landed, guys!

🚀 Custom Procedures

Use the new procedure keyword to define custom procedures in ZModel, and implement them with TypeScript. The procedures are accessible with the ORM client, the QaaS query services, and the TanStack Query hooks.

// get blog post feeds for a given user
procedure getUserFeeds(userId: Int, limit: Int?) : Post[] 

// sign up a new user
mutation procedure signUp(email: String) : User

This powerful feature is implemented by @mwillbanks doc

🚀 Field-level Access Control

Use the @allow and @deny attributes to define "read" or "update" rules for fields. doc

🚀 exists API

Use it to more easily and performantly check if rows matching a condition exist. Available through the ORM client, QaaS, and TanStack Query hooks. This amazing addition is implemented by @sanny-io

await db.post.exists({ where: { published: true } });

🚀 CLI Watch Mode

You can now run the CLI generation in watch mode with zen generate --watch. It detects input changes (the main ZModel and all its imports) and reruns generation automatically. Thanks @DoctorFTB for adding this long-awaited feature!

🚀 Community Package for TRPC

@olup created the zenstack-trpc package for automatically deriving tRPC routers from ZenStack v3 schemas. Compared to ZenStack v2's tRPC integration, this new implementation is much lighter-weight (no code-gen), and provides awesome type-safety. Check the repo for details!

🛠️ Improvements and Fixes

  • Fixed enum array CRUD issues with postgresql #576
  • Preserve zod validation errors when validating custom json types #558 (from v3.1.1)

Full Changelog: v3.1.1...v3.2.0

ZenStack Release v3.1.1

06 Jan 13:22
17d4ff2

Choose a tag to compare

What's Changed

  • [orm] Preserve zod validation errors when validating custom json types #558

Full Changelog: v3.1.0...v3.1.1

ZenStack Release v3.1.0

30 Dec 13:41
de795f5

Choose a tag to compare

Changes in this release

  • Merge pull request #565 from zenstackhq/fix/issue-558

ZenStack Release v3.0.0

24 Dec 10:09
e71bee7

Choose a tag to compare

Changes in this release

v3.0.0 stable release 🎉

  • [orm] Simplified typing of client constructor
  • [zmodel] Stricter validation for views

Full Changelog: v3.0.0-beta.34...v3.0.0

ZenStack Release v3.0.0-beta.34

19 Dec 02:20
e371ec9

Choose a tag to compare

What's Changed

  • CLI can now load TypeScript plugins directly (via jiti).

Full Changelog: v3.0.0-beta.33...v3.0.0-beta.34

ZenStack Release v3.0.0-beta.33

18 Dec 14:27
da6cf60

Choose a tag to compare

What's Changed

  • [zmodel] Added validation to make sure "!" operator is only applicable to boolean expressions.
  • [cli] Fixed "zenstack init" command for "yarn" and "bun" package manager.

Full Changelog: v3.0.0-beta.32...v3.0.0-beta.33

ZenStack Release v3.0.0-beta.32

17 Dec 02:37
3f3ffbe

Choose a tag to compare

What's Changed

  • [orm] Fixed a typing issue when querying a deeply nested to-many relation with extra clauses like take, and skip.
  • [orm] Fixed a query error when manipulating implicit many-to-many relations involving delegate models.

Full Changelog: v3.0.0-beta.31...v3.0.0-beta.32

ZenStack Release v3.0.0-beta.31

15 Dec 02:21
69dcf6b

Choose a tag to compare

What's Changed

  • [orm] Fixed the issue that some attributes ("@@index", etc.) are unintentionally inherited by sub models.
  • [orm] Properly stringify JSON data for postgres.
  • [policy] Actively rejecting access to tables not defined in ZModel.
  • [zmodel] Tightened up relation fields validation for delegate models.
  • [cli] Improved templates used by "npm create zenstack".

Full Changelog: v3.0.0-beta.29...v3.0.0-beta.31

ZenStack Release v3.0.0-beta.29

13 Dec 09:33
d35b939

Choose a tag to compare

New Features

  • [orm] JSON filter support for both plain JSON and typed-JSON fields doc

Fixes and Improvements

  • [orm] Improved type checking performance
  • [orm] Fixed the issue that upsert doesn't create entity if the update payload is an empty object
  • [orm] Fixed the issue that special characters like "_" and "%" are not escaped when doing text match

Full Changelog: v3.0.0-beta.27...v3.0.0-beta.29

ZenStack Release v3.0.0-beta.27

02 Dec 05:32
e894020

Choose a tag to compare

Changes in this release

  • Merge pull request #466 from zenstackhq/dependabot/npm_and_yarn/next-16.0.7