You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes `RuleAnalyzer` and moves its logic under `Rule` and `RuleIndex`
Relates to #355
BREAKING CHANGE: removes deprecated options and types:
* `AbilityOptions['subjectName']` has been removed, use `detectSubjectType` instead
* `LegacyClaimRawRule` and `LegacySubjectRawRule` are both removed, so you are no longer allowed to use `actions` in rule definition, use `action` property instead
* `Ability` throws an error if you specify a rule with property `field` to be an empty array
* `Ability` no longer warns about using only inverted rules. This may be done by intention, so now it's left up to developer to decide whether it's fine or not
Removes `RuleAnalyzer` and moves its logic under `Rule` and `RuleIndex`
Relates to #355
BREAKING CHANGE: removes deprecated options and types:
* `AbilityOptions['subjectName']` has been removed, use `detectSubjectType` instead
* `LegacyClaimRawRule` and `LegacySubjectRawRule` are both removed, so you are no longer allowed to use `actions` in rule definition, use `action` property instead
* `Ability` throws an error if you specify a rule with property `field` to be an empty array
* `Ability` no longer warns about using only inverted rules. This may be done by intention, so now it's left up to developer to decide whether it's fine or not
There are several deprecated properties which needs to be removed in v5:
AbilityOptions.subjectName
LegacyClaimRawRule
&LegacySubjectRawRule
Rule.actions
fields
being an empty arrayisAllInverted
warningThe text was updated successfully, but these errors were encountered: