Skip to content

@casl/ability: v7.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

7.0.0-rc (2026-05-08)

⚠ BREAKING CHANGES

  • this function is unused in userland and mostly was needed to restore ForbiddenError state in tests
  • renames PureAbility to Ability and dops default options. In order, to get the previous behavior of Ability class, clients are expected to use createMongoAbility and MongoAbility type
  • Ability matching now treats conditions that semantically match everything the same as rules without conditions.

Bug Fixes

Code Refactoring

  • removes getDefaultErrorMessage exported function as unneeded (#1206) (3f56353)
  • renames PureAbility to Ability (#1205) (97beee4)