diff --git a/axum-core/CHANGELOG.md b/axum-core/CHANGELOG.md index b1368081..fb3f36b5 100644 --- a/axum-core/CHANGELOG.md +++ b/axum-core/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased +- **added:** Add `IntoResponseHeaders` trait ([#644]) - **breaking:** Using `HeaderMap` as an extractor will no longer remove the headers and thus they'll still be accessible to other extractors, such as `axum::extract::Json`. Instead `HeaderMap` will clone the headers. You should prefer to use `TypedHeader` to extract only the @@ -20,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The `HeadersAlreadyExtracted` variant has been removed from these rejections: - `RequestAlreadyExtracted` - `RequestPartsAlreadyExtracted` - - `>::Error` has been changed to `std::convert::Infallible`. + - `>::Rejection` has been changed to `std::convert::Infallible`. - **breaking:** `axum::http::Extensions` is no longer an extractor (ie it doesn't implement `FromRequest`). The `axum::extract::Extension` extractor is _not_ impacted by this and works the same. This change makes it harder to @@ -31,10 +32,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `RequestParts::extensions` returns `&Extensions`. - `RequestParts::extensions_mut` returns `&mut Extensions`. - `RequestAlreadyExtracted` has been removed. - - `::Error` is now `BodyAlreadyExtracted`. - - `::Error` is now `Infallible`. + - `::Rejection` is now `BodyAlreadyExtracted`. + - `::Rejection` is now `Infallible`. - `ExtensionsAlreadyExtracted` has been removed. +[#644]: https://github.com/tokio-rs/axum/pull/644 [#698]: https://github.com/tokio-rs/axum/pull/698 [#699]: https://github.com/tokio-rs/axum/pull/699 diff --git a/axum-extra/CHANGELOG.md b/axum-extra/CHANGELOG.md index 4ff725aa..beaf06a2 100644 --- a/axum-extra/CHANGELOG.md +++ b/axum-extra/CHANGELOG.md @@ -7,16 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased -- None. +- **breaking:** `CachedRejection` has been removed ([#699]) +- **breaking:** ` as FromRequest>::Rejection` is now `T::Rejection`. ([#699]) + +[#666]: https://github.com/tokio-rs/axum/pull/666 +[#699]: https://github.com/tokio-rs/axum/pull/699 # 0.1.2 (13. January, 2021) - **fix:** Depend on tower with `default_features = false` ([#666]) -- **breaking:** `CachedRejection` has been removed ([#699]) -- **breaking:** ` as FromRequest>::Error` is now `T::Rejection`. ([#699]) - -[#666]: https://github.com/tokio-rs/axum/pull/666 -[#699]: https://github.com/tokio-rs/axum/pull/699 # 0.1.1 (27. December, 2021) diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index 69912f3e..26ffa5cb 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -23,14 +23,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `RequestParts::headers` returns `&HeaderMap`. - `RequestParts::headers_mut` returns `&mut HeaderMap`. - `HeadersAlreadyExtracted` has been removed. - - The `HeadersAlreadyExtracted` removed variant has been removed from these rejections: + - The `HeadersAlreadyExtracted` variant has been removed from these rejections: - `RequestAlreadyExtracted` - `RequestPartsAlreadyExtracted` - `JsonRejection` - `FormRejection` - `ContentLengthLimitRejection` - `WebSocketUpgradeRejection` - - `>::Error` has been changed to `std::convert::Infallible`. + - `>::Rejection` has been changed to `std::convert::Infallible`. - **breaking:** `axum::http::Extensions` is no longer an extractor (ie it doesn't implement `FromRequest`). The `axum::extract::Extension` extractor is _not_ impacted by this and works the same. This change makes it harder to @@ -41,8 +41,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `RequestParts::extensions` returns `&Extensions`. - `RequestParts::extensions_mut` returns `&mut Extensions`. - `RequestAlreadyExtracted` has been removed. - - `::Error` is now `BodyAlreadyExtracted`. - - `::Error` is now `Infallible`. + - `::Rejection` is now `BodyAlreadyExtracted`. + - `::Rejection` is now `Infallible`. - `ExtensionsAlreadyExtracted` has been removed. - The `ExtensionsAlreadyExtracted` removed variant has been removed from these rejections: - `ExtensionRejection` @@ -50,9 +50,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `MatchedPathRejection` - `WebSocketUpgradeRejection` -TODO(david): make sure everything from https://github.com/tokio-rs/axum/pull/644 -is mentioned here. - [#644]: https://github.com/tokio-rs/axum/pull/644 [#665]: https://github.com/tokio-rs/axum/pull/665 [#698]: https://github.com/tokio-rs/axum/pull/698