hie allows you to build role hierarchies of any complexity and easily check user permissions across them.
with yarn
yarn add @soufantech/hie
or npm
npm install @soufantech/hie
- docs: add usage examples;
- chore: add and configure semantic-release;
- refactor: refactor authorities to their own folder;
- move
RoleAuthorityinterface from role-matcher.ts;
- move
- test: remove use of
getMappingfunction inHierarchicalRoleAuthoritytests; - refactor: remove
getMappingfunction; - feat: define role hierarchy as string (more or less like Spring Boot does);
Built with ❤︎ by SouFan