Skip to content

Releases: zenstackhq/zenstack

v1.0.0-alpha.85

27 Mar 00:20
23180ce

Choose a tag to compare

What's Changed

  • Upgraded langium dependency (old version results in a StackOverflow error)
  • Added support for Prisma's @@ignore and @ignore attributes
  • VSCode: improved support for @relation field generation

ZenStack Release v1.0.0-alpha.79

19 Mar 15:45
dd3ae27

Choose a tag to compare

What's Changed

Potential Breaking Changes

  • Prisma relation-related mutations: connect, connectOrCreate, and update now trigger the validation of "update" policy on the relation owner side (since such operations update foreign keys). It wasn't enforced in the previous releases. You may need to adjust access policies accordingly.

E.g.:

model User {
  ...
  posts Post[]
}

model Post {
  ...
  author User? @relation(fields: [authorId], references: [id])
  authorId String?
db.user.create({
  data: {
    posts: { connect: { id: 'post1' } }
  }
});

The above code may fail if Post model is not updatable by the current user.

ZenStack Release v1.0.0-alpha.73

14 Mar 11:38
19253ca

Choose a tag to compare

What's Changed

  • New OpenAPI plugin for generating OpenAPI V3 specification from zmodel! You can use it to generate a YAML/JSON spec and load it up into tools like swagger-ui. Check here for an example.
  • Adapter for integrating with Fastify: automatic OpenAPI services for CRUD.
  • Fix: make sure zod schemas are lazily loaded to avoid circular dependency issues.

Under the hood, this release includes a unified OpenAPI layer for handling CRUD operations, which is used by the new fastify adapter and will also be the foundation for other upcoming new server-side adapters.

ZenStack Release v1.0.0-alpha.62

09 Mar 07:32
bf9f4cb

Choose a tag to compare

What's Changed

  • Added @@schema attribute for supporting "multi-schema setup"
  • Fixed code generation issue in monorepo environment
  • Fixed package manager detection issue in monorepro environment

Thanks to @digoburigo for reporting the multi-schema issue.
Thanks to @keanugrieves for reporting mono-repro problems.

ZenStack Release v1.0.0-alpha.60

07 Mar 07:05
d0bb796

Choose a tag to compare

What's Changed

  • Added support for Prisma type modifier attributes, like @db.Text, @db.Date etc. #236
  • Added support for multi-field @@id #238
  • Added support for self-relations #237
  • Added two attributes that passthrough text to Prisma schema as attributes: @prisma.passthrough, @@prisma.passthrough

ZenStack Release v1.0.0-alpha.55

04 Mar 15:11
fa75f59

Choose a tag to compare

What's Changed

  • Fixed missing string quote for functional calls inside of attribute #234
  • Fixed the problem that enum field can't be used as relation foreign key #233
  • Allow DateTime field to use ISO datetime string as @default #232

ZenStack Release v1.0.0-alpha.53

03 Mar 06:51
8675170

Choose a tag to compare

What's Changed

  • Fixed regression in @zenstackhq/react hooks generator: now when a mutation succeeds but the result can't be read back, hook returns undefined instead of throwing an error
  • Similarly, @zenstackhq/trpc generated routers return undefined when result can't be read back
  • Cleaned up unnecessary peer dependencies in @zenstackhq/runtime
  • When running zenstack init, install Prisma if not found #219
  • VSCode: don't show validation errors when there're syntax errors #221
  • Allow both "PUT" and "PATCH" HTTP verbs for "update" and "updateMany"
  • Fixed support for using empty array as default field value
  • Carry over @@map and @map attributes from zmodel to prisma schema

Please upgrade your VSCode extension too (v1.0.7).

ZenStack Release v1.0.0-alpha.45

19 Feb 05:01
d8afc2e

Choose a tag to compare

What's Changed

  • fixed incorrect HTTP method for react hooks generated for "upsert" action
  • relation filters, both for *-to-many filter (some/none/every) and *-to-one filter (is/isNot), now recognize access policies
  • fixed bugs around policy evaluation for nested update/delete for to-one relations
  • next.js integration now supports setting a custom logger

ZenStack Release v1.0.0-alpha.40

17 Feb 03:16
311303f

Choose a tag to compare

What's Changed

  • Pinned "langium" dependency version due to an issue in its latest release

ZenStack Release v1.0.0-alpha.33

11 Feb 10:01
9d2cfc7

Choose a tag to compare

What's Changed

  • @zenstackhq/react, hooks are generated regardless if a model has access control rules
  • Fixed the issue that triple slash comments cannot be used on some ZModel declarations #194
  • Added support for @@unique constraint with multiple fields #196
  • @zenstackhq/react, fixed error handling in generated hooks code
  • improved VSCode extension's auto-formatting, added code action for adding the opposite side of relations
  • Support using enums as field's default value #204