I’m happy to announce the first alpha release of htmx 2.0
This is an alpha release and should NOT be considered ready for production. We are releasing it to begin testing the code against real world scenarios to figure out what is broken and what needs improvement.
If you are able to do so, please switch to the release and do a quick run through any htmx-powered functionality you have and let us know if there are issues.
Of particular concern to us are the following changes:
hx-ws attributes in favor of the extensions (which are available in 1.x)
head tag processing from the
head-extension into the core, and head processing is now the default
behavior for boosted links.
DELETE requests now use parameters, rather than form encoded bodies, for their payload (This is in accordance w/ the spec.)
A complete upgrade guide can be found here:
Note that htmx 2.x will no longer be IE compatible, but 1.x will continue to be supported for IE users.
The alpha can be installed via a package manager referencing version
2.0.0-alpha1, or can be linked via a CDN:
Extensions have been removed from the main codebase and are now in this github repo:
They will eventually be available at https://extensions.htmx.org and in NPM but for now must be linked from the github repo.
There was one breaking change in the extensions, SSE, so you must use the newer version of that extension:
head tag merging functionality out of the box
htmx.config.disableInheritance config variable
htmx.config.responseHandling config variable