I’m happy to announce the 1.8.0 release of htmx.
NOTE: This was a big release with some changes to very touchy code that is hard to test (e.g. history support) so please test thoroughly and let us know if there are any issues.
hx-replace-url
attribute was introduced, allowing you to replace
the current URL in history (to complement hx-push-url
)m
is now a valid timing modifier (e.g. hx-trigger="every 2m"
)next
and previous
are now valid extended query selector modifiers, e.g. hx-target="next div"
will target the
next div from the current elementHX-Location
response header now implements client-side redirects entirely within htmxHX-Reswap
response header allows you to change the swap behavior of htmxhx-select-oob
attribute selects one or more elements from a server response to swap in via an out of band swaphx-replace-url
attribute can be used to replace the current URL in the location
bar (very similar to hx-push-url
but no new history entry is created). The corresponding HX-Replace-Url
response header can be used as well.hx-push-url='false'
to your boosted formshx-boost
will boost anchor tags with a _self
targetload
event now properly supports event filtershx-trigger
supportws-send
attributes connecting in new elementshx-get
, etc. attributesEnjoy!