PhoenixKit 2.13.17: The editor script moves to Leaf 0.6.1
PhoenixKit 2.13.17 loads version 0.6.1 of the Leaf editor script in the browser, where it loaded 0.6.0. The rest of the release is tooling for PhoenixKit’s own development, such as formatter and test fixes, with no change for a running site.
Leaf 0.6.1 reports conflicts when a shared edit cannot be saved, lets collaborative rooms close themselves when idle, follows wiki links on click in hybrid mode, and fixes selection in lists and checkboxes.
Upgrading
The browser script and the server side of Leaf have to be the same release. Run mix deps.update leaf so your app runs Leaf 0.6.1 too.
Full release notes: PhoenixKit 2.13.17
2.13.17 · 30 August 2026
Toolchain and test-fidelity release: PRs #773-#776, plus the post-merge review
findings for each (dev_docs/pull_requests/2026/77{3,4,5,6}-*/CLAUDE_REVIEW.md).
Fixed
mix format --check-formattedwas failing on Elixir 1.19. A reformat ofphoenix_kit_doctor_test.exspinned one assertion to Elixir 1.18.4’s line-breaking, which 1.19 undoes - somix quality.ci,mix precommitand the CI format step were all red onmainfor anyone on 1.19, whichelixir: "~> 1.18"admits. The assertion is now decomposed below the break threshold, so no formatter version has a decision to make: verified idempotent and byte-identical under 1.19.5 and 1.20.0-rc.6..formatter.exsexcluded nothing. The key wasexclude:; Mix reads:excludes(plural, added in Elixir 1.19).priv/templateswas skipped only because no:inputspattern happened to reach it. Corrected toexcludes:- note this filters:inputsexpansion only, so.claude/hooks/format-edited-file.shstill needs its own explicit skip formix format <path>.- The destructive orphaned-FK doctor test no longer needs superuser (#774),
and now proves the branch it was written for. Planting the orphan behind a
re-added
NOT VALIDconstraint routed it toclassify_fk_check/6‘s:validateclause - which predates the widening fix - instead of the:validated->:existing_orphanclause that used to discard real orphans; the assertion could not tell them apart. It now defers the FK’s referential check (ALTER CONSTRAINT ... DEFERRABLE INITIALLY DEFERRED, plain table-owner DDL) so the constraint stays validated, and asserts bothconvalidatedand the:existing_orphanwording.
Changed
- The git-guard hook fails closed, and says why (#773). A missing
jq, malformed JSON, or an absent.tool_input.commandall used to leave the command empty and fall through toexit 0. They now block - and, unlike the merged version, write a reason to stderr, where aPreToolUsehook’s exit 2 actually surfaces it; a missingjqis named explicitly, since otherwise it silently blocks every Bash call in the session.git pushwith plain--forceis still blocked;--force-with-leaseno longer is. - Format-on-save is scoped to the edited file (#775). The
Write|Edithook ran baremix format, rewriting every file in the tree that differed from canonical form and mixing that collateral diff intogit status..claude/hooks/format-edited-file.shformats only the file from the hook payload, skipspriv/templates, and refuses anything outside$CLAUDE_PROJECT_DIR(realpath +commonpath, not a prefix compare). - Leaf pinned to 0.6.1 (#776) - lock and the
LEAF_CDNconstant together. Conflict reporting on a refused flush ({:leaf_conflict, ...}broadcast,@leaf_collab.conflict, honestflush_now/1),Room.stop/1andidle_after:for self-tidying rooms, wiki links following on click in hybrid mode,Leaf.Collab.leave/1, and the lists-and-checkboxes selection fixes.
PhoenixKit 2.13.17. Install or update: {:phoenix_kit, "~> 2.13"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.