Releases: zenstackhq/zenstack
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
externalIdMapping
option 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
, andtake
schemas 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@index
usage 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
ZenStack Release v2.17.1
ZenStack Release v2.17.0
New Features
- Prisma 6.11.x support
- New
@@meta
and@meta
attributes for attaching arbitrary metadata to models and fields doc - The REST API handler has a new option to customize how model names are represented on URL path by @lsmith77 doc
- Similarly, the OpenAPI plugin now has a new option to customize how model names are represented as resource name by @lsmith77 doc
Fixes and Improvements
- Improved CLI code generation performance for "prisma-client" generator by @mhodgson
- Fixed a typing regression about enhancing a
PrismaClient
with client extensions installed #2175 - Fixed the ZModel validation issue that
@db.Json
and@db.JsonB
attributes cannot be used on strongly-typed JSON fields - Improved the way types and enums are exported for "prisma-client" generator for better compatibility with full-stack bundlers by @mhodgson
New Contributors
❤️ Welcome @mhodgson and @lsmith77 as our new contributors! ❤️
Full Changelog: v2.16.1...v2.17.0
ZenStack Release v2.16.1
What's Changed
- Fixed the issue that when "prisma-client" generator is used, JSON types are not generated by @genu #2168
- Cleaned up more dependencies by @DoctorFTB
Full Changelog: v2.16.0...v2.16.1