Skip to content

Htmx 4.0

7.7 relevance
Score Breakdown
technical depth
7
novelty
8
actionability
8
community
9
strategic
6
personal
9

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.

General four.htmx.org
Summary

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.

Author

htmx