What’s New

htmx

Developer Tools

htmx release notes.

Latest v4.0.0-beta5 · by htmxWebsitebigskysoftware/htmx

Changelog

v4.0.0-beta6

Pre-release
Added
  • New hx-multipart extension to stream multipart/mixed and multipart/parallel responses with per-part HX-* action headers
  • History scroll restoration via the Navigation API with a Firefox fallback
  • HCON is now exposed to extensions
  • Support for custom request methods like query
Changed
  • Renamed event htmx:swap:finally to htmx:finally:swap
  • HX-Trigger response-header events now fire after swap
  • hx-live performance improved by skipping no-change updates and caching compiled safeEval tags
  • hx-ws now forwards protocols to the WebSocket constructor with rewritten and refined implementation
  • optimistic extension handles trusted-type policies via cloneNode
  • Custom-element manual input value collection implemented
  • New hx-multipart extension: stream multipart/mixed and multipart/parallel responses, with per-part HX-* action headers
  • History scroll restoration via the Navigation API, with a Firefox fallback (#3905)
  • HCON is now exposed to extensions (#3879)
  • Support for custom request methods like query (#3892, #3883)
  • Breaking: renamed event htmx:swap:finally to htmx:finally:swap (#3873)
  • HX-Trigger response-header events now fire after swap (#3900)
  • hx-live performance: skip no-change updates (#3891), cache compiled safeEval tags (#3888)
  • hx-ws: forward protocols to the WebSocket constructor (#3874); rewritten/refined implementation
  • optimistic extension handles trusted-type policies via cloneNode (#3887)
  • Custom-element manual input value collection (#3872)
  • Many smaller fixes and a website overhaul

v2.0.7

Added
  • Implement reportValidity for reporting proper form validation errors behind config flag
Changed
  • Update indicator style to have visibility:hidden for screen readers
Fixed
  • Remove extra "2" from unminified v2.0.6 SRI hash
  • swap="outerHTML" on <div> with style attribute leaves htmx-swapping class behind
  • Fix variable names
  • Cancel button with inner content form submit properly
  • Fix invisible button text for hx-indicator in dark mode
  • Add null check for no form in getRelatedFormData
  • Handle not preventing link when inside htmx enabled element
What's Changed
New Contributors

Full Changelog: https://github.com/bigskysoftware/htmx/compare/v2.0.6...v2.0.7

v2.0.6

Added
  • Add Lua Server Pages server example
Fixed
  • Fix click events on elements wrapped by link not canceling link navigation
What's Changed
New Contributors

Full Changelog: https://github.com/bigskysoftware/htmx/compare/v2.0.5...v2.0.6

v2.0.5

Added
  • Add http4k server example
  • Add FreePascal server example with Pas2JS
  • Add example of evaluated values passed to hx-headers
  • Add example for form reset pattern
  • Add 404 page
  • Add favicon
  • Add example to hx-ext documentation
  • Extension Proposal: hx-drag for dragstart and drop triggered htmx requests
  • Add descriptions for attribute pages
  • Add descriptions for /headers/* and /api
  • Add django-block-fragments to template-fragments essay
  • Add attribute-tools Community Extension to documentation
  • Add Raku / Cro Templates to Fragments list
Changed
  • Improve active-search example by not using chrome-only event "search"
  • Render toast as aria-live region on page load
Fixed
  • Properly resolve referenced forms
  • Enforce no-op on submit buttons with formmethod=dialog
  • Fix escaped quotes in titles
  • Fix h2 color
  • Fix error in quirks documentation for htmx config
What's Changed
New Contributors

Full Changelog: https://github.com/bigskysoftware/htmx/compare/v2.0.4...v2.0.5

v2.0.4

Added
  • Add missing htmx:trigger event on load triggers
  • Support multiple extended selectors for hx-include, hx-trigger from, and hx-disabled-elt
Changed
  • Ajax helper with no source or target defaults to body
  • Make bodyContains return true for nested shadow roots
  • Replace deprecated String.prototype.substr usage
  • Typing for defineExtension should allow partials
Fixed
  • Fix TypeError on null path variable
  • Fix illegal invocation for FormData proxy
  • Handle invalid template content
  • Do not execute hx-trigger="load" on re-initialization of an existing node
  • Cancel vanilla submits from <button[form]/>
What's Changed
New Contributors

Full Changelog: https://github.com/bigskysoftware/htmx/compare/v2.0.3...v2.0.4

v2.0.3

Added
  • Add ability to pass options argument to event listener
  • Add shadowRoot host selector
Changed
  • Listen to resize events and check revealed
  • Handle space before comma in trigger spec
  • Enable hx-preserve handling for oob swaps
  • Change hx-trigger's changed modifier to work for independent trigger specifications
  • Improve graceful degradation of boosted form element
Fixed
  • Fix CDN typo
  • Fix responseHandling meta example
  • Fix duplicate typo
  • Fix restoreHistory title replacement
  • Fix focusin-based tests
  • Fix load trigger stopping hx-disabled-elt from getting re-enabled
  • Check parent is null for swap delete
  • Fix htmx.ajax defaulting to swap body when target not found
  • Prevent erroring on null vals
  • Remove extra hx-swap-oob attribute that is not used in the page
  • Properly remove request indicators
  • Fix hx-swap-oob within web components
  • Fix ES6 tsc checks complaining on newer s regex flag
What's Changed
New Contributors

Full Changelog: https://github.com/bigskysoftware/htmx/compare/v2.0.2...v2.0.3