]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update release notes
authorSebastián Ramírez <tiangolo@gmail.com>
Fri, 10 Feb 2023 14:32:23 +0000 (15:32 +0100)
committerSebastián Ramírez <tiangolo@gmail.com>
Fri, 10 Feb 2023 14:32:23 +0000 (15:32 +0100)
docs/en/docs/release-notes.md

index 926f6be6254d0e1461f84caf7bb06b817ccdbde8..fa6aafe998580689c1f2b928d4dd5f4970a3ecd6 100644 (file)
@@ -2,7 +2,11 @@
 
 ## Latest Changes
 
+### Upgrades
+
 * ⬆️ Upgrade Starlette version to `0.24.0` and refactor internals for compatibility. PR [#5985](https://github.com/tiangolo/fastapi/pull/5985) by [@tiangolo](https://github.com/tiangolo).
+    * This can solve nuanced errors when using middlewares. Before Starlette `0.24.0`, a new instance of each middleware class would be created when a new middleware was added. That normally was not a problem, unless the middleware class expected to be created only once, with only one instance, that happened in some cases. This upgrade would solve those cases (thanks [@adriangb](https://github.com/adriangb)! Starlette PR [#2017](https://github.com/encode/starlette/pull/2017)). Now the middleware class instances are created once, right before the first request (the first time the app is called).
+    * If you depended on that previous behavior, you might need to update your code. As always, make sure your tests pass before merging the upgrade.
 
 ## 0.90.1