Releases: iamfarhad/laravel-audit-log
Releases · iamfarhad/laravel-audit-log
1.6.0
What's Changed
- feat: add PostgreSQL driver support by @kalebalebachew in #4
New Contributors
- @kalebalebachew made their first contribution in #4
Full Changelog: 1.5.1...1.6.0
1.5.1
1.5.0
Full Changelog: 1.4.1...1.5.0
Added
- Smart Retention System
- Flexible Retention Configuration
- Artisan Command for Cleanup
- Queue-Based Processing
- Smart Data Anonymization
- Enhanced Database Schema
- Comprehensive Test Coverage
Changed
- PHPUnit 11/12 Compatibility
- Enhanced Documentation
- Updated Configuration
Fixed
- PHP 8.1 Compatibility
- PHPStan Level 5 Compliance
- PSR-12 Code Style
- Documentation Accuracy
Security
- Access Control
- Data Recovery
- Audit Trail
- Anonymization Verification
Performance
- Batch Processing
- Database Optimization
- Queue Support
- Connection Pooling
1.4.1
Full Changelog: 1.4.0...1.4.1
Added
- Database connection support for flexible audit storage
- Connection configuration option in
audit-logger.drivers.mysql.connection - Enhanced
MySQLDriverconstructor to accept optional connection parameter getConnectionName()method inEloquentAuditLogmodel for connection retrieval- Connection parameter support in
AuditLogger::getDriver()static method - Comprehensive connection testing with 3 new test cases
- Automatic connection setting for Eloquent models in audit operations
Changed
- Enhanced:
MySQLDrivernow respects configured database connections for all operations - Enhanced:
EloquentAuditLog::forEntity()automatically sets connection from configuration - Enhanced: All Schema operations now use the specified connection
- Enhanced: Service provider registration includes connection configuration
- Enhanced: Audit models automatically use configured connection for storage and retrieval
- Backward Compatible: Existing code continues to work without changes
Fixed
- Connection handling in all database operations (Schema creation, model operations)
- Proper connection fallback to default database when no specific connection configured
- Test database operations now use correct connections for isolation
Documentation
- Added connection configuration examples and usage patterns
- Enhanced README with multi-connection setup instructions
- Updated test documentation for connection-specific scenarios
1.4.0
Full Changelog: 1.3.1...1.4.0
[1.4.0] - 2025-06-07
Added
- PHP 8.4 support: Leveraged new language features and improved compatibility
readonlyproperties for DTOs and Value Objects to promote immutability- Enhanced DTOs with stricter typing and property visibility
- New configuration options for advanced field management and causer resolution
- Improved batch processing for high-volume audit logging
- Additional query scopes for more granular audit log filtering
- More comprehensive test coverage for new features and edge cases
Changed
- All service classes are now
finalby default for better composition and code safety - Refactored service and repository classes to use dependency injection exclusively
- Improved PSR-12 code style enforcement and static analysis integration
- Updated documentation to reflect new PHP 8.4 and Laravel 12.x best practices
- Enhanced performance for audit log writes and queries
- Updated default configuration for better security and compliance
Fixed
- Resolved edge case bugs in source tracking for queued jobs and HTTP requests
- Fixed issues with field exclusion logic in global and model-specific settings
- Improved error handling and exception messages for misconfiguration
- Addressed minor bugs reported by the community
Documentation
- Updated README with PHP 8.4 and Laravel 12.x usage examples
- Added migration and upgrade guide for 1.4.0
- Expanded troubleshooting and security best practices sections
1.3.1
Full Changelog: 1.3.0...1.3.1
[1.3.1] - 2025-06-06
Fixed
- Fixed PHPStan static analysis issues at Level 5 with strict rules
- Removed references to deleted
ModelAuditedevent andAuditModelChangeslistener classes - Improved type safety with better null and type checking in route handling
- Enhanced method existence checks in
AuditBuilderservice - Fixed scope method return types in
EloquentAuditLogmodel - Updated unit tests to work with direct logging architecture (removed event dependencies)
- Cleaned up unused imports and improved code organization
Changed
- Added PHPStan ignore rule for dynamic method call warnings in query scopes
- Enhanced test setup with proper service mocking for unit tests
- Improved code quality and maintainability
1.3.0
Full Changelog: 1.2.1...1.3.0
1.2.1
Full Changelog: 1.2.0...1.2.1
1.2.0
Full Changelog: 1.1.0...1.2.0
1.1.0
Full Changelog: 1.0.0...1.1.0