github zenstackhq/zenstack v1.0.0-alpha.79
ZenStack Release v1.0.0-alpha.79

latest releases: v2.9.3, v2.9.2, v2.9.1...
20 months ago

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.

Don't miss a new zenstack release

NewReleases is sending notifications on new releases.