htmx 4: what's new
summary
htmx 4 reimplements internals around Fetch, folds Idiomorph morphing into core, and changes attribute inheritance so defaults no longer bubble — use hx-target:inherited when you want inheritance. an upgrade helper CLI reports needed changes; hx-partial lets streamed HTML carry swap metadata; new attributes hx-action and hx-method map to form semantics. extensions cover preloading without cache headers, optional history caching, Alpine compatibility, HXLive DOM reactivity, and SSE/WebSocket/multipart streaming; rollout is gradual.
AI-written summary · about
chapters (9)
- 0:00Introduction and the Road to htmx 4
- 5:41Compatibility and the Upgrade Helper
- 8:01Fetch Internals and Idiomorph in Core
- 10:25Explicit Attribute Inheritance
- 12:19Simplified History and Optional Caching
- 14:13Declarative Updates and hx-partial
- 17:41hx-action, hx-method, and the HTML Spec
- 19:21Extension Architecture, Preloading, and Client State
- 25:32Streaming HTML, Release Strategy, and Recap
