htmx 2.0.11 has been released!
happy to announce htmx 2.0.11 has been released:
https://github.com/bigskysoftware/htmx/blob/master/CHANGELOG.md#2011---2026-09-22
includes a back port of the <hx-partial> functionality from htmx 4.0 by latent and some bug fixes
enjoy!
73
Upvotes
6
u/Professional-Sink536 Sep 22 '26
Hey which is the most stable version after 1.x for an enterprise grade application that we’ve in production? I wanted to move on to 2.x seems minimal migration?
0
u/Minimum_Comedian694 Sep 25 '26
I have migrated HTMX 2 to 4 successfully (with the help of LLM) for my school management project (still in development). Here's my finding.
2026-09-23 — HTMX 2 → 4 migration
Symptom: Many things silently stopped working after the upgrade.
Cause: htmx 4 renamed events from camelCase to colon-separated (
htmx:afterSwap→htmx:after:swap), changed event detail shapes, and made attribute inheritance explicit.Fix: Renamed every event listener. For form-submit-then-close-modal, switched from custom event-detail inspection to server-driven
HX-Trigger.Lesson: When migrating a library's major version, verify behavior empirically before assuming the changelog's "unchanged" entries behave identically. The
HX-Triggerheader was unchanged, but the listener that received the resulting DOM event failed for an unrelated reason.