Skip to content

@casl/prisma: v2.0.0-rc

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 08 May 11:58
· 0 commits to 2c2db3ccab0b85b89f0f2916652d86781dc0c27e since this release
1382104

2.0.0-rc (2026-05-08)

⚠ BREAKING CHANGES

  • migrates to @casl/ability 7.x, PureAbility is no longer available and accessibleBy produces a different shape
  • accessibleBy no longer throws ForbiddenError and it's required to add caslExtension to Prisma Client
  • prisma: The createPrismaAbilityFor factory has been removed. createPrismaAbility is now a standalone generic function rather than a pre-bound factory.

Bug Fixes

  • deps: upgrades @ucast/* to latest version (#1218) (22b00ff)

Code Refactoring

  • migrates to @casl/ability 7.x (#1216) (df9d5b6)
  • prisma: simplify createPrismaAbility and remove reliance on generated types (#1195) (916e7ba)
  • stops throwing ForbiddenError when casl does not have rules for action/subject pair (#1196) (ee850e8)