mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-11 17:30:44 +01:00
Update changelogs
This commit is contained in:
parent
1f2c649804
commit
7001f69b12
3 changed files with 15 additions and 0 deletions
|
@ -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<T>` 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
|
||||
|
|
|
@ -7,11 +7,15 @@ and this project adheres to [Semantic Versioning].
|
|||
|
||||
# Unreleased
|
||||
|
||||
- **breaking:** `Option<Query<T>>` no longer swallows all error conditions, instead rejecting the
|
||||
request in many cases; see its documentation for details ([#2475])
|
||||
- **changed:** Deprecated `OptionalPath<T>` and `OptionalQuery<T>` ([#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
|
||||
|
||||
|
|
|
@ -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<Path<T>>` and `Option<Query<T>>` 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
|
||||
|
|
Loading…
Reference in a new issue