htmx 1.6.0 has been released!
htmx 1.6.0 Release
I’m happy to announce the 1.6.0 release of htmx.
New Features & Major Changes
- Completely reworked
<script>tag support that now supports the<script src="...'/>form - You can now use the value
unsetto clear a property that would normally be inherited (e.g. hx-confirm) - The
htmx-addedclass is added to new content before a swap and removed after the settle phase, which allows you more flexibility in writing CSS transitions for added content (rather than relying on the target, as withhtmx-settling) - The
htmx:beforeSwapevent has been updated to allow you to configure swapping behavior
Improvements & Bug fixes
- Improved
<title>extraction support - You can listen to events on the
windowobject using thefrom:modifier inhx-trigger - The
rootoption of theintersectevent was fixed - Boosted forms respect the
enctypedeclaration - The
HX-Boostedheader will be sent on requests from boosted elements - Promises are not returned from the main ajax function unless it is an api call (i.e.
htmx.ajax)
Enjoy!