New Features
- OpenAPI specification generation for RPC-style API doc.
- Zod schema creation now allows you to control what fields to include/exclude and fields' optionality via options by @marcsigmund doc.
- Custom types (
typedeclarations) now allow relation fields. You can now declare relations on mixins and share them among models doc.
Breaking Changes
The makeModelSchema API from @zenstackhq/zod package now by default excludes all relation fields.
Improvements and Fixes
- [orm] Fixed incorrect SQL generation when computed fields are defined on mixins #2540 by @lsmith77.
- [orm] Improve query performance by using
EXISTSinstead ofCOUNTwhen including to-one relations by @evgenovalov #2578. - [orm] Fixed a SQL generation issue when cursor is used with fields inherited from delegate models by @genu #2588.
- [orm] Fixed the issue that fields annotated with
@db.Timeare returned as string instead ofDateobject by @erwan-joly #2589. - MySQL support is now graduated from preview to GA.
- Updated Kysely to its latest version.
- Migrated bundler from tsup to tsdown.
- Updated pnpm to its latest version.
New Contributors
Welcome @evgenovalov, @17, and @erwan-joly as our new contributors ❤️ !
Full Changelog: v3.5.6...v3.6.0