mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-30 22:41:23 +00:00
1.4.1 release
This commit is contained in:
parent
4b1dfa464a
commit
f7299a3b65
@ -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
|
||||
|
@ -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
2
dist/htmx.js
vendored
@ -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
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",
|
||||
"HTML"
|
||||
],
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"homepage": "https://htmx.org/",
|
||||
"bugs": {
|
||||
"url": "https://github.com/bigskysoftware/htmx/issues"
|
||||
|
@ -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) {
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user