What’s New

htmx v4.0.0-beta6

v4.0.0-beta6Pre-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
View original