Releases: zenstackhq/zenstack
ZenStack Release v2.22.0
What's Changed
- Expanded Prisma peer dependency version's upper bound to 7.x
- Made the
urlfield of thedatasourceblock in ZModel optional #2309 - Fixed an issue that auth types are not properly compiled when used with the "prisma-client" generator #2294
- Avoid import enums from Prisma modules in generated Zod schemas for better portability #2291
- Fixed a typing compatibility with Prisma 7 by @jamiter
New Contributors
- Welcome @jamiter as our new contributor! ❤️
⚠️ Important Notes About Prisma 7
Since ZenStack v3 (now beta) has migrated away from Prisma ORM, we don't plan to continue following Prisma's version updates on the v2 track. Although you can install the latest version of ZenStack with Prisma 7, support is not systematically tested nor planned (though the main features seem to work well). We may continue fixing small issues to unblock important use cases, but it'll be on a best-effort basis.
We understand this decision may be inconvenient for some of ZenStack's users, but as an independent team, we don't have influence over Prisma's architecture changes, and it's a significant effort to continue supporting a new major. Please follow the news about v3 and evaluate if an upgrade is viable for you. Thank you for putting confidence into ZenStack!
Full Changelog: v2.21.1...v2.22.0
ZenStack Release v2.21.1
ZenStack Release v2.21.0
What's Changed
- Prisma 6.18 support
- Fixed the issue that extra fields are returned upon query due to access policy evaluation #2283
- Zod plugin is added with a new "version" option to control what zod version to target doc
Full Changelog: v2.20.1...v2.21.0
ZenStack Release v2.20.1
What's Changed
- Fixed another typing issue with "prisma-client" generator
Full Changelog: v2.20.0...v2.20.1
ZenStack Release v2.20.0
New Features
- TanStack Start server adapter by @digoburigo doc
- Prisma 6.17.x support
Improvements and Fixes
- Added dev container config to simplify development by @sanny-io
- Fixed JetBrains plugin version compatibility #2263
- Fixed several typing compatibility issues with "prisma-client" generator #2243
- Fixed VSCode extension sign-in issue
Other Notes
In previous versions of ZenStack, TS code generated by the CLI was annotated with @ts-nocheck directive to prevent compilation failures due to non-essential issues. However, it also masks the problem when a real issue occurs. We've removed the directive in this release. Please report in Discord if you encounter compilation issues after upgrading. Thanks!
New Contributors
Welcome @sanny-io and @digoburigo as our contributors ❤️ !
Full Changelog: v2.19.2...v2.20.0
ZenStack Release v2.19.2
What's Changed
- VSCode: support saving ZModel documentation preview as markdown file
- API: support JSON:API's sparse fieldsets by @sw34 doc
- Fixed TS compilation in generated model meta
- Delegate: fixed issue with filtering concrete relations with fields from base #2246
New Contributors
- Welcome @sw34 as our new contributor ❤️ !
Full Changelog: v2.19.0...v2.19.2
ZenStack Release v2.19.0
New Features
- VSCode extension: generating documentation from ZModel (powered by LLM)
- Prisma 6.16 support
- Zod4 compatibility
Other Fixes
- Fixed code compilation issues when using Prisma's "prisma-client" generator by @mhodgson #2240
- Fixed incorrect zod schema when self-relation and delegate models are used together #2226 (thanks @jantoney for providing the insight)
Extra Notes
All zenstack packages now have zod as a peer dependency (with version requirement "^3.25.0 || ^4.0.0" as recommended by Zod). So we're Bring-Your-Own-Zod now. Although zod4 has passed all tests, please upgrade with caution and let us know if you run into any issues.
Full Changelog: v2.18.1...v2.19.0
ZenStack Release v2.18.1
What's Changed
- Prisma 6.14 support
- Fixed type import and runtime reactivity issue with Angular hooks for "@zenstackhq/tanstack-query" plugin by @ScriptType
- New option in "@zenstackhq/openapi" plugin to force generating specs for models marked with "@@openapi.ignore" by @lenageorgescu-dsl
- Added spec generation for type defs to "@zenstackhq/openapi" plugin by @olup
New Contributors
- Welcome @lenageorgescu-dsl as our new contributor ❤️ !
Full Changelog: v2.18.0...v2.18.1
ZenStack Release v2.18.0
New Features
- Prisma 6.13 support
- REST API handler has got new
externalIdMappingoption for using natural keys instead of surrogate keys to address entities by @lsmith77 doc - TanStack query plugin now supports Angular as a generation target by @ScriptType
Fixes and Improvements
- Added the missing
orderBy,skip, andtakeschemas to the RPC-style OpenAPI generator by @olup - Changed zod to a peer dependency and upgraded to the latest 3.x version, as a preparation step for v4 support
- Upgraded "ts-morph" dependency to its latest version, which should fix some mysterious errors seen lately when compiling generated typescript code.
Breaking Changes
-
Zod dependency
First of all, starting from this version, zod is now a peer dependency instead of a regular one, which means if you specify the version of zod to use in your app, it has to be the latest v3 version (^3.25.0). The change is a preparation for supporting both zod3 and zod4 in a future release. Please check if you need to upgrade your current zod dependency version, and if so, if it breaks anything. More related information here.
Special Notes
- Prisma 6.13 made some important changes around SQL views, like disallowing
@id,@unique, and@indexusage on view models. Views generally work with ZenStack, but it hasn't got very extensive test coverage, so please be cautious about breaking changes when you upgrade Prisma version, if you use views.
New Contributors
Welcome @olup and @ScriptType as our new contributors ❤️ !
Full Changelog: v2.17.2...v2.18.0
ZenStack Release v2.17.2
What's Changed
This release contains a follow up fix about typing issue when the "prisma-client" generator is used with polymorphic models by @mhodgson
Full Changelog: v2.17.1...v2.17.2