v0.5.0
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
HxEventinstead of aString | HxEvent. When theserdeflag is enabled, it will expose additional data fields. HxResponseTriggeris now a simple struct containing anTriggerModeand aVec<HxEvent>. There are several methods to make constructing these easier:HxResponseTrigger::normal,HxResponseTrigger::after_settle, andHxResponseTrigger::after_swap.- The
HxCurrentUrlextractor now returns anOption<axum::http::Uriinstead of aString. If the Uri cannot be parsed, it will returnNone. - All Uri-related responders now impl
TryFrom<&str>. HxError::Serializationhas 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
axumout for the
axum-core,async-trait, andhttpcrates.