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
- hx-head no longer appends duplicate titles
- implicitInheritance no longer inherits verbs, hx-action, or hx-trigger behavior changed · inferred, marked in the notes below
- Worked around Chrome 150-156 dropping HTML comments
- The timing of htmx:load, htmx:afterOnLoad, htmx:beforeOnLoad, and htmx:beforeProcessNode is corrected in htmx-2-compat
- Event mappings in the upgrade guide and upgrade-check are corrected
- Many smaller fixes
Removed 1
- Stale hx-compat and hx-optimistic files are removed from dist/ext inferred, marked in the notes below
2 changes to check, marked in the notes below
From htmx
v4.0.1
- Any trigger now cancels a pending
delayorthrottletrigger on the same element, as in 2.x - Fixed an older response overwriting a newer one with
hx-syncreplace (#4028) - Fixed a response with only
hx-partialblanking the body, andignoreTitlesupport inhx-partial - Improved history back and forward reliability, and fixed the
hx-history-cachePOST stamp (#4067) hx-triggernow works on boosted elements (#4127)every 2s [cond]now honors its filter (#4133)- Fixed the
changedmodifier on forms and multiplechangedtriggers on one element (#4035, #4096) scrollTargetandshowTargetnow work withwindowanddocument(#4159), and with relative selectors (#4089)intersectnow supports thefrommodifier (#4080)hx-sseandhx-multipart: reconnect timeout for unresponsive servers (#4099)hx-live: boolean attribute binding with:?attr(#4022)hx-download: exposedctxin events (#4152), and preferfilename*(#4043)hx-headno longer appends duplicate titles (#4083)implicitInheritanceno longer inherits verbs,hx-actionorhx-triggerbehavior changed · inferred- Worked around Chrome 150-156 dropping HTML comments (#4150)
htmx-2-compat: corrected the timing ofhtmx:load,htmx:afterOnLoad,htmx:beforeOnLoadandhtmx:beforeProcessNode- Corrected event mappings in the upgrade guide and
upgrade-check(#4128) - Removed stale
hx-compatandhx-optimisticfiles fromdist/ext(#4042) removed · inferred - Many, many, many smaller fixes