Releases: rubricate/asset
Releases · rubricate/asset
Release list
v4.0.0 - Immutable Asset Component & Modern PHP 8.2+ Architecture
We are excited to announce v4.0.0! This major release introduces AbstractAsset, a modular and immutable asset management component designed for PHP 8.2+ applications, offering seamless cache-busting and flexible HTML tag generation.
What's New
- Immutable
AbstractAssetComponent: Base abstract class for versioned static assets (.css,.js, and images) without rigid directory constraints. - Automatic Cache Busting: Dynamic query string versioning based on
filemtimefor efficient client-side cache control. - Widget Integration: Direct orchestration with
CssFileWidget,JsFileWidget, andImageWidget. - Declarative Customization: Override default paths, tabulations, line breaks, and cache-busting keys directly via subclass definitions.
- PHP 8.2+ Native Architecture: Strict typing (
declare(strict_types=1);), constructor property promotion, and nullish coalescing logic.
Breaking Changes
- Raised minimum required PHP version to 8.2.
- Updated package namespace to align with the latest Rubricate standards.
Documentation
Detailed guidelines and usage docs are available at:
👉 https://rubricate.github.io/