Releases: jasonmacdonald/zenstack
Releases · jasonmacdonald/zenstack
v2.0.0-alpha.2
2.0.0-alpha.2 (2024-06-27)
Features
- a better "zod" plugin (#521) (2280f83)
- add "loadPath" options to runtime API and server adapter options (#696) (fc50deb)
- add @@auth option for declaring auth model (#787) (c390de1)
- add
checkhooks generation to tanstack and swr plugins (#1422) (1030770) - add support for comparing fields in the same model (#631) (4776685)
- add switch to zod plugin to control whether unchecked input types are generated (#693) (cea2019)
- add zenstack CLI repl command (#808) (616be65)
- allow comparing fields from different models in mutation policies (#1476) (6610bd0)
- allow specifying zmodel location in package.json (#879) (bb149bd)
- allow to pass in a custom
Prismamodule when callingenhance(#1160) (018d59f) - allow to use custom fetch with generated hooks (#556) (2a6b31a)
- allow users to import from node_modules (#1021) (f8f214d)
- always use superjson to serialize/deserialize in the api layer (#585) (46fec66)
- automatic optimistic update for tanstack hooks (#830) (93dc7df)
- CLI improvements (#694) (eba3390)
- field-level access control (#638) (9a6f39b)
- field-level policy override (#889) (271d568)
- flexible 'createRouter' typings (#654) (e147412)
- fluent API support (#666) (4ae5a96)
- implementing access control for Prisma Pulse (#643) (d8c2e87)
- implementing permission checker (#1411) (0aa6ee9)
- improved automatic query invalidation for tanstack-query (#790) (42d654f)
- include raw zod errors in response (#691) (b5da998)
- infinite query for swr plugin (#680) (757ccb5)
- infinite query support for tanstack-query (#679) (3300499)
- JetBrains plugin for ZModel (#904) (c79be9e)
- make nextjs adapter support next 13 app dir (#483) (a078b23)
- make parameters of transactions configurable (#988) (d0745b1)
- Make ZModel color schema looks cool and consistent (#791) (6dabb02), closes #716
- more flexible "createRouter" typings (#651) (d2bffb6)
- Nuxt server adapter and tanstack-query for "vue" hooks generation (#757) (033d95d)
- optimistic update support for SWR (#860) (0ca4670)
- options for logging queries sent to prisma (#488) (ccfb2b0)
- RedwoodJS integration package (#911) (e4aeee3)
- runtime support for custom
@[@auth](https://github.com/auth)model (#793) (08b9677) - runtime: support for Prisma 5.14's
createManyAndReturn(#1479) (a783800) - support
now()function in policy rules (#480) (7de7623) - support configuring what models to include for zod and trpc plugins (#747) (a5d15a3)
- Support multiple levels inheritance (#863) (2d43692)
- support Prisma v5 (#587) (b0d9154)
- support Prisma view (#579) (af151b7)
- support using collection predicate expression with
auth()(#831) (ff1e8a5) - Support ZModel format command in CLI (#869) (bf85ceb)
- tanstack-query v5 support (#788) (0d04d8e)
- trpc plugin, add "generateModelActions" option to control what operations to generate (#482) (8693852)
- trpc plugin, generate client helpers to provide prisima-like typing ([zenstackhq#510](https://github.com/jasonmacdonald/zenst...