Carson Gross ships htmx 4 and leaves npm's default alone

The eight-month rewrite moves htmx from XMLHttpRequest to fetch, adds streaming and morphing, and keeps version 2 as npm's default until 2027.

By · Published

Primary source: htmx

Why it matters

htmx 4 expands the server-rendered HTML model without using a major release to force migration. Gross is betting that careful compatibility and boring deployment choices will keep htmx useful longer than a faster upgrade cycle would.

Carson Gross ships htmx 4 and leaves npm's default alone — The eight-month rewrite moves htmx from XMLHttpRequest to fetch, adds streaming and morphing, and keeps version 2 as npm's default until 2027.

Carson Gross, the Montana State University professor who created htmx, released htmx 4.0.0 on August 28th after eight months of work on the JavaScript library. The release replaces its XMLHttpRequest-based internals with the browser's fetch API, adds built-in morphing and streaming features, and changes several behaviors that had accumulated since htmx's intercooler.js origins.…

Reader comments

Conversation for this story loads after sign-in.