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-sseand the Web Sockets attributehx-wshave 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-sseallows for swapping content directly on an event, in addition to triggering an htmx element, with the newswap:<event name>syntax. hx-targetnow supports afindsyntax 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:afterOnLoadwill also be triggered ashtmx:after-on-load)
Bug Fixes
- The synthetic
revealedtrigger 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!