Skip to content

Commit

Permalink
feat: restructured build method to return a permissions object
Browse files Browse the repository at this point in the history
The build method has been revamped to return a detailed permissions object instead of an array of strings. This enhancement allows for a more structured and accessible representation of permissions. Updated tests reflect the new return type and validate the object structure, ensuring each action is correctly mapped to its permissions.

BREAKING CHANGE: Changed the return type of the build method from an array to an object, affecting how permissions are retrieved and processed. Increment version to 2.0.0.
  • Loading branch information
silvaezequias committed Mar 7, 2024
1 parent 5b823eb commit e459360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "granular-ac",
"version": "1.0.0",
"version": "2.0.0",
"description": "Granular Access Control library for managing permissions.",
"main": "dist/index.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit e459360

Please sign in to comment.