Announcement

This commit is contained in:
carson 2020-06-19 12:29:06 -07:00
parent a8832f6ec3
commit f08f0ae6b6
3 changed files with 48 additions and 2 deletions

View File

@ -17,7 +17,7 @@ Using an extension involves two steps:
Here is an example
```html
<script src="https://unpkg.com/htmx.org@0.0.4/dist/ext/debug.js"></script>
<script src="https://unpkg.com/htmx.org@0.0.5/dist/ext/debug.js"></script>
<button hx-post="/example" hx-ext="debug">This Button Uses The Debug Extension</button>
```

View File

@ -26,7 +26,7 @@ IE11 compatible
```html
<!-- Load from unpkg -->
<script src="https://unpkg.com/htmx.org@e0.0.5"></script>
<script src="https://unpkg.com/htmx.org@0.0.5"></script>
<!-- have a button POST a click via AJAX -->
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me

View File

@ -0,0 +1,46 @@
---
layout: layout.njk
tags: post
title: htmx 0.0.5 has been released!
date: 2020-06-19
---
## htmx 0.0.5 Release
I'm pleased to announce the [0.0.5 release](https://unpkg.com/browse/htmx.org@0.0.5/) of htmx.
### Changes
#### _hyperscript
With this release comes the release of a new sibling project:
<https://hyperscript.org>
hyperscript is a scripting language designed to be embedded directly in HTML and inspired by
[HyperTalk](https://hypercard.org/HyperTalk%20Reference%202.4.pdf), the programming language of HyperCard.
You can see how hyperscript and htmx work together [in the docs](/docs#hyperscript).
#### Breaking Changes
* Custom request/response headers no longer start with the `X-` prefix, which is no longer recommended
* The `X-HTTP-Method-Override` is now part of the `method-override` extension, and AJAX requests use the actual
http method specified for requests.
* Extensions that handle swaps must explicitly return an array of elements to process after the swap
* The `hx-error-url` attribute was removed in favor of hyperscript
#### Other Changes
* empty verb attributes are now allowed and follow the anchor tag semantics (e.g. `<div hx-get></div>`)
* nunjuks inline rendering is now supported in the `client-side-templates` extension
* the new `ajax-header` extension includes the `X-Requested-With` header
* bad JSON is now handled more gracefully
* `hx-swap="none"` will cause no swap to take place <https://github.com/bigskysoftware/htmx/issues/89>
* `hx-trigger` now supports a `throttle` modifier <https://github.com/bigskysoftware/htmx/issues/88>
* the focued element is preserved if possible after a replacement
* perf improvements for large DOM trees with sparse `hx-` annotations
* general bug fixes
Enjoy!