Skip to content

Do not mutuate ACL object passed into constructor

Latest

Choose a tag to compare

@dylancwood dylancwood released this 07 Aug 23:31
· 40 commits to master since this release

The previous version would promisify the methods of the ACL object passed into the Shield constructor. This was not transparent, and caused some confusion if expecting those methods to behave in the standard callback nature elsewhere in an application.

This has been fixed by assigning the promisified methods to an empty object, rather than overwriting the old methods with them.