- Fix invalid
sprintf
string token in manifest loading error message so that a missing manifest does not cause a fatal.
- Fix bug where passing an empty manifest to
enqueue_asset
orregister_asset
would fail with a TypeError. - Breaking: Minimum supported PHP version is now PHP 8.1.
- Plugin should continue to work on 7.4 but there is no support guarantee, and the plugin's development tooling now requires at least 8.0.
- Point to specific commit for 3rd-party Github action
- Secure href attribute in 404 page to prevent XSS vulnerabilities
- Adds support for the composer installers v2 package
- Ensure that a version string is always set on an asset, even when the built file has a hash string in the file name. This ensures proper cache invalidation in sites using asset concatenation.
- Fix get_file_uri() when using symlinks
- Breaking: Remove deprecated
autoregister
,autoenqueue
, andregister_assets
methods. - Add filter
asset_loader_manifest_contents
to allow filtering of loaded asset manifest contents.
- Support enqueuing scripts in the page
<head>
by passing'in-footer' => false
in options array. - Introduce
get_active_manifest()
function to return the first available manifest in a list.
- Fix bug where admin namespace was not loaded.
- Breaking: Remove undocumented
Asset_Loader\is_development
method. - Breaking: Remove undocumented
Asset_Loader\enqueue_assets
method. - New: Introduce new
Asset_Loader\register_asset()
andAsset_Loader\enqueue_asset()
public API.- Assets should now be registered individually.
- If a bundle exports both a CSS and JS file, both files should be registered or enqueued individually.
- Deprecate
Asset_Loader\autoenqueue()
method. Use the new, singularenqueue_asset()
instead. - Deprecate
Asset_Loader\autoregister()
method. Use the new, singularregister_asset()
instead. - Deprecate
Asset_Loader\register_assets()
method. Use the new, singularregister_asset()
instead. - Refactor how SSL warning notice behavior gets triggered during asset registration.
- Change how version strings are determined when registering assets
- If asset is detected to be using a uniquely hashed filename, no version string is used.
- If an asset manifest is in use, assets are versioned based on a content hash of that manifest.
- If no other version information can be determined and the loader is running withinAltis, the Altis revision constant is used to version registered assets.
- Added
composer/installers
as a dependency to permit custom installation paths when installing this package.
- Display admin notification about accepting Webpack's SSL certificate if
https://localhost
scripts encounter errors when loading. - Derive script & style version string from file hash, not
filemtime
.
- Do not require plugin files if plugin is already active elsewhere in the project.
- Transfer plugin to
humanmade
GitHub organization
- Fix bug when loading plugin assets outside of
wp-content/plugins
- Permit installation with
composer
.
- Initial release: introduce
autoregister()
andautoenqueue()
public API.