mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-04-18 03:55:10 +00:00
1.4 KiB
1.4 KiB
The htmx 4.0 Changelog
fetch()has replacedxhras the core AJAX infrastructure- The default swap strategy has been changed to
outerHTML. You can configure this back toinnerHTMLto avoid pain. - CSS Transitions have been removed in favor of View Transitions
- There is no longer a swap & settle mechanic, so options relating to those are now removed
- Inheritance is now explicit, via the
:inheritedsuffix on attributes- Thus, inheritance-related attributes like
hx-disinherithave been removed
- Thus, inheritance-related attributes like
hx-disablehas been renamed tohx-ignorehx-disabled-elthas been renamed tohx-disable:/- History no longer caches any local content, instead a full page request is made and the
bodytag is swapped out - The
queueoption was dropped from hx-trigger, should usehx-syncinstead - Extended selectors with spaces in them (e.g.
next .foo) must now be enclosed in quotes for thefromoption onhx-trigger(e.g.hx-trigger="click from:'next div'", rather thanhx-trigger="click from:next div") - hx-confirm now can can return a string to confirm or, via the
hx-confirm='js:confirmMe()''form, use a Promise-based callback - hx-on:* now only follows the
hx-on:<event name>standard. Because JSX now supports colons in attribute names, there is no special handling. There is also no special handling for htmx events: all events should be fully qualified - hx-sync no longer supports the
abortoption