|
1 |
| -# 0.5.0 (2022-12-15) |
| 1 | +# Changelog |
| 2 | + |
| 3 | +## [2.0.0-alpha.2](https://github.com/zenstackhq/zenstack/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2024-03-13) |
| 4 | + |
| 5 | + |
| 6 | +### Bug Fixes |
| 7 | + |
| 8 | +* `@[@validate](https://github.com/validate)` should ignore fields that are not present ([#1104](https://github.com/zenstackhq/zenstack/issues/1104)) ([79ef57a](https://github.com/zenstackhq/zenstack/commit/79ef57a67cbdf3b015c92f607d86543a4a169bcb)) |
| 9 | +* clean up generation of logical prisma client ([#1082](https://github.com/zenstackhq/zenstack/issues/1082)) ([6e7993a](https://github.com/zenstackhq/zenstack/commit/6e7993afa8dde03ae12c44f198bcca04724dbc92)) |
| 10 | +* default auth without user context ([#1015](https://github.com/zenstackhq/zenstack/issues/1015)) ([e5b5a0f](https://github.com/zenstackhq/zenstack/commit/e5b5a0fee34e46bee5557229f6f5894629c6ad96)) |
| 11 | +* foreign key constraint ambiguity in generated delegate prisma schema ([#1060](https://github.com/zenstackhq/zenstack/issues/1060)) ([ca2a314](https://github.com/zenstackhq/zenstack/commit/ca2a314a927053703e4dbc76542499159b8bf6a8)) |
| 12 | +* **hooks:** include delegate base models when calculating models affected by a mutation ([#1121](https://github.com/zenstackhq/zenstack/issues/1121)) ([e34c530](https://github.com/zenstackhq/zenstack/commit/e34c530a93b67a3eda9f5b53a087c7edd4a44999)) |
| 13 | +* make sure fields inherited from abstract base models are properly recognized as id ([#1130](https://github.com/zenstackhq/zenstack/issues/1130)) ([4d9d093](https://github.com/zenstackhq/zenstack/commit/4d9d09338ae88eac331ec06ec908ca1256f5b8a5)) |
| 14 | +* more robust calculation of default location for code generation ([#1095](https://github.com/zenstackhq/zenstack/issues/1095)) ([d11d4ba](https://github.com/zenstackhq/zenstack/commit/d11d4bade318d5a17d1a5e3860292352e25cc813)) |
| 15 | +* **policy:** properly handle array-form of upsert payload ([#1101](https://github.com/zenstackhq/zenstack/issues/1101)) ([e7e1873](https://github.com/zenstackhq/zenstack/commit/e7e1873744ac2d48e118ae48b23e10723d16db44)) |
| 16 | +* **polymorphism:** include submodel relations when reading a concrete model ([#1112](https://github.com/zenstackhq/zenstack/issues/1112)) ([557163f](https://github.com/zenstackhq/zenstack/commit/557163f789527aa64627b16fb718da3068dd0052)) |
| 17 | +* **polymorphism:** relation name disambiguation ([#1107](https://github.com/zenstackhq/zenstack/issues/1107)) ([9f9d277](https://github.com/zenstackhq/zenstack/commit/9f9d27704c2eecbbbd69e841ece6b1d4d22040f6)) |
| 18 | +* **polymorphism:** support `orderBy` with base fields ([#1086](https://github.com/zenstackhq/zenstack/issues/1086)) ([2e81a08](https://github.com/zenstackhq/zenstack/commit/2e81a089a1b57ebf61d25fc49300fa22f0cda06b)) |
| 19 | +* **polymorphism:** wrong query result when selecting "_count" ([#1124](https://github.com/zenstackhq/zenstack/issues/1124)) ([dc6901a](https://github.com/zenstackhq/zenstack/commit/dc6901a2d90faf57741ab9b560f8c1eb7088079f)) |
| 20 | +* prisma.d.ts is not properly saved ([#1090](https://github.com/zenstackhq/zenstack/issues/1090)) ([d3629be](https://github.com/zenstackhq/zenstack/commit/d3629bef459afc11c16461fb18621d2f77ac35cc)) |
| 21 | +* properly handle missing fields when evaluating `@[@validate](https://github.com/validate)` model-level rules ([#1097](https://github.com/zenstackhq/zenstack/issues/1097)) ([e8268d0](https://github.com/zenstackhq/zenstack/commit/e8268d03ae12f3ccbcf1bb1c531a2816b22f6da8)) |
| 22 | +* several issues with using `auth()` in `[@default](https://github.com/default)` ([#1088](https://github.com/zenstackhq/zenstack/issues/1088)) ([36e515e](https://github.com/zenstackhq/zenstack/commit/36e515e485c580657b9edbfc52014f3542abfb96)) |
| 23 | +* should not reject "update" when there's only field-level override but no model-level policy ([#1052](https://github.com/zenstackhq/zenstack/issues/1052)) ([912c831](https://github.com/zenstackhq/zenstack/commit/912c83176a57ae2e2397c0aab68c0299a6115025)) |
| 24 | +* **tanstack:** improve typing of mutation errors ([#1066](https://github.com/zenstackhq/zenstack/issues/1066)) ([a01065c](https://github.com/zenstackhq/zenstack/commit/a01065c0aa791d6591776b908f3e1e3c4d21424b)) |
| 25 | +* validate zod schema before update operation is executed ([#1051](https://github.com/zenstackhq/zenstack/issues/1051)) ([9db52db](https://github.com/zenstackhq/zenstack/commit/9db52dbb77650d7c99380308803b7b4b4b7ae42d)) |
| 26 | +* vue-query typing issue ([#1009](https://github.com/zenstackhq/zenstack/issues/1009)) ([b2e1635](https://github.com/zenstackhq/zenstack/commit/b2e1635cb1857afebde286a0c077c0f561d0bbec)) |
| 27 | +* zenstack cli errors while using bun/bunx during docker build ([#1011](https://github.com/zenstackhq/zenstack/issues/1011)) ([0704f9d](https://github.com/zenstackhq/zenstack/commit/0704f9db945fc922746ecd480ae833fd64415784)) |
| 28 | +* **zmodel:** check optionality consistency between relation and fk fields ([#1053](https://github.com/zenstackhq/zenstack/issues/1053)) ([583520e](https://github.com/zenstackhq/zenstack/commit/583520e5dce1d898becf3da9553c6faf08db6343)) |
| 29 | +* **zod:** add coercion call when generating schema for DateTime field ([#1068](https://github.com/zenstackhq/zenstack/issues/1068)) ([b60627c](https://github.com/zenstackhq/zenstack/commit/b60627c167706728ac232ce06366d914e3dde23f)) |
| 30 | + |
| 31 | + |
| 32 | +### Performance Improvements |
| 33 | + |
| 34 | +* improve polymorphism code generation speed ([#1073](https://github.com/zenstackhq/zenstack/issues/1073)) ([5b103ba](https://github.com/zenstackhq/zenstack/commit/5b103badea7876b7dfc1da91c26eca3213ddd413)) |
| 35 | + |
| 36 | +## 0.5.0 (2022-12-15) |
2 | 37 |
|
3 | 38 | ### Features
|
4 | 39 |
|
|
12 | 47 |
|
13 | 48 | - Next-auth adapter and helper are moved to a separate package `@zenstackhq/next-auth`.
|
14 | 49 |
|
15 |
| -# 0.4.0 (2022-12-01) |
| 50 | +## 0.4.0 (2022-12-01) |
16 | 51 |
|
17 | 52 | ### Features
|
18 | 53 |
|
|
50 | 85 |
|
51 | 86 | Use @zenstackhq/runtime/types for type definitions shared between client and server, @zenstackhq/runtime/client for client-specific libaries (like React hooks), and @zenstackhq/runtime/server for server-specific libraries.
|
52 | 87 |
|
53 |
| -# 0.3.0 (2022-11-08) |
| 88 | +## 0.3.0 (2022-11-08) |
54 | 89 |
|
55 | 90 | ### Features
|
56 | 91 |
|
|
70 | 105 |
|
71 | 106 | - Better overall documentation
|
72 | 107 |
|
73 |
| -# 0.2.0 (2022-10-29) |
| 108 | +## 0.2.0 (2022-10-29) |
74 | 109 |
|
75 | 110 | ### Features
|
76 | 111 |
|
|
0 commit comments