From 97b72850f57795bd3c8a070141b01b426e43f201 Mon Sep 17 00:00:00 2001 From: Rob Wagner Date: Sun, 3 Dec 2023 15:47:28 -0500 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73df41f..56cc4e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,25 @@ ## v0.5.0 -- Add `From` impls for `HxResponseTrigger`, `HxResponseTriggerAfterSettle`, and - `HxResponseTriggerAfterSwap`, allowing them to take any iterator where `T: - Into`. -- Added feature flag badges to docs.rs pages. Thanks to - [@ItsEthra](https://github.com/ItsEthra). - ([#7](https://github.com/robertwayne/axum-htmx/pull/7)) +There are some several breaking changes in this release. Big thanks to +[@ItsEthra](https://github.com/ItsEthra) for their work in several PRs! + +- All responders now take an `HxEvent` instead of a `String | HxEvent`. When the + `serde` flag is enabled, it will expose additional data fields. +- `HxResponseTrigger` is now a simple struct containing an `TriggerMode` and a + `Vec`. There are several methods to make constructing these easier: + `HxResponseTrigger::normal`, + `HxResponseTrigger::after_settle`, and + `HxResponseTrigger::after_swap`. +- The `HxCurrentUrl` extractor now returns an `Option`. +- `HxError::Serialization` has been renamed to `HxError::Json`. +- The `HxResponseTrigger*` header will not be added to the response if the event + list is empty. +- Added feature flag badges and made additional updates to the docs.rs pages. - Reduced dependency count / compile time by swapping `axum` out for the -`axum-core`, `async-trait`, and `http` crates. Thanks to - [@ItsEthra](https://github.com/ItsEthra) for their work on this! - ([#8](https://github.com/robertwayne/axum-htmx/pull/8)) +`axum-core`, `async-trait`, and `http` crates. ## v0.4.0