mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
* Easily convert typed paths into URIs `#[derive(TypedPath)]` will now also generate `TryFrom<_> for Uri` for easily converting paths into URIs for use with `Redirect` and friends. Fixes https://github.com/tokio-rs/axum/issues/789 * Use a method on the `TypedPath` trait to convert to `Uri` * fix doc ref * Update changelogs
40 lines
1.4 KiB
Markdown
40 lines
1.4 KiB
Markdown
# Changelog
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
The format is based on [Keep a Changelog],
|
|
and this project adheres to [Semantic Versioning].
|
|
|
|
# Unreleased
|
|
|
|
- **added:** Add `TypedPath::to_uri` for converting the path into a `Uri` ([#790])
|
|
- **added:** Add type safe routing. See `axum_extra::routing::typed` for more details ([#756])
|
|
- **breaking:** `CachedRejection` has been removed ([#699])
|
|
- **breaking:** `<Cached<T> as FromRequest>::Rejection` is now `T::Rejection`. ([#699])
|
|
- **breaking:** `middleware::from_fn` has been moved into the main axum crate ([#719])
|
|
|
|
[#666]: https://github.com/tokio-rs/axum/pull/666
|
|
[#699]: https://github.com/tokio-rs/axum/pull/699
|
|
[#719]: https://github.com/tokio-rs/axum/pull/719
|
|
[#756]: https://github.com/tokio-rs/axum/pull/756
|
|
[#790]: https://github.com/tokio-rs/axum/pull/790
|
|
|
|
# 0.1.2 (13. January, 2022)
|
|
|
|
- **fix:** Depend on tower with `default_features = false` ([#666])
|
|
|
|
# 0.1.1 (27. December, 2021)
|
|
|
|
- Add `middleware::from_fn` for creating middleware from async functions ([#656])
|
|
- Add support for returning pretty JSON response in `response::ErasedJson` ([#662])
|
|
|
|
[#656]: https://github.com/tokio-rs/axum/pull/656
|
|
[#662]: https://github.com/tokio-rs/axum/pull/662
|
|
|
|
# 0.1.0 (02. December, 2021)
|
|
|
|
- Initial release.
|
|
|
|
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
|
|
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
|