mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-29 22:11:22 +00:00
Announcement
This commit is contained in:
parent
a8832f6ec3
commit
f08f0ae6b6
@ -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>
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
|
46
www/posts/2020-6-19-htmx-0.0.5-is-released.md
Normal file
46
www/posts/2020-6-19-htmx-0.0.5-is-released.md
Normal 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!
|
Loading…
x
Reference in New Issue
Block a user