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
m is now a valid timing modifier (e.g.
previous are now valid extended query selector modifiers, e.g.
hx-target="next div" will target the
next div from the current element
HX-Location response header now implements client-side redirects entirely within htmx
HX-Reswap response header allows you to change the swap behavior of htmx
hx-select-oob attribute selects one or more elements from a server response to swap in via an out of band swap
hx-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 forms
hx-boost will boost anchor tags with a
load event now properly supports event filters
ws-send attributes connecting in new elements
hx-get, etc. attributes