Skip to content

v1.1.0

Choose a tag to compare

@iqbalhasandev iqbalhasandev released this 31 Aug 06:05
· 89 commits to main since this release

Release Notes - v1.1.0

🎉 What's New

  • Initial release of @devwizard/laravel-react-permissions
  • Core <Can> component for conditional rendering
  • usePermissions hook for programmatic permission checking
  • withPermission HOC 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 @can directive 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