From abd71d6df53b190fc5204497f9820273f9a7638d Mon Sep 17 00:00:00 2001 From: carson Date: Sat, 6 Mar 2021 10:52:52 -0700 Subject: [PATCH] back out more aggressive validation --- CHANGELOG.md | 11 ++++++ README.md | 2 +- dist/htmx.js | 35 ++++++++++++++---- dist/htmx.min.js | 2 +- dist/htmx.min.js.gz | Bin 10037 -> 10121 bytes www/docs.md | 4 +- www/index.md | 2 +- www/js/htmx.js | 34 +++++++++++++---- www/posts/2021-3-6-htmx-1.3.0-is-released.md | 26 +++++++++++++ www/test/1.3.0/src/htmx.js | 34 +++++++++++++---- www/test/1.3.0/test/attributes/hx-preserve.js | 9 +++++ www/test/1.3.0/test/core/api.js | 13 ++++++- 12 files changed, 142 insertions(+), 30 deletions(-) create mode 100644 www/posts/2021-3-6-htmx-1.3.0-is-released.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 136525b2..7e1dca58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ # Changelog +## [1.3.0] - 2021-3-6 + +* Support a `target` modifier on `hx-trigger` to filter based on the element targeted by an event. This allows + lazy binding to that target selector. +* Events are no longer consumed by the first element that might handle them, unless the `consume` keyword is + added to the `hx-trigger` specification +* Added the `htmx:beforeSend` event, fired just before an ajax request begins +* SSE swaps are properly settled +* Fixed bug that was improperly cancelling all clicks on anchors +* `htmx.ajax()` now returns a promise + ## [1.2.1] - 2021-2-19 * Fixed an issue with the history cache, where the cache was getting blown out after the first navigation backwards diff --git a/README.md b/README.md index 9e2d7d70..11f3a23c 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ By removing these arbitrary constraints htmx completes HTML as a ```html - +