Skip to content

Service Refactor; Manifest Publishing; Tests

Choose a tag to compare

@MGatner MGatner released this 07 Oct 19:38
· 81 commits to master since this release
3617d32

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.