I’m happy to announce the 1.7.0 release of htmx.
hx-syncattribute allows you to synchronize multiple element requests on a single element using various strategies (e.g. replace)
hx-wsattributes will be moved entirely out to these new extensions. By moving these features to extensions we will be able to add functionality to both of them without compromising the core file size of htmx. You are encouraged to move over to the new extensions, but
hx-wswill continue to work indefinitely in htmx 1.x.
HX-Pushheader can now have the
falsevalue, which will prevent a history snapshot from occurring.
alpine-morphextension allows you to use Alpine’s swapping engine, which preserves Alpine state when you have entire Alpine components swapped by htmx.
restoreevent on all elements in the DOM on history restoration.
thissymbol now resolves properly for the
hx-valsattribute, it will be converted to JSON (rather than rendering as the string
targetattribute, allowing you to filter a poll on the element that is polling.