Skip to content

ZenStack Release v1.0.0-alpha.87

Choose a tag to compare

@ymc9 ymc9 released this 28 Mar 11:43
· 1064 commits to main since this release
1008b0e

What's Changed

  • Support for implicit many-to-many relations
  • Added attribute functions for filtering on fields in policy expressions: contains, search, startsWith, endsWith, has, hasSome, isEmpty. You can use these functions to write more flexible policy rules, e.g.:
    model Post {
      id String @id
      title String
      @@allow('update', startsWith(title, '[DRAFT]'))
    }
    See detailed documentation here: https://zenstack.dev/docs/reference/zmodel-language#predefined-attribute-functions.
  • Improved consistency in handling undefined and null values in auth() object

Full Changelog: v1.0.0-alpha.85...v1.0.0-alpha.87