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-multipartextension: streammultipart/mixedandmultipart/parallelresponses, with per-partHX-*action headers - History scroll restoration via the Navigation API, with a Firefox fallback (#3905)
HCONis now exposed to extensions (#3879)- Support for custom request methods like
query(#3892, #3883) - Breaking: renamed event
htmx:swap:finallytohtmx:finally:swap(#3873) HX-Triggerresponse-header events now fire after swap (#3900)hx-liveperformance: skip no-change updates (#3891), cache compiledsafeEvaltags (#3888)hx-ws: forwardprotocolsto theWebSocketconstructor (#3874); rewritten/refined implementationoptimisticextension handles trusted-type policies viacloneNode(#3887)- Custom-element manual input value collection (#3872)
- Many smaller fixes and a website overhaul