Skip to content

Releases: tattersoftware/codeigniter4-assets

Service Refactor; Manifest Publishing; Tests

07 Oct 19:38
3617d32
Compare
Choose a tag to compare

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

02 Jul 19:29
Compare
Choose a tag to compare
v2.0.2

Add exception instance to display()

Bugfix for subdirectories

03 Apr 02:56
Compare
Choose a tag to compare
v2.0.1

Bugfix for subdirectory controllers; check for nonexistant files

New library structure

25 Mar 20:01
Compare
Choose a tag to compare

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

19 Mar 15:28
Compare
Choose a tag to compare
v1.1.0

use renderer to return output instead of displaying

Initial release

18 Mar 19:19
Compare
Choose a tag to compare
v1.0.0

format Quick Start