v0.5.0
There are some several breaking changes in this release. Big thanks to @ItsEthra for their work in several PRs!
- All responders now take an
HxEvent
instead of aString | HxEvent
. When theserde
flag is enabled, it will expose additional data fields. HxResponseTrigger
is now a simple struct containing anTriggerMode
and aVec<HxEvent>
. There are several methods to make constructing these easier:HxResponseTrigger::normal
,HxResponseTrigger::after_settle
, andHxResponseTrigger::after_swap
.- The
HxCurrentUrl
extractor now returns anOption<axum::http::Uri
instead of aString
. If the Uri cannot be parsed, it will returnNone
. - All Uri-related responders now impl
TryFrom<&str>
. HxError::Serialization
has been renamed toHxError::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
, andhttp
crates.