From 391d8a744afe4329d883cc439c2a189503cbb7fe Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 2 Feb 2022 03:13:11 +0000 Subject: [PATCH] update 4.0 migratio guide --- actix-web/MIGRATION-4.0.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/actix-web/MIGRATION-4.0.md b/actix-web/MIGRATION-4.0.md index e2517015b..edf26454b 100644 --- a/actix-web/MIGRATION-4.0.md +++ b/actix-web/MIGRATION-4.0.md @@ -6,8 +6,13 @@ Headings marked with :warning: are **breaking behavioral changes** and will prob ## Table of Contents: -- [MSRV](#MSRV) -- [Module Structure](#Module-Structure) +- [MSRV](#msrv) +- [Module Structure](#module-structure) +- [`NormalizePath` Middleware :warning:](#normalizepath-middleware-warning) +- [`FromRequest` Trait](#fromrequest-trait) +- [Compression Feature Flags](#compression-feature-flags) +- [`web::Path`](#webpath) +- [Rustls](#rustls-crate-upgrade) ## MSRV @@ -17,7 +22,7 @@ The MSRV of Actix Web has been raised from 1.42 to 1.54. Lots of modules has been organized in this release. If a compile error refers to "item XYZ not found in module..." or "module XYZ not found", refer to the [documentation on docs.rs](https://docs.rs/actix-web) to to search for items' new locations. -## :warning: `NormalizePath` middleware +## `NormalizePath` Middleware :warning: The default `NormalizePath` behavior now strips trailing slashes by default. This was previously documented to be the case in v3 but the behavior now matches. The effect is that routes defined with trailing slashes will become inaccessible when using `NormalizePath::default()`. As such, calling `NormalizePath::default()` will log a warning. It is advised that the `new` or `trim` methods be used instead.