Post

htmx 4 is out. Every request now runs on fetch(), attribute inheritance is opt-in, and the back button hits your server instead of a cached snapshot. A major that breaks things on purpose. What changed and how to migrate: #htmx #webdev #javascrip

morello.devhtmx 4: What's New, What Breaks, Why It's Not latesthtmx 4.0 is out: fetch() internals, explicit inheritance, no more history cache. What breaks, how to migrate, and why 2.x stays latest on npm until early 2027.

0 reposts0 likes

The change I would have asked for: attributes like hx-confirm no longer silently inherit down the DOM. You add :inherited where you actually want it. Debugging no longer means walking up the tree in your head.