mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
1.4.1 release
This commit is contained in:
parent
4b1dfa464a
commit
f7299a3b65
@ -1,6 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
## [1.4.1] - 2021-6-1
|
||||||
|
|
||||||
|
* typo fix
|
||||||
|
|
||||||
## [1.4.0] - 2021-5-25
|
## [1.4.0] - 2021-5-25
|
||||||
|
|
||||||
* Added the `queue` option to the [hx-trigger](/attributes/hx-trigger) attribute, allowing you to specify how events
|
* Added the `queue` option to the [hx-trigger](/attributes/hx-trigger) attribute, allowing you to specify how events
|
||||||
|
@ -35,7 +35,7 @@ By removing these arbitrary constraints htmx completes HTML as a
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- Load from unpkg -->
|
<!-- Load from unpkg -->
|
||||||
<script src="https://unpkg.com/htmx.org@1.4.0" ></script>
|
<script src="https://unpkg.com/htmx.org@1.4.1" ></script>
|
||||||
<!-- have a button POST a click via AJAX -->
|
<!-- have a button POST a click via AJAX -->
|
||||||
<button hx-post="/clicked" hx-swap="outerHTML">
|
<button hx-post="/clicked" hx-swap="outerHTML">
|
||||||
Click Me
|
Click Me
|
||||||
|
2
dist/htmx.js
vendored
2
dist/htmx.js
vendored
@ -2309,7 +2309,7 @@ return (function () {
|
|||||||
});
|
});
|
||||||
triggerEvent(elt, 'htmx:beforeSend', responseInfo);
|
triggerEvent(elt, 'htmx:beforeSend', responseInfo);
|
||||||
xhr.send(verb === 'get' ? null : encodeParamsForBody(xhr, elt, filteredParameters));
|
xhr.send(verb === 'get' ? null : encodeParamsForBody(xhr, elt, filteredParameters));
|
||||||
return promise;25
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleAjaxResponse(elt, responseInfo) {
|
function handleAjaxResponse(elt, responseInfo) {
|
||||||
|
2
dist/htmx.min.js
vendored
2
dist/htmx.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/htmx.min.js.gz
vendored
BIN
dist/htmx.min.js.gz
vendored
Binary file not shown.
@ -5,7 +5,7 @@
|
|||||||
"AJAX",
|
"AJAX",
|
||||||
"HTML"
|
"HTML"
|
||||||
],
|
],
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"homepage": "https://htmx.org/",
|
"homepage": "https://htmx.org/",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bigskysoftware/htmx/issues"
|
"url": "https://github.com/bigskysoftware/htmx/issues"
|
||||||
|
@ -2309,7 +2309,7 @@ return (function () {
|
|||||||
});
|
});
|
||||||
triggerEvent(elt, 'htmx:beforeSend', responseInfo);
|
triggerEvent(elt, 'htmx:beforeSend', responseInfo);
|
||||||
xhr.send(verb === 'get' ? null : encodeParamsForBody(xhr, elt, filteredParameters));
|
xhr.send(verb === 'get' ? null : encodeParamsForBody(xhr, elt, filteredParameters));
|
||||||
return promise;25
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleAjaxResponse(elt, responseInfo) {
|
function handleAjaxResponse(elt, responseInfo) {
|
||||||
|
@ -101,13 +101,13 @@ It can be used via [NPM](https://www.npmjs.com/) as "`htmx.org`" or downloaded o
|
|||||||
[unpkg](https://unpkg.com/browse/htmx.org/) or your other favorite NPM-based CDN:
|
[unpkg](https://unpkg.com/browse/htmx.org/) or your other favorite NPM-based CDN:
|
||||||
|
|
||||||
``` html
|
``` html
|
||||||
<script src="https://unpkg.com/htmx.org@1.4.0"></script>
|
<script src="https://unpkg.com/htmx.org@1.4.1"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
For added security, you can load the script using [Subresource Integrity (SRI)](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).
|
For added security, you can load the script using [Subresource Integrity (SRI)](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).
|
||||||
|
|
||||||
``` html
|
``` html
|
||||||
<script src="https://unpkg.com/htmx.org@1.4.0" integrity="sha384-wrLYE7mC7Ip5s6FjAQNbvAQy9NXtIoa2st9Llyx7hSLW71xVC0zHOYmfDBQyZeQO" crossorigin="anonymous"></script>
|
<script src="https://unpkg.com/htmx.org@1.4.1" integrity="sha384-1P2DfVFAJH2XsYTakfc6eNhTVtyio74YNA1tc6waJ0bO+IfaexSWXc2x62TgBcXe" crossorigin="anonymous"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
## <a name="ajax"></a> [AJAX](#ajax)
|
## <a name="ajax"></a> [AJAX](#ajax)
|
||||||
|
@ -35,7 +35,7 @@ By removing these arbitrary constraints htmx completes HTML as a
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- Load from unpkg -->
|
<!-- Load from unpkg -->
|
||||||
<script src="https://unpkg.com/htmx.org@1.4.0"></script>
|
<script src="https://unpkg.com/htmx.org@1.4.1"></script>
|
||||||
<!-- have a button POST a click via AJAX -->
|
<!-- have a button POST a click via AJAX -->
|
||||||
<button hx-post="/clicked" hx-swap="outerHTML">
|
<button hx-post="/clicked" hx-swap="outerHTML">
|
||||||
Click Me
|
Click Me
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<html><body style='font-family: sans-serif'><h1>HTMX TESTS</h1><ul>
|
<html><body style='font-family: sans-serif'><h1>HTMX TESTS</h1><ul>
|
||||||
|
<li><a href='/test/1.4.1/test'>1.4.1</a>
|
||||||
<li><a href='/test/1.4.0/test'>1.4.0</a>
|
<li><a href='/test/1.4.0/test'>1.4.0</a>
|
||||||
<li><a href='/test/1.3.4/test'>1.3.4</a>
|
<li><a href='/test/1.3.4/test'>1.3.4</a>
|
||||||
<li><a href='/test/1.3.3/test'>1.3.3</a>
|
<li><a href='/test/1.3.3/test'>1.3.3</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user