Htmx 4.0
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Major release of htmx, directly relevant to web development and developer experience trends.
Htmx 4.0 is released after 8 months of development, migrating from XMLHttpRequest to the fetch() API internally while keeping the user-facing API nearly identical to htmx 2. The three major changes are explicit attribute inheritance via the :inherited suffix, standardized event naming following the htmx:phase:action pattern, and removal of localStorage for history support by default. The team is not marking 4.0 as latest on NPM until early 2027 to avoid breaking users on non-versioned CDN URLs, and provides a CLI tool to automate upgrade migration.
htmx