Skip to content

Publishing 0.4.6: Works with Leaf 0.5, so hosts get the latest release

Publishing 0.4.6 fixes a dependency requirement that kept sites on an older release of the module.

Publishing 0.4.5 asked for Leaf ~> 0.4.1, which excludes Leaf 0.5. PhoenixKit core accepts Leaf 0.5, so a site that resolved both got Leaf 0.5.1 and quietly stayed on Publishing 0.4.4, without the 0.4.5 changes. The only way out was to downgrade the editor.

The requirement is now ~> 0.4.1 or ~> 0.5. There is no code change in the module itself.

Upgrading

If your app imports leaf.js from deps/leaf as documented, it moves to the Leaf 0.5 bundle on its own. If you load leaf.js from a CDN or keep a copy of it in your project, update that copy by hand: an old bundle with Leaf 0.5 fails silently, and Leaf 0.5.1 logs a console warning when it sees this.

Full release notes: Publishing 0.4.6

0.4.6 · 4 August 2026

Fixed

  • The leaf requirement no longer locks hosts out of the release. 0.4.5 declared {:leaf, "~> 0.4.1"}, which was written meaning “0.4.1 or later” but reads as >= 0.4.1 and < 0.5.0. phoenix_kit core declares ~> 0.3, so a host resolving both got leaf 0.5.1 — and with 0.5.x excluded here, the resolver quietly settled on publishing 0.4.4, silently withholding the entire 0.4.5 wave. mix deps.update could not break the tie; the only escape was pinning leaf back to 0.4.x in the host’s mix.exs, i.e. downgrading the editor.

    The requirement is now ~> 0.4.1 or ~> 0.5. The 0.4.1 floor still stands (it is where inline suggestions and :flush arrived); only the accidental ceiling is gone. leaf 0.5 removed nothing this package calls — its attr set is a strict superset of 0.4.1’s, and the message contract only gained {:leaf_flushed, …}.

    Hosts loading leaf’s JS the documented way (import "../../../deps/leaf/priv/static/assets/leaf.js") move to the 0.5 bundle automatically. A CDN pin or a vendored copy of leaf.js must be updated by hand — 0.5 is a server↔client contract change, and a bundle left behind fails silently. leaf 0.5.1 logs a console warning when it detects this.


Publishing 0.4.6. Install or update: {:phoenix_kit_publishing, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.