htmx 0.3.0 has been released!
htmx 0.3.0 Release
I’m pleased to announce the 0.3 release of htmx. Due to a big testing push I’m happy to say that htmx now has 98.4% test coverage.
That said, this release involves some major surgery on trigger parsing, in particular, so please try it out and let me know if you see anything funny.
Changes
New Features
hx-trigger
parsing has been rewritten and now supports trigger filters to filter events based on arbitrary javascript expressions- htmx now supports two additional response headers
HX-Trigger-After-Swap
andHX-Trigger-After-Settle
allowing an event to be triggered after a given life cycle event (instead of before the swap) - The
requestConfig
is now passed out to events surrounding the AJAX life cycle - Evaluate
<script>
tags as javascript when no language is defined on them - A new
event-header
extension, which will include a serialized JSON representation of the triggering event in requests
Bug Fixes
- Ignore non-elements when triggering post-swap events (avoid multiple event triggers when content exists)
- Catch errors when attempting to save local history so site continues to function
Enjoy!