I’m happy to announce the 1.7.0 release of htmx.
hx-sync
attribute allows you to synchronize multiple element requests on a single
element using various strategies (e.g. replace)
htmx:abort
eventhx-sse
and hx-ws
attributes 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-sse
and hx-ws
will continue to work indefinitely in htmx 1.x.hx-disinherit
attribute.HX-Push
header can now have the false
value, which will prevent a history snapshot from occurring.alpine-morph
extension allows you to use Alpine’s swapping engine, which preserves Alpine state when you have entire Alpine components swapped by htmx.restore
event on all elements in the DOM
on history restoration.this
symbol now resolves properly for the hx-include
and hx-indicator
attributeshx-vals
attribute, it will be converted to JSON (rather
than rendering as the string [Object object]"
)htmx.ajax()
function call.target
attribute, allowing you to filter a poll on the element that is polling.htmx:oobBeforeSwap
& htmx:oobAfterSwap
Enjoy!