Releases: tattersoftware/codeigniter4-assets
Service Refactor; Manifest Publishing; Tests
This is a major refactor of the backend service - please update accordingly.
Service
Assets now uses separate handlers to search for which assets to load on any page. So far handlers include Config and Directory, replicating version 2.0.x performance. In order to facilitate testing a number of functions have been split out into separate methods.
Breaking change: the service call assets->display($extension)
is now deprecated. Please use assets->css()
or assets->js()
accordingly.
Manifests
Assets now includes publishing from Manifests. Please read the docs for specifics. There are also some example manifests included in examples/ that should be pretty helpful in understanding this feature.
Tests
Now leveraging CodeIgniter4Project's module testing library, ModuleTests. A number of tests have been added - they aren't comprehensive yet but do cover the majority of scenarios.
New dir structure, update config handling
v2.0.2 Add exception instance to display()
Bugfix for subdirectories
v2.0.1 Bugfix for subdirectory controllers; check for nonexistant files
New library structure
Version 2 takes advantage of more of CodeIgniter 4's differences from CI3, moving the helper wrappers into the newly defined Service. There's also a deeper namespace (Tatter\Assets) to prevent collision of services with the other packages.
If you're using a custom config file (app/Config/Assets.php) please transfer the info into an updated version from src/Assets.php.example
Return output instead of echo
v1.1.0 use renderer to return output instead of displaying
Initial release
v1.0.0 format Quick Start