Releases: dicoding-dev/abilities-js
Releases · dicoding-dev/abilities-js
v0.6.0
Fix bug related with can()
ability checking. The bug occurs when dealing with this rule (example with User A)
!scope:resourceA/*:review
scope:resourceA/{"author": 'A'}:*
It means that the User A :
- Cannot do review on all field of resourceA
- Can do anything (except review) on resourceA authored by User A (specific author field)
From the previous version, the user cannot do action described in number 2
above. But it already fixed on this release version
v0.5.9
- Fix the bug related to can() algorithm, specifically for dealing with inversion rules.
Before: Only specific inverted rule that returns false when checking usingcan()
method
Now: Whole and specific inverted rule returning false when check usingcan()
method
v0.5.8
- Fix the bugs related to passing invalid strings on scope, resource, or action
- Fix
RuleCompiler
case when compiling inverted rules. The '!' negation still being passed on Scope name - Change hasRule to hasExactRule
- Some bugfix to the algorithm and test
v0.5.7
Minor changes :
- update function signature on can() and cannot()
v0.5.6
Changes :
- Update on logic when finding the existing rule (getRuleOf())
- Remove some unused code
- Modify some names (enum names, method names)
v0.5.5
Fix the issue with ESM modules, which is can't be imported
v0.5.4
rename package
v0.5.3
update
v0.5.2
Use typescript and fix module
v0.5.0
Initial release