Releases: zenstackhq/zenstack-v3
ZenStack Release v3.2.0
🎉 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) : UserThis 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
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
Changes in this release
- Merge pull request #565 from zenstackhq/fix/issue-558
ZenStack Release v3.0.0
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
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
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
What's Changed
- [orm] Fixed a typing issue when querying a deeply nested to-many relation with extra clauses like
take, andskip. - [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
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
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
upsertdoesn't create entity if theupdatepayload 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
Changes in this release
- Merge pull request #466 from zenstackhq/dependabot/npm_and_yarn/next-16.0.7