Changelog
All notable changes to advanced-react-role-guard are documented here. The project follows Semantic Versioning.
1.1.1
- Peer dependencies:
reactandreact-domare now ≥ 19.0.0. The library is documented and tested as compatible with React 19 and later (see README and docs).
1.0.1
- Fix:
hasPermissionnow evaluatesconfig.roleswhenuser.permissionsis omitted. Previously, a missingpermissionsfield caused an earlyfalsebefore role-based grants (including*andresource:*on role lists).
1.0.0
- Initial stable release of
RoleGuardProvider,Can,Guard,Feature, anduseCan. - Wildcard support:
*andprefix:*on role permission lists; directuser.permissionssupports exact strings and literal*. - Feature flags via
config.featuresand theFeaturecomponent. - Exported types and
useRoleGuardContextfor advanced integrations.