v1.1.0
Release Notes - v1.1.0
🎉 What's New
- Initial release of @devwizard/laravel-react-permissions
- Core
<Can>component for conditional rendering usePermissionshook for programmatic permission checkingwithPermissionHOC for component wrapping- Advanced pattern matching with wildcards (
*) and single chars (?) - Boolean logic support with logical operators (
||,&&,|,&) - Custom permissions array support
- Expression validation and safe evaluation
- Full TypeScript support with type definitions
- Comprehensive documentation and examples
- Laravel Spatie Permission integration
- Performance optimizations with memoization
- Zero-dependency architecture (only peer dependencies)
Features
- Pattern matching:
users.*,admin.?dit - Boolean expressions:
(users.* || posts.*) && admin.access - Custom permissions: Override auth with custom arrays
- Safe evaluation: Protected against code injection
- Laravel conventions: Follows
@candirective patterns - TypeScript: Complete type safety and IntelliSense
Documentation
- Complete setup guide
- Pattern matching examples
- API reference documentation
- Real-world usage scenarios
- Migration guide from other solutions
Full Changelog: View on GitHub