HTMX 2.0 ends support for Internet Explorer, moves extensions to their own repo, and more
htmx, the high power tools for HTML that gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, has launched version 2.0, introducing several key updates. This new release ends support for Internet Explorer and modifies some defaults, while maintaining the core functionality and API.
Notably, all extensions have been moved to their own repository and website, allowing for individual versioning and independent development cycles. The deprecated hx-sse and hx-ws attributes have been removed in favor of extensions, which were available and recommended in 1.x versions.
In version 2.0, HTTP DELETE requests now use parameters instead of form encoded bodies for payloads. Additionally, the hx-on attribute has been replaced by the hx-on: syntax to reduce complexity. Specific files for various JavaScript module styles are now provided in the /dist directory. The update also includes minor features, changes, and bug fixes, enhancing the overall performance and usability of htmx.