← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Htmx 4.0.0 Released with Internal Fetch() Migration and Attribute Inheritance Changes

🔄 Updated 1h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Htmx 4.0.0 released after 8 months of development.
  • Internally migrated from XMLHttpRequest to Fetch API.
  • Attribute inheritance is now explicit by default.
  • Htmx event names have been standardized and cleaned up.
  • History support no longer uses localStorage by default.

Htmx 4.0.0 Release Overview

The htmx team has announced the release of htmx 4.0.0, following eight months of development. This new version incorporates significant internal changes while maintaining a high degree of compatibility with the previous 2.x series for most users.

Internal Architecture Shift

A core internal change in htmx 4.0.0 is the migration from XMLHttpRequest to the more modern Fetch API for handling network requests. This shift was driven by a desire to simplify the library's internals and align with contemporary JavaScript practices, though it is designed to be transparent to most end-users of htmx.

Key User-Facing Changes

While behavioral differences are minimal, htmx 4.0.0 introduces three main changes that users may notice. Attribute inheritance is now explicit by default, requiring users to opt-in for inheritance rather than it being implicit. The library's event names have been standardized, which may require adjustments for advanced users listening to specific events. Additionally, history support no longer relies on localStorage by default, addressing a previous source of support issues.

NPM Distribution Strategy

Htmx 4.0.0 will not be marked as the 'latest' version on NPM to avoid force-upgrading users who depend on non-versioned CDN URLs. Version 2.x will remain 'latest' for the time being, with 4.0 designated as 'next' until early 2027. However, the official htmx website will reference the 4.0 version.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~16 min · 14 stories · Aug 28

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Htmx 4.0.0 has been released, migrating its internal architecture from XMLHttpRequest to the Fetch API and introducing changes to attribute inheritance, event naming, and history support. This update aims to improve the library's internal workings and address previous support issues, though user-facing behavioral differences from version 2.x are minimal.