Releases: Thavarshan/filterable
Releases · Thavarshan/filterable
v1.2.0
v1.1.7
Added
- Introduced the
FilterableServiceProvider
to register theMakeFilterCommand
. - Added a new
Filterable
interface to define the contract for the Filterable trait. - Added a new
Filter
interface to define the contract for the Filter class.
Changed
- Added type hints for method parameters and return types to improve code clarity and type safety.
- Improved the
Filterable
trait to ensure compatibility with PHP 8.4. - Enhanced the
Filter
class with better type hinting and method documentation. - Updated the
FilterableTest
to include the necessary setup for bootstrapping the Laravel application.
Fixed
- Fixed an issue where the
config
class was not available during tests by bootstrapping the Laravel application in the test setup. - Corrected the test case to ensure the
apply
method is called correctly in thefilter_throws_exception_when_filter_application_fails
test.
v1.1.6
Changed
- Extend compatibility to PHP 8.3
Fixed
- Laravel 9 compatibility issues
v1.1.5
- Minor dependency updates for security
v1.1.4
Changed
- Minor dependency updates for security
v1.1.3
Changed
- Updated dependencies
v1.1.2
Changed
- Modified the buildCacheKey method to sort and normalise
filterables
before generating the cache key. This change reduces the number of unique keys and helps mitigate cache pollution issues. (See PR #18)
Caching has now been changed to be disabled by default. This change provides more control over when caching is used, helping to prevent unnecessary cache pollution.
Fixed
v1.1.1
Added
- Compatibility support for newer PHP versions: Updated
brick/math
requirement from PHP^8.0
to^8.1
to embrace the latest PHP features and improvements.
Changed
- Updated
brick/math
from0.11.0
to0.12.1
: Includes performance optimizations and bug fixes to enhance mathematical operations. - Updated
laravel/framework
fromv10.48.5
tov10.48.10
: Rolled in new minor features and improvements to the Laravel framework that benefit the stability and security of applications usingfilterable
. - Updated
symfony/console
fromv6.4.6
tov6.4.7
: Enhanced compatibility with other Symfony components, improving integration and usage within Symfony-based projects. - Updated development dependencies:
phpunit/phpunit
from^9.0
to^10.1
for advanced unit testing capabilities.vimeo/psalm
from5.0.0
to5.16.0
for improved static analysis and code quality checks.
Fixed
- Security patches and minor bugs: All updated dependencies include patches for known vulnerabilities and fixes for various minor bugs, enhancing the security and reliability of the
filterable
package.
v1.1.0
Added
- Logging Support in Filter Class: Introduced comprehensive logging capabilities to enhance debugging and operational monitoring within the
Filter
class. This update allows developers to trace the application of filters more effectively and can be critical for both development and production debugging scenarios. #12- Dynamic Logging Controls: Added methods
enableLogging()
anddisableLogging()
to toggle logging functionality at runtime, allowing better control over performance and log verbosity depending on the environment. - Integration with
Psr\Log\LoggerInterface
: Ensured flexibility in logging implementations by integrating with the standard PSR-3 logger interface. Developers can now inject any compatible logging library that adheres to this standard, facilitating customized logging strategies. - Conditional Log Statements: Added conditional logging throughout the filter application process to provide granular insights into key actions and decisions. This feature is designed to help in pinpointing issues and understanding filter behavior under various conditions.
- Unit Tests for Logging: Extended the test suite to include tests verifying that logging behaves as expected under different configurations, ensuring that the new functionality is robust and reliable.
- Dynamic Logging Controls: Added methods
Changed
- Deprecated instance method
setUseCache()
in favor of static methodenableCaching()
for improved consistency and clarity. This change aligns with the existing static propertyuseCache
and enhances the discoverability of caching-related functionality. #12
Fixed
- Minor bug fixes and performance optimizations to enhance stability and efficiency.
1.0.6
Changed
- Refactor
useCache
instance property to static - Refactor
setUseCache
instance method toenableCaching
static method for use in service provider classes