PackageTrack
Sign in Get early access

alleyinteractive/wp-asset-manager

Asset Manager is a toolkit for managing front-end assets and more tightly controlling where, when, and how they're loaded.

v1.4.4 486K downloads/mo #4871 most downloaded on Packagist alleyinteractive/wp-asset-manager

What this package is like to depend on

Last release 10 days ago

14 Aug 2026

Ships unpredictably

gaps range from 2 weeks to 1.5 years

Nearly every release is documented

notes for 20 of 21 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

21 releases · first in 2020

1 release in the last 12 months

see the full history below

Release timeline

21 releases · Oct 2020 to Aug 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 21
  1. v1.4.4 14 Aug 2026
    Release notes

    Changed

    • Excluded the WordPress.NamingConventions.PrefixAllGlobals sniff. WPCS 3.x enforces a four-character minimum prefix, which rejects the plugin's published am_ prefix.
    • Test expectations adapt to the running WordPress version. WordPress 7.0 rebuilt wp_kses_hair() on the HTML API, which lowercases SVG attribute names such as viewBox and encodes single quotes as '. Both are cosmetic and the plugin's markup is unchanged (#76).
    • CI runs against the release/v1.x maintenance branch, and no longer starts the MySQL, Redis, and Memcached containers; the test bootstrap uses SQLite.
    • Releases are built and tagged from release/v1.x. They are created as drafts, so that publishing a patch does not move the repository's "Latest" marker backwards onto an older series.

    Fixed

    • Added an explicit dependency on alleyinteractive/composer-wordpress-autoloader. It was previously inherited from mantle-framework/testkit, which dropped it in v1.21.0, leaving a fresh composer install unable to autoload the plugin's own classes.
    • Fixed a PHPStan type mismatch so the condition key of am_enqueue_script() is recognized as accepting both an array and a string (#72).
    Open source →
    Release notes

    v1.4.4 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. v1.4.3 27 Jan 2025
    Release notes

    What's Changed

    • issue-66: Support registering assets to the wp dependency registry by @renatonascalves in #67

    Full Changelog: v1.4.2...v1.4.3

    Open source →
    Release notes

    Changed

    • Register an asset to the WP dependency registry. (#66)
      • Available only if QueryMonitor is active.
    • Updated plugin header description to match the one in package and in the git repo.
    • Added support for .phpunit-watcher.yml.
    • Fix alignment for package.json and composer.json (Use spaces instead of tabs per .editorconfig rules).
    Open source →
    Release notes

    v1.4.3

    Compare

    Choose a tag to compare

    Open source →
  3. v1.4.2 15 Jan 2025
    Release notes

    What's Changed

    Full Changelog: v1.4.1...v1.4.2

    Open source →
    Release notes

    Fixed

    • Fixed issue with array of data being passed to the $src argument of am_enqueue_script().
    Open source →
    Release notes

    v1.4.2

    Compare

    Choose a tag to compare

    Open source →
  4. v1.4.1 15 Jan 2025
    Release notes

    What's Changed

    Full Changelog: v1.4.0...v1.4.1

    Open source →
    Release notes

    Fixed

    • Ensure that $version can be null when passed to helper methods.
    Open source →
    Release notes

    v1.4.1

    Compare

    Choose a tag to compare

    Open source →
  5. v1.4.0 14 Jan 2025
    Release notes

    Fixed

    • Added proper types for helper functions that support array in the first argument.
    • Asset_Manager_Preload::set_asset_types() should return an empty array if no valid arguments are passed.

    Changed

    • Migrates code into the Alley\WP\Asset_Manager namespace. Legacy classes such
      as Asset_Manager_Scripts and Asset_Manager_Styles are aliased to their new
      namespace for backward compatibility. Helper functions are left un-namespaced.
    • Adds a dependency on Composer autoloader. For submodules, you can track the
      production-built branch of the plugin or any tagged release (which will be
      built) to include the dependencies.

    Full Changelog: v1.3.7...v1.4.0

    Open source →
    Release notes

    Fixed

    • Added proper types for helper functions that support array in the first argument.
    • Fix: Asset_Manager_Preload::set_asset_types() should return an empty array if no valid arguments are passed.

    Changed

    • Migrates code into the Alley\WP\Asset_Manager namespace. Legacy classes such as Asset_Manager_Scripts and Asset_Manager_Styles are aliased to their new namespace for backward compatibility. Helper functions are left un-namespaced.
    • Adds a dependency on Composer autoloader. For submodules, you can track the production-built branch of the plugin or any tagged release (which will be built) to include the dependencies.
    Open source →
    Release notes

    v1.4.0

    Compare

    Choose a tag to compare

    Open source →
  6. v1.3.7 22 Mar 2024
    Release notes

    Adds support for async and defer using the 'strategy' argument added for wp_enqueue_script in WordPress 6.3.

    Open source →
    Release notes
    • Adds support for async and defer using the 'strategy' argument added for wp_enqueue_script in WordPress 6.3.
    Open source →
    Release notes

    v1.3.7

    Compare

    Choose a tag to compare

    Open source →
  7. v1.3.6 18 Dec 2023
    Release notes
    • Adds support for running the plugin on a Windows hosting environment (#57)
    Open source →
    Release notes
    • Adds support for running the plugin on a Windows hosting environment (#57)
    Open source →
    Release notes

    v1.3.6

    Compare

    Choose a tag to compare

    Open source →
  8. v1.3.5 08 Sep 2023
    Release notes

    Removes default kses allowed SVG attributes

    Open source →
    Release notes
    • Removes default kses allowed SVG attributes
    Open source →
    Release notes

    v1.3.5

    Compare

    Choose a tag to compare

    Open source →
  9. v1.3.4 01 Sep 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v1.3.3...v1.3.4

    Open source →
    Release notes
    • Fix PHP 8.2 deprecations.
    Open source →
    Release notes

    v1.3.4

    Compare

    Choose a tag to compare

    Open source →
  10. v1.3.3 25 Jul 2023
    Release notes
    • Removes visibility:hidden SVG sprite style declaration, which breaks some SVG element references
    • Upgrades to mantle-framework/testkit v0.11
    Open source →
    Release notes
    • Removes visibility:hidden SVG sprite style declaration, which breaks some SVG element references (#50)
    • Upgrades to mantle-framework/testkit v0.11 (#50)
    Open source →
    Release notes

    v1.3.3

    Compare

    Choose a tag to compare

    Open source →
  11. v1.3.2 12 Jun 2023
    Release notes

    Changed

    • The SVG Sprite is no longer hidden with display:none and instead visually hidden and moved offscreen (#49)
    Open source →
  12. v1.3.1 10 Jan 2023
    Release notes
    • Check for array key before using when preloading assets (#47).
    • Upgrades to mantle-framework/testkit v0.10.1 (#47).
    Open source →
  13. v1.3.0 06 Jan 2023
    Release notes

    Changed

    • Use am_view_asset_error meta capability to determine whether to display error messages related to asset enqueuing. am_view_asset_error is mapped to manage_options by default.
    Open source →
  14. v1.2.0 20 Dec 2022
    Release notes

    Added

    • am_symbol_is_registered for determining if a symbol is registered (#41)

    Changed

    • Filters kses allowed svg+use tags & attributes (#43)

    Fixed

    • print_asset() no longer fails for local files on WP VIP environments (#40)
    Open source →
  15. v1.1.2 27 Oct 2022
    Release notes
    • Updates the requirements on mantle-framework/testkit to permit the latest version (#36)
    • Addresses PHP 8 compatibility issue with the global usage in Asset_Manager::add_core_asset() (#37)
    • Fixes a bug where get_svg() returns false for local files on WP VIP environments (#39)
    Open source →
  16. v1.1.1 26 Oct 2022
    Release notes

    Adds support for registering SVG assets to be added to a template's sprite sheet, with methods for displaying those assets

    Open source →
  17. v1.1.0 27 Sep 2022

    Nothing published for this version

  18. v1.0.0 28 Jun 2022
    Release notes

    Stable release 🎊

    No large changes since v0.1.3 other than switching the unit tests over to Mantle Teskit

    Open source →
  19. 0.1.3 17 Jan 2022
    Release notes

    Added

    • am_inline_stylesheet filter for inline stylesheets
    Open source →
  20. 0.1.2 13 Jul 2021
    Release notes

    Added

    • GPL License
    • Caching for am_asset_conditions
    • Composer Autoloader
    • GitHub Actions CI
    Open source →
  21. 0.1.1 08 Oct 2020
    Release notes

    Added

    • Supports include_any in the condition parameter for matching any condition (#10, #19)
    • Adds am_preload for preloading assets of any supported type (#16)
    • Improves overall plugin documentation

    Changed

    Fixed

    • Includes the media attribute only if media exists (#7)
    • Uses self-closing link tags (#7)
    • Ensures in_footer is set (#8)
    • Corrects an issue where loadCSS was being output for load_methods other than defer (3510e8c)

    Removed

    • am_enqueue_style with load_method => preload is no longer supported. For backward compatibility this configuration will patch in a call to am_preload and also sync enqueue the asset (127acbc)
    • The loadCSS preload polyfill is removed since it is no longer supported (5d820d9)
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive