htmx 0.0.6 has been released!
htmx 0.0.6 Release
Iām pleased to announce the 0.0.6 release of htmx.
Changes
_hyperscript
With this release comes the release of a new sibling project:
hyperscript is a scripting language designed to be embedded directly in HTML and inspired by HyperTalk, the programming language of HyperCard.
Breaking Changes
- Custom request/response headers no longer start with the
X-prefix, which is no longer recommended - The
X-HTTP-Method-Overrideis now part of themethod-overrideextension, and AJAX requests use the actual http method specified for requests. - Extensions that handle swaps must explicitly return an array of elements to process after the swap
- The
hx-error-urlattribute was removed in favor of hyperscript
Other Changes
- empty verb attributes are now allowed and follow the anchor tag semantics (e.g.
<div hx-get></div>) - nunjuks inline rendering is now supported in the
client-side-templatesextension - the new
ajax-headerextension includes theX-Requested-Withheader - bad JSON is now handled more gracefully
hx-swap="none"will cause no swap to take place https://github.com/bigskysoftware/htmx/issues/89hx-triggernow supports athrottlemodifier https://github.com/bigskysoftware/htmx/issues/88- the focused element is preserved if possible after a replacement
- perf improvements for large DOM trees with sparse
hx-annotations - general bug fixes
Enjoy!