htmx/www/content/posts/2020-6-20-htmx-0.0.6-is-released.md
2024-01-09 11:23:15 -07:00

1.7 KiB

+++ title = "htmx 0.0.6 has been released!" date = 2020-06-20 [taxonomies] tag = ["posts", "announcements"] +++

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:

https://hyperscript.org

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-Override is now part of the method-override extension, 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-url attribute 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-templates extension
  • the new ajax-header extension includes the X-Requested-With header
  • bad JSON is now handled more gracefully
  • hx-swap="none" will cause no swap to take place https://github.com/bigskysoftware/htmx/issues/89
  • hx-trigger now supports a throttle modifier 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!