htmx 1.9.3 has been released!
htmx 1.9.3 Release
I’m happy to announce the 1.9.3 release of htmx.
New Features
- The
hx-on
attribute has been deprecated (sorry) in favor ofhx-on:<event name>
attributes. Seehx-on
for more information. - You can now configure if a type of HTTP request uses the body for parameters or not. In particular, the
DELETE
should use query parameters, according to the spec. htmx has used the body, instead. To avoid breaking code we are keeping this undefined behavior for now, but allowing people to fix it for their use cases by updating thehtmx.config.methodsThatUseUrlParams
config option. Thank you to Alex and Vincent for their feedback and work on this issue! - The
this
symbol is now available in event filter expressions, and refers to the element thehx-trigger
is on - The
HX-Reselect
HTTP response header has been added to change the selection from the returned content
Improvements & Bug fixes
- We now have functioning CI using GitHub actions!
- Fix bug where the
htmx:afterSettle
event was raised multiple times with oob swaps occurred - A large number of accessibility fixes were made in the docs (Thank you Denis & crew!)
- Fixed bug w/ WebSocket extension initialization caused by “naked”
hx-trigger
feature - Many other smaller bug fixes
Thank you to everyone who contributed, and enjoy!