From 7001f69b12630a050f9ea9416f254f855ccc42db Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 30 Nov 2024 17:58:27 +0100 Subject: [PATCH] Update changelogs --- axum-core/CHANGELOG.md | 8 ++++++++ axum-extra/CHANGELOG.md | 4 ++++ axum/CHANGELOG.md | 3 +++ 3 files changed, 15 insertions(+) diff --git a/axum-core/CHANGELOG.md b/axum-core/CHANGELOG.md index f2932a42e4..be103bfe17 100644 --- a/axum-core/CHANGELOG.md +++ b/axum-core/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# Unreleased + +- **breaking:**: `Option` as an extractor now requires `T` to implement the + new trait `OptionalFromRequest` (if used as the last extractor) or + `OptionalFromRequestParts` (other extractors) ([#2475]) + +[#2475]: https://github.com/tokio-rs/axum/pull/2475 + # 0.5.0 ## alpha.1 diff --git a/axum-extra/CHANGELOG.md b/axum-extra/CHANGELOG.md index 327e3edbb4..d6ba5f3d6a 100644 --- a/axum-extra/CHANGELOG.md +++ b/axum-extra/CHANGELOG.md @@ -7,11 +7,15 @@ and this project adheres to [Semantic Versioning]. # Unreleased +- **breaking:** `Option>` no longer swallows all error conditions, instead rejecting the + request in many cases; see its documentation for details ([#2475]) +- **changed:** Deprecated `OptionalPath` and `OptionalQuery` ([#2475]) - **fixed:** `Host` extractor includes port number when parsing authority ([#2242]) - **added:** Add `RouterExt::typed_connect` ([#2961]) - **added:** Add `json!` for easy construction of JSON responses ([#2962]) [#2242]: https://github.com/tokio-rs/axum/pull/2242 +[#2475]: https://github.com/tokio-rs/axum/pull/2475 [#2961]: https://github.com/tokio-rs/axum/pull/2961 [#2962]: https://github.com/tokio-rs/axum/pull/2962 diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index ce98bca697..a869350130 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -20,10 +20,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 This allows middleware to add bodies to requests without needing to manually set `content-length` ([#2897]) - **breaking:** Remove `WebSocket::close`. Users should explicitly send close messages themselves. ([#2974]) +- **breaking:** `Option>` and `Option>` no longer swallow all error conditions, + instead rejecting the request in many cases; see their documentation for details ([#2475]) - **added:** Extend `FailedToDeserializePathParams::kind` enum with (`ErrorKind::DeserializeError`) This new variant captures both `key`, `value`, and `message` from named path parameters parse errors, instead of only deserialization error message in `ErrorKind::Message`. ([#2720]) +[#2475]: https://github.com/tokio-rs/axum/pull/2475 [#2897]: https://github.com/tokio-rs/axum/pull/2897 [#2903]: https://github.com/tokio-rs/axum/pull/2903 [#2894]: https://github.com/tokio-rs/axum/pull/2894