Releases: nyambati/express-acl
Express Acl Constable V2.0.0
This is the second official release of express-acl aka Constable v2.0.0. This release has been made to introduce new features and to improve the performance of this library. This release introduces breaking changes, if you are using previous version, you might need to change configuration. Documentation is provided in the read me. Below are the notable changes;
Route Matching
Previously we have matching policies to via resources. With the current release we are using route matching to apply policies, this make it easer to make more granular rules.
Sub Routing
We also introduced sub routing, this enables you to add more rules under the main route.
N/B This release is not backward compatible therefore you need to change the configuration.
Constable V1.0.2
Express Acl Constable V1.0.2
This is the second official release of express-acl
aka Constable v1.0.2. This release has been made to introduce new features and to improve the performance of this library. Some of the notable changes include:
Custom Error response configuration
With this new approach, you now can dictate what response you need when denying access to resources. This makes it easier for you to have consistent responses to your API.
Passing Rules as Object
We have also added functionality to pass rules as JavaScript Objects as rules. This was to cater for those who might consider storing rules in external sources or exercise separation of concern.
There have not been any breaking changes to the API, however, it is important to note that this version is compatible with node v4.0.0 and above. If you are using node below this version, you might consider using the previous version.
Express Acl V1.0.4
Express ACL Constable V1.0.4
This is the 3rd official release of express-acl aka Constable v1.0.4. This release has been made to introduce new features and to improve the performance of this library. Some of the notable changes include:
Search Path #83
This approach provides with the configuration to access roles in deeply nested decoded object.
const req = {
...
user: {
name: 'Mr Constable',
...
role: {
name: 'user',
id: 4
}
}
...
}
// You can access the above role as `user.role.name`
acl.config({
searchPath: 'user.role.name'
})
Credits
Credits to this release goes to Yael Brodsky @ybrodsky.
Constable V1.0.3
Express ACL Constable V1.0.3
This is the 3rd official release of express-acl aka Constable v1.0.3. This release has been made to introduce new features and to improve the performance of this library. Some of the notable changes include:
Add default Role #70 #72
This approach provides an API to assign users default role instead of returning 404
status. By default users will be assigned guest
however this can be changed via user of defaultRole
property in the config method.
Set decoded Object name #71
Previously the module assumed that your decoded object will be attached to request object as decoded. With the new changes you are free to change it to suite your approach. By adding decodedObjectName
config your can override the settings and use whichever name you prefer. Check the docs for more details.
Constable
Express acl Constable
This is the first official public release. This release comes with easy to use API with simple ACL rules configuration. Please refer to changelog for changes. These changes have been reflected in npm
. If you are using express-acl
version less than v1.0.0
make sure you upgrade