htmx 0.1.2 has been released!
htmx 0.1.2 Release
I’m pleased to announce the 0.1.2 release of htmx as well as the first non-alpha hyperscript release 0.0.2 hyperscript.
Changes
Breaking Changes
- The SSE attribute
hx-sse
and the Web Sockets attributehx-ws
have changed syntax to now use colon separators:hx-sse='connect:/chat swap:message'
- Hyperscript no longer requires a
_hyperscript.start()
call to initialize.
New Features
- The SSE attribute
hx-sse
allows for swapping content directly on an event, in addition to triggering an htmx element, with the newswap:<event name>
syntax. hx-target
now supports afind
syntax to find elements below the element by a CSS selector- htmx plays better with deferred loading and many package managers
- All htmx events are dispatched in both camelCase as well as kebab-case, for better compatibility with AlpineJS and other frameworks. (e.g.
htmx:afterOnLoad
will also be triggered ashtmx:after-on-load
)
Bug Fixes
- The synthetic
revealed
trigger event is much less of a CPU hog - Multi-select elements now send all values
- Exotic element IDs do not break DOM processing
- Exotic attribute values do not break the settling phase
- Hyperscript now supports
$
and_
in function calls - Hyperscript now supports empty parameter lists
Enjoy!