1.4.1 release

This commit is contained in:
carson 2021-06-01 08:53:34 -06:00
parent 4b1dfa464a
commit f7299a3b65
10 changed files with 13 additions and 8 deletions

View File

@ -1,6 +1,10 @@
# Changelog
## [1.4.1] - 2021-6-1
* typo fix
## [1.4.0] - 2021-5-25
* Added the `queue` option to the [hx-trigger](/attributes/hx-trigger) attribute, allowing you to specify how events

View File

@ -35,7 +35,7 @@ By removing these arbitrary constraints htmx completes HTML as a
```html
<!-- 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 -->
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me

2
dist/htmx.js vendored
View File

@ -2309,7 +2309,7 @@ return (function () {
});
triggerEvent(elt, 'htmx:beforeSend', responseInfo);
xhr.send(verb === 'get' ? null : encodeParamsForBody(xhr, elt, filteredParameters));
return promise;25
return promise;
}
function handleAjaxResponse(elt, responseInfo) {

2
dist/htmx.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/htmx.min.js.gz vendored

Binary file not shown.

View File

@ -5,7 +5,7 @@
"AJAX",
"HTML"
],
"version": "1.4.0",
"version": "1.4.1",
"homepage": "https://htmx.org/",
"bugs": {
"url": "https://github.com/bigskysoftware/htmx/issues"

View File

@ -2309,7 +2309,7 @@ return (function () {
});
triggerEvent(elt, 'htmx:beforeSend', responseInfo);
xhr.send(verb === 'get' ? null : encodeParamsForBody(xhr, elt, filteredParameters));
return promise;25
return promise;
}
function handleAjaxResponse(elt, responseInfo) {

View File

@ -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:
``` 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).
``` 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)

View File

@ -35,7 +35,7 @@ By removing these arbitrary constraints htmx completes HTML as a
```html
<!-- 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 -->
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me

View File

@ -1,4 +1,5 @@
<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.3.4/test'>1.3.4</a>
<li><a href='/test/1.3.3/test'>1.3.3</a>