Skip to content

@casl/prisma: v2.0.0

Choose a tag to compare

@github-actions github-actions released this 21 May 13:32
a4a4a1a

2.0.0 (2026-05-21)

⚠ 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)
  • expose PrismaAbility type (3aa325f)

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)