github stalniy/casl @casl/prisma@2.0.0
@casl/prisma: v2.0.0

latest releases: @casl/prisma@2.0.1, @casl/vue@3.0.0, @casl/react@7.0.0...
one month ago

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)

Don't miss a new casl release

NewReleases is sending notifications on new releases.