htmx v4.0.1

v4.0.1
Added 8
  • hx-partial supports the ignoreTitle option
  • hx-trigger now works on boosted elements
  • scrollTarget and showTarget now work with window and document
  • scrollTarget and showTarget now work with relative selectors
  • intersect now supports the from modifier
  • hx-sse and hx-multipart have a reconnect timeout for unresponsive servers
  • hx-live supports boolean attribute binding with :?attr
  • hx-download exposes ctx in events
Changed 3
  • Any trigger now cancels a pending delay or throttle trigger on the same element, as in 2.x
  • History back and forward navigation is more reliable
  • hx-download prefers filename* when determining the filename
Fixed 12
  • An older response no longer overwrites a newer one when using hx-sync replace
  • A response containing only hx-partial no longer blanks the body
  • The hx-history-cache POST stamp is fixed
  • The every 2s [cond] trigger now honors its filter
  • The changed modifier on forms is fixed
  • Multiple changed triggers on one element are fixed
Removed 1

2 changes to check, marked in the notes below

From htmx

v4.0.1

  • Any trigger now cancels a pending delay or throttle trigger on the same element, as in 2.x
  • Fixed an older response overwriting a newer one with hx-sync replace (#4028)
  • Fixed a response with only hx-partial blanking the body, and ignoreTitle support in hx-partial
  • Improved history back and forward reliability, and fixed the hx-history-cache POST stamp (#4067)
  • hx-trigger now works on boosted elements (#4127)
  • every 2s [cond] now honors its filter (#4133)
  • Fixed the changed modifier on forms and multiple changed triggers on one element (#4035, #4096)
  • scrollTarget and showTarget now work with window and document (#4159), and with relative selectors (#4089)
  • intersect now supports the from modifier (#4080)
  • hx-sse and hx-multipart: reconnect timeout for unresponsive servers (#4099)
  • hx-live: boolean attribute binding with :?attr (#4022)
  • hx-download: exposed ctx in events (#4152), and prefer filename* (#4043)
  • hx-head no longer appends duplicate titles (#4083)
  • implicitInheritance no longer inherits verbs, hx-action or hx-trigger behavior changed · inferred
  • Worked around Chrome 150-156 dropping HTML comments (#4150)
  • htmx-2-compat: corrected the timing of htmx:load, htmx:afterOnLoad, htmx:beforeOnLoad and htmx:beforeProcessNode
  • Corrected event mappings in the upgrade guide and upgrade-check (#4128)
  • Removed stale hx-compat and hx-optimistic files from dist/ext (#4042) removed · inferred
  • Many, many, many smaller fixes
View original

Upgraded? How did it go?

Discussion