New "juicy" release with interesting new features. Thi is stricly-speacking a Breaking change since new methds are added to internal interfaces, but user-facing API is 100% backward compatible.
Added:
- Possibility to obtain the
Collection
of all assets registered/enqueued. This enables the possibility to act on existing assets both individually and collectively. See docs. - Allow deregister and dequeue t be done directly from the Assets class, including for assets not registered/enqueued via the Assets class itself
JsEnqueue::useStrategy()
to allow editing the "in_footer" strategy after registration/enqueueCollection::append()
,Collection::remove()
, and Collection::dequeue()- Added
Enqueue::deregister()
to theEnqueue
contract - Action hook fired on the registration, internally used to remove the assets from the Collection
Changed:
- Assets previoulsy registered via WP functions are deregistered to allow new registration via the library
- Improved tests and more consistency in code styles