From 1a78e093ed5336992003680348ec05dacb61b997 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Sat, 25 Nov 2023 20:44:07 +0100 Subject: [PATCH] Apply changelog changes from 0.6 branch to main (#2353) --- axum-core/CHANGELOG.md | 8 +++++++- axum-extra/CHANGELOG.md | 26 ++++++++++++++++++++++++-- axum-macros/CHANGELOG.md | 9 +++++++-- axum/CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++++-- 4 files changed, 72 insertions(+), 7 deletions(-) diff --git a/axum-core/CHANGELOG.md b/axum-core/CHANGELOG.md index f17c2250ae..514deb12f5 100644 --- a/axum-core/CHANGELOG.md +++ b/axum-core/CHANGELOG.md @@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Unreleased -- None. +- **added:** Implement `IntoResponse` for `(R,) where R: IntoResponse` ([#2143]) +- **fixed:** Fix broken docs links ([#2164]) +- **fixed:** Clearly document applying `DefaultBodyLimit` to individual routes ([#2157]) + +[#2143]: https://github.com/tokio-rs/axum/pull/2143 +[#2164]: https://github.com/tokio-rs/axum/pull/2164 +[#2157]: https://github.com/tokio-rs/axum/pull/2157 # 0.3.4 (11. April, 2023) diff --git a/axum-extra/CHANGELOG.md b/axum-extra/CHANGELOG.md index dec8f144f9..161145ff04 100644 --- a/axum-extra/CHANGELOG.md +++ b/axum-extra/CHANGELOG.md @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning]. - **added:** `OptionalQuery` extractor ([#2310]) - **added:** `TypedHeader` which used to be in `axum` ([#1850]) -- **added:** `Clone` implementation for `ErasedJson` ([#2142]) - **breaking:** Update to prost 0.12. Used for the `Protobuf` extractor - **breaking:** Make `tokio` an optional dependency - **breaking:** Upgrade `cookie` dependency to 0.18 ([#2343]) @@ -17,11 +16,34 @@ and this project adheres to [Semantic Versioning]. now accept any `T: Into` ([#2348]) [#1850]: https://github.com/tokio-rs/axum/pull/1850 -[#2142]: https://github.com/tokio-rs/axum/pull/2142 [#2310]: https://github.com/tokio-rs/axum/pull/2310 [#2343]: https://github.com/tokio-rs/axum/pull/2343 [#2348]: https://github.com/tokio-rs/axum/pull/2348 +# 0.8.0 (16. September, 2023) + +- **breaking:** Update to prost 0.12. Used for the `Protobuf` extractor ([#2224]) + +[#2224]: https://github.com/tokio-rs/axum/pull/2224 + +# 0.7.7 (03. August, 2023) + +- **added:** `Clone` implementation for `ErasedJson` ([#2142]) + +[#2142]: https://github.com/tokio-rs/axum/pull/2142 + +# 0.7.6 (02. August, 2023) + +- **fixed:** Remove unused dependency ([#2135]) + +[#2135]: https://github.com/tokio-rs/axum/pull/2135 + +# 0.7.5 (17. July, 2023) + +- **fixed:** Remove explicit auto deref from `PrivateCookieJar` example ([#2028]) + +[#2028]: https://github.com/tokio-rs/axum/pull/2028 + # 0.7.4 (18. April, 2023) - **added:** Add `Html` response type ([#1921]) diff --git a/axum-macros/CHANGELOG.md b/axum-macros/CHANGELOG.md index 5155311704..32f36d00da 100644 --- a/axum-macros/CHANGELOG.md +++ b/axum-macros/CHANGELOG.md @@ -9,9 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **breaking:** `#[debug_handler]` no longer accepts a `body = _` argument. The body type is always `axum::body::Body` ([#1751]) -- **fixed:** Allow unreachable code in `#[debug_handler]` ([#2014]) +- **fixed:** Fix `rust-version` specific in Cargo.toml ([#2204]) +[#2204]: https://github.com/tokio-rs/axum/pull/2204 [#1751]: https://github.com/tokio-rs/axum/pull/1751 + +# 0.3.8 (17. July, 2023) + +- **fixed:** Allow unreachable code in `#[debug_handler]` ([#2014]) + [#2014]: https://github.com/tokio-rs/axum/pull/2014 # 0.3.7 (22. March, 2023) @@ -28,7 +34,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 request-consuming extractors ([#1826]) [#1826]: https://github.com/tokio-rs/axum/pull/1826 -[#1751]: https://github.com/tokio-rs/axum/pull/1751 # 0.3.5 (03. March, 2023) diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index 62890aad9d..56e3dd4822 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -60,9 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **fixed:** Fix bugs around merging routers with nested fallbacks ([#2096]) - **fixed:** Fix `.source()` of composite rejections ([#2030]) - **fixed:** Allow unreachable code in `#[debug_handler]` ([#2014]) -- **change:** Update tokio-tungstenite to 0.19 ([#2021]) - **change:** axum's MSRV is now 1.66 ([#1882]) -- **added:** Implement `Handler` for `T: IntoResponse` ([#2140]) - **added:** Implement `IntoResponse` for `(R,) where R: IntoResponse` ([#2143]) - **changed:** For SSE, add space between field and value for compatibility ([#2149]) - **added:** Add `NestedPath` extractor ([#1924]) @@ -72,6 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **added:** Add `axum::Json::from_bytes` ([#2244]) - **added:** Implement `FromRequestParts` for `http::request::Parts` ([#2328]) - **added:** Implement `FromRequestParts` for `http::Extensions` ([#2328]) +- **fixed:** Clearly document applying `DefaultBodyLimit` to individual routes ([#2157]) [#1664]: https://github.com/tokio-rs/axum/pull/1664 [#1751]: https://github.com/tokio-rs/axum/pull/1751 @@ -93,10 +92,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#2140]: https://github.com/tokio-rs/axum/pull/2140 [#2143]: https://github.com/tokio-rs/axum/pull/2143 [#2149]: https://github.com/tokio-rs/axum/pull/2149 +[#2157]: https://github.com/tokio-rs/axum/pull/2157 [#2235]: https://github.com/tokio-rs/axum/pull/2235 [#2244]: https://github.com/tokio-rs/axum/pull/2244 [#2328]: https://github.com/tokio-rs/axum/pull/2328 +# 0.6.20 (03. August, 2023) + +- **added:** `WebSocketUpgrade::write_buffer_size` and `WebSocketUpgrade::max_write_buffer_size` +- **changed:** Deprecate `WebSocketUpgrade::max_send_queue` +- **change:** Update tokio-tungstenite to 0.20 +- **added:** Implement `Handler` for `T: IntoResponse` ([#2140]) + +[#2140]: https://github.com/tokio-rs/axum/pull/2140 + +# 0.6.19 (17. July, 2023) + +- **added:** Add `axum::extract::Query::try_from_uri` ([#2058]) +- **added:** Implement `IntoResponse` for `Box` and `Box<[u8]>` ([#2035]) +- **fixed:** Fix bugs around merging routers with nested fallbacks ([#2096]) +- **fixed:** Fix `.source()` of composite rejections ([#2030]) +- **fixed:** Allow unreachable code in `#[debug_handler]` ([#2014]) +- **change:** Update tokio-tungstenite to 0.19 ([#2021]) +- **change:** axum's MSRV is now 1.63 ([#2021]) + +[#2014]: https://github.com/tokio-rs/axum/pull/2014 +[#2021]: https://github.com/tokio-rs/axum/pull/2021 +[#2030]: https://github.com/tokio-rs/axum/pull/2030 +[#2035]: https://github.com/tokio-rs/axum/pull/2035 +[#2058]: https://github.com/tokio-rs/axum/pull/2058 +[#2096]: https://github.com/tokio-rs/axum/pull/2096 + +# 0.6.18 (30. April, 2023) + +- **fixed:** Don't remove the `Sec-WebSocket-Key` header in `WebSocketUpgrade` ([#1972]) + +[#1972]: https://github.com/tokio-rs/axum/pull/1972 + # 0.6.17 (25. April, 2023) - **fixed:** Fix fallbacks causing a panic on `CONNECT` requests ([#1958])