Skip to content

Releases: dicoding-dev/abilities-js

v0.6.0

29 Feb 07:03
2226f88
Compare
Choose a tag to compare

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 :

  1. Cannot do review on all field of resourceA
  2. 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

28 Dec 06:08
Compare
Choose a tag to compare
  • Fix the bug related to can() algorithm, specifically for dealing with inversion rules.
    Before: Only specific inverted rule that returns false when checking using can() method
    Now: Whole and specific inverted rule returning false when check using can() method

v0.5.8

26 Dec 22:53
Compare
Choose a tag to compare
  • 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

22 Dec 06:35
Compare
Choose a tag to compare

Minor changes :

  • update function signature on can() and cannot()

v0.5.6

21 Dec 08:12
Compare
Choose a tag to compare

Changes :

  • Update on logic when finding the existing rule (getRuleOf())
  • Remove some unused code
  • Modify some names (enum names, method names)

v0.5.5

20 Dec 10:36
Compare
Choose a tag to compare

Fix the issue with ESM modules, which is can't be imported

v0.5.4

20 Dec 09:49
Compare
Choose a tag to compare

rename package

v0.5.3

20 Dec 09:24
Compare
Choose a tag to compare
update

v0.5.2

20 Dec 08:55
Compare
Choose a tag to compare

Use typescript and fix module

v0.5.0

20 Dec 02:08
Compare
Choose a tag to compare

Initial release