I’m happy to announce the 1.2.0 release of htmx.
hx-vars has been deprecated in favor of hx-valshx-vals now supports a javascript: prefix to achieve the behavior that hx-vars providedhx-headers attribute allows you to add headers to a request via an attribute. Like hx-vals it supports
JSON or javascript via the javascript: prefixhx-include will now include all inputs under an element, even if that element is not a form tagpreload-images="true" attribute that will aggressively load images in preloaded contentHX-History-Restore-Request header is included so that the server
can differentiate between history requests and normal requests preventDefault so filtering still allows events to be properly handledouterHTML swapscroll: modifier in hx-swap properly when an outerHTML swap occursEnjoy!