alleyinteractive/mantle-framework
Mantle is a Laravel-inspired framework for WordPress that brings Eloquent models, routing, service providers, and Blade-like views to plugin and theme development, helping teams build large-scale WordPress applications with familiar, modern PHP patterns.
Load_Method::ASYNC_DEFER) with an explicit removal target in Mantle 2.0. This is a planning signal: any feature work that touches asset loading should be scoped with the 2.0 migration in mind, and the team should start budgeting migration capacity now rather than at the 2.0 announcement.defer load method now loads as async and raises a _doing_it_wrong() notice. That is a visible behavior change (and a debug-log/noise change) for existing sites. PM decision: treat "stylesheet load-method semantics" as a tracked user-facing behavior with QA coverage, not something left to a routine composer update.^1.4.0 || ^2.0 means projects that pull wp-asset-manager only transitively through this package will jump to 2.x on the next composer update — no explicit opt-in. This supports a decision to pin or stage dependency upgrades in CI, and to require a changelog review gate before merging lockfile bumps.Consider adoption when:
alleyinteractive/wp-asset-manager; the asset contract in this release is only meaningful if that plugin is in the stack.composer update is not a no-op here).Look elsewhere when:
ASYNC_DEFER deprecation and the wp-asset-manager 2.x behavior change both point to a framework that is deliberately evolving toward a major release.defer → async materially alters render/execution order). Either pin wp-asset-manager to 1.x explicitly or postpone adoption.To executives: This is a maintenance release for our WordPress framework layer — no new features, no cost, no vendor change. The strategically relevant item is a deprecation (ASYNC_DEFER), which is the first concrete milestone on the path to the framework's 2.0. It gives us an early, low-cost signal to plan that migration rather than absorb it as unplanned work later. Risk introduced this cycle is small but real: a transitive dependency can now auto-upgrade to a new major on a routine composer update, and one asset-loading behavior changes as a result. We mitigate with a lockfile review gate and a targeted QA pass, not a project.
To engineering: v1.22.2 widens the wp-asset-manager requirement to ^1.4.0 || ^2.0, deprecates Mantle\Contracts\Assets\Load_Method::ASYNC_DEFER (removal in Mantle 2.0), and fixes a PHPStan catch.neverThrown false positive in HTML_Helpers::convertToHtmlEntities(). Two things to action: (1) projects consuming wp-asset-manager only transitively will land on 2.x on the next composer update — review the 2.0 changelog first, and note that stylesheets using defer now load as async and emit _doing_it_wrong(). (2) ASYNC_DEFER is passed through on 1.x and coerced to async on 2.x; the same coercion applies to scripts calling both async() and defer(). Grep for ASYNC_DEFER and for combined async()/defer() usage and migrate to an explicit single load method now, while the compatibility shim still exists.
How can I help you explore Laravel packages today?