🚨 This is probably the last release (or one of the last releases) to support Python 3.6. 🔥
Python 3.6 reached the end-of-life and is no longer supported by Python since around a year ago.
You hopefully updated to a supported version of Python a while ago. If you haven't, you really should.
Features
- ✨ Export
WebSocketState
infastapi.websockets
. PR #4376 by @matiuszka. - ✨ Support Python internal description on Pydantic model's docstring. PR #3032 by @Kludex.
- ✨ Update
ORJSONResponse
to support nonstr
keys and serializing Numpy arrays. PR #3892 by @baby5.
Fixes
- 🐛 Allow exit code for dependencies with
yield
to always execute, by removing capacity limiter for them, to e.g. allow closing DB connections without deadlocks. PR #5122 by @adriangb. - 🐛 Fix FastAPI People GitHub Action: set HTTPX timeout for GraphQL query request. PR #5222 by @iudeen.
- 🐛 Make sure a parameter defined as required is kept required in OpenAPI even if defined as optional in another dependency. PR #4319 by @cd17822.
- 🐛 Fix support for path parameters in WebSockets. PR #3879 by @davidbrochart.
Docs
- ✏ Update Hypercorn link, now pointing to GitHub. PR #5346 by @baconfield.
- ✏ Tweak wording in
docs/en/docs/advanced/dataclasses.md
. PR #3698 by @pfackeldey. - 📝 Add note about Python 3.10
X | Y
operator in explanation about Response Models. PR #5307 by @MendyLanda. - 📝 Add link to New Relic article: "How to monitor FastAPI application performance using Python agent". PR #5260 by @sjyothi54.
- 📝 Update docs for
ORJSONResponse
with details about improving performance. PR #2615 by @falkben. - 📝 Add docs for creating a custom Response class. PR #5331 by @tiangolo.
- 📝 Add tip about using alias for form data fields. PR #5329 by @tiangolo.
Translations
- 🌐 Add Russian translation for
docs/ru/docs/features.md
. PR #5315 by @Xewus. - 🌐 Update Chinese translation for
docs/zh/docs/tutorial/request-files.md
. PR #4529 by @ASpathfinder. - 🌐 Add Chinese translation for
docs/zh/docs/tutorial/encoder.md
. PR #4969 by @Zssaer. - 🌐 Fix MkDocs file line for Portuguese translation of
background-task.md
. PR #5242 by @ComicShrimp.
Internal
- 👥 Update FastAPI People. PR #5347 by @github-actions[bot].
- ⬆ Bump dawidd6/action-download-artifact from 2.22.0 to 2.23.0. PR #5321 by @dependabot[bot].
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #5318 by @pre-commit-ci[bot].
- ✏ Fix a small code highlight line error. PR #5256 by @hjlarry.
- ♻ Internal small refactor, move
operation_id
parameter position in delete method for consistency with the code. PR #4474 by @hiel. - 🔧 Update sponsors, disable ImgWhale. PR #5338 by @tiangolo.