From: Sebastián Ramírez Date: Fri, 10 Feb 2023 14:32:23 +0000 (+0100) Subject: 📝 Update release notes X-Git-Tag: 0.91.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c05189b063ef3e33ac8cb3a41abd3b75a70ed71;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Update release notes --- diff --git a/docs/en/docs/release-notes.md b/docs/en/docs/release-notes.md index 926f6be625..fa6aafe998 100644 --- a/docs/en/docs/release-notes.md +++ b/docs/en/docs/release-notes.md @@ -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