Publishing 0.13.2: Editor needs Leaf 0.5.1, and version history fixes
Publishing 0.13.2 makes the post editor require Leaf 0.5.1 or later. With Leaf 0.4.1, Preview, translation, creating a version and switching language or version timed out, because the editor waits for replies that only Leaf 0.5.1 sends.
The release also fixes the public version history. It now works when the listing cache is turned off, or for posts that are not in the cache. The version dropdown on a published post no longer lists archived versions that were never published, which led to a page that fell back to another version.
Two smaller fixes: saving a post through update_post/4 with a post from another group no longer saves the content and then answers “not found”, and a new blank version keeps the post’s media folder.
Upgrading
Update Leaf to 0.5.1 or later together with this release, and update your Leaf JavaScript bundle too.
Full release notes: Publishing 0.13.2
0.13.2 · 5 October 2026
Changed
- Leaf requirement is now
>= 0.5.1 and < 1.0.0(was~> 0.4.1 or ~> 0.5). The editor waits for correlated{:leaf_flushed, …}replies and relies on:set_contentbaselining the dirty state; both first shipped in Leaf 0.5.1, so with 0.4.1 Preview, translation, Create Version and language/version switches timed out. Hosts must also update their Leaf JS bundle.
Fixed
update_post/4given a UUID from a different group than the group slug no longer saves content and then reports:not_found; the post is looked up within its group.- Version history works with the listing cache disabled (or for posts outside the
capped cache): the fallback resolves the group-scoped post and takes
allow_version_accessand the live version from the same active version. - The public version dropdown no longer lists archived versions that were never published, which linked to a URL that fell back.
- A blank new version keeps the post’s media-folder pointer; version creation takes the post lock first.
Publishing 0.13.2. Install or update: {:phoenix_kit_publishing, "~> 0.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.