7.0.0 (2026-05-21)
⚠ BREAKING CHANGES
.possibleRulesForand.rulesForreturnreadonly Rule[]type- 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
Abilityclass, clients are expected to usecreateMongoAbilityandMongoAbilitytype - Ability matching now treats conditions that semantically match everything the same as rules without conditions.
rulesToQueryhas been replaced withrulesToCondition
Bug Fixes
- defensive protection against undefined returned from rule conditions matcher (3f0ad4b)
- deps: upgrades @ucast/* to latest version (#1218) (22b00ff)
- ensure rules index cache is not polluted with not defined actions (#1228) (89c19ba)
- treats empty conditions object as matches all (#1198) (cedc463), closes #684
- ensure that
rulesToQueryandrulesToASTgenerate condition that respect rule priority (#1193)