bump version to 1.7.0

This commit is contained in:
carson 2021-11-23 13:40:38 -07:00
parent 82a821fffd
commit c96728479a
7 changed files with 10 additions and 8 deletions

View File

@ -1,5 +1,7 @@
# Changelog
## [1.7.0] - ???
## [1.6.1] - 2021-11-22
* A new `HX-Retarget` header allows you to change the default target of returned content

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.6.1" ></script>
<script src="https://unpkg.com/htmx.org@1.7.0" ></script>
<!-- have a button POST a click via AJAX -->
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me

View File

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

View File

@ -67,7 +67,7 @@ return (function () {
createWebSocket: function(url){
return new WebSocket(url, []);
},
version: "1.6.1"
version: "1.7.0"
};
var VERBS = ['get', 'post', 'put', 'delete', 'patch'];

View File

@ -103,13 +103,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.6.1"></script>
<script src="https://unpkg.com/htmx.org@1.7.0"></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.6.1" integrity="sha384-tvG/2mnCFmGQzYC1Oh3qxQ7CkQ9kMzYjWZSNtrRZygHPDDqottzEJsqS4oUVodhW" crossorigin="anonymous"></script>
<script src="https://unpkg.com/htmx.org@1.7.0" integrity="TODO: REGEN" crossorigin="anonymous"></script>
```
## <a name="ajax"></a> [AJAX](#ajax)

View File

@ -61,8 +61,8 @@ If you wish to put a template into another file, you can use a directive such as
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://unpkg.com/htmx.org@1.6.1"></script>
<script src="https://unpkg.com/htmx.org@1.6.1/dist/ext/client-side-templates.js"></script>
<script src="https://unpkg.com/htmx.org"></script>
<script src="https://unpkg.com/htmx.org/dist/ext/client-side-templates.js"></script>
<script src="https://unpkg.com/mustache@latest"></script>
</head>
<body>

View File

@ -34,7 +34,7 @@ By removing these arbitrary constraints, htmx completes HTML as a [hypertext](ht
```html
<!-- Load from unpkg -->
<script src="https://unpkg.com/htmx.org@1.6.1"></script>
<script src="https://unpkg.com/htmx.org@1.7.0"></script>
<!-- have a button POST a click via AJAX -->
<button hx-post="/clicked" hx-swap="outerHTML">
Click Me