From b22077862eb04ec49db5c7d0b81692cc237a2bd1 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Wed, 29 Jun 2022 22:20:24 +0200 Subject: [PATCH] update changelog --- axum-extra/CHANGELOG.md | 5 ++++- axum/CHANGELOG.md | 11 ++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/axum-extra/CHANGELOG.md b/axum-extra/CHANGELOG.md index 4ce07962..434d8436 100644 --- a/axum-extra/CHANGELOG.md +++ b/axum-extra/CHANGELOG.md @@ -7,7 +7,10 @@ and this project adheres to [Semantic Versioning]. # Unreleased -- None. +- **breaking:** `Resource::nest` and `Resource::nest_collection` now only + accepts `Router`s ([#1086]) + +[#1086]: https://github.com/tokio-rs/axum/pull/1086 # 0.3.5 (27. June, 2022) diff --git a/axum/CHANGELOG.md b/axum/CHANGELOG.md index 051eeeec..3855992a 100644 --- a/axum/CHANGELOG.md +++ b/axum/CHANGELOG.md @@ -12,18 +12,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **breaking:** Allow `Error: Into` for `Route::{layer, route_layer}` ([#924]) - **breaking:** `MethodRouter` now panics on overlapping routes ([#1102]) - **breaking:** `Router::nest` now only accepts `Router`s. Use - `Router::nest_service` to nest opaque services + `Router::nest_service` to nest opaque services ([#1086]) - **added:** Add `Router::nest_service` for nesting opaque services. Use this to - nest services like `tower::services::ServeDir` + nest services like `tower::services::ServeDir` ([#1086]) - **breaking:** The request `/foo/` no longer matches `/foo/*rest`. If you want - to match `/foo/` you have to add a route specifically for that + to match `/foo/` you have to add a route specifically for that ([#1086]) - **breaking:** Path params for wildcard routes no longer include the prefix `/`. e.g. `/foo.js` will match `/*filepath` with a value of `foo.js`, _not_ - `/foo.js` + `/foo.js` ([#1086]) - **fixed:** Routes like `/foo` and `/*rest` are no longer considered - overlapping. `/foo` will take priority + overlapping. `/foo` will take priority ([#1086]) [#1077]: https://github.com/tokio-rs/axum/pull/1077 +[#1086]: https://github.com/tokio-rs/axum/pull/1086 [#1102]: https://github.com/tokio-rs/axum/pull/1102 [#924]: https://github.com/tokio-rs/axum/pull/924