htmx 0.4.0 has been released!
htmx 0.4.0 Release
I’m pleased to announce the 0.4 release of htmx.
Changes
New Features
- Now support the
HX-Redirect
andHX-Refresh
response headers for redirecting client side and triggering a page refresh, respectively hx-vars
now overrides input values<title>
tags in responses will be used to update page titles- All uses of
eval()
have been removed in favor ofFunction
hx-vals
is available as a save alternative tohx-vars
. It usesJSON.parse()
rather than evaluation, if you wish to safely pass user-provided values through to htmx.
Bug Fixes
- Eliminated perf issues around
hx-boost
in large pages that are not using that attribute - Fixed bug which prevented evaluation when a script tag was the leading content in a response
Enjoy!