htmx 4.0 swaps XMLHttpRequest for the fetch API, adds built-in morphing swaps that preserve DOM state, and ships under npm's next tag so current apps keep working.

Daniel Curtis covers what changed and why the maintainers made the upgrade opt-in.

🔗 Read more: https://www.infoq.com/news/2026/09/htmx-4-released/

#WebDevelopment #JavaScript #OpenSource #InfoQ