htmx/www/content/posts/2024-04-22-htmx-2.0.0-beta4-is-released.md
Carson Gross 601d16c5ef fix links
2024-05-22 15:23:45 -06:00

50 lines
1.7 KiB
Markdown

+++
title = "htmx 2.0.0-beta4 has been released!"
date = 2024-04-22
[taxonomies]
tag = ["posts", "announcements"]
+++
## htmx 2.0.0-beta4 Release
I'm happy to announce the fourth beta release of htmx 2.0
This is an _beta_ release and should NOT be considered ready for production. We are releasing it to begin
final testing against real world scenarios.
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:
* We removed the deprecated `hx-sse` and `hx-ws` attributes in favor of the extensions (which are available in 1.x)
* `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:
[htmx 1.x -> 2.x Migration Guide](@/migration-guide-htmx-1.md)
Note that htmx 2.x will no longer be IE compatible, but 1.x will continue to be supported for IE users.
### Installing
The beta can be installed via a package manager referencing version `2.0.0-beta4`, or can be linked via a CDN:
```html
<script src="https://unpkg.com/htmx.org@2.0.0-beta4/dist/htmx.min.js"></script>
```
or <a href="https://unpkg.com/htmx.org@2.0.0-beta4/dist/htmx.min.js" download>Downloaded</a>
### Extensions
Extensions have been removed from the main codebase and are now in this github repo:
<https://github.com/bigskysoftware/htmx-extensions>
They are available at <https://extensions.htmx.org>
There was one breaking change in the extensions, SSE, so you must use the newer version of that extension:
<https://github.com/bigskysoftware/htmx-extensions/blob/main/ext/sse.js>