This release is mainly internal refactors, it shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. There are a few bigger releases coming right after. 🚀
Refactors
- ♻️ Refactor internal
check_file_field()
, rename toensure_multipart_is_installed()
to clarify its purpose. PR #12106 by @tiangolo. - ♻️ Rename internal
create_response_field()
tocreate_model_field()
as it's used for more than response models. PR #12103 by @tiangolo. - ♻️ Refactor and simplify internal data from
solve_dependencies()
using dataclasses. PR #12100 by @tiangolo. - ♻️ Refactor and simplify internal
analyze_param()
to structure data with dataclasses instead of tuple. PR #12099 by @tiangolo. - ♻️ Refactor and simplify dependencies data structures with dataclasses. PR #12098 by @tiangolo.
Docs
- 📝 Add External Link: Techniques and applications of SQLAlchemy global filters in FastAPI. PR #12109 by @TheShubhendra.
- 📝 Add note about
time.perf_counter()
in middlewares. PR #12095 by @tiangolo. - 📝 Tweak middleware code sample
time.time()
totime.perf_counter()
. PR #11957 by @domdent. - 🔧 Update sponsors: Coherence. PR #12093 by @tiangolo.
- 📝 Fix async test example not to trigger DeprecationWarning. PR #12084 by @marcinsulikowski.
- 📝 Update
docs_src/path_params_numeric_validations/tutorial006.py
. PR #11478 by @MuhammadAshiqAmeer. - 📝 Update comma in
docs/en/docs/async.md
. PR #12062 by @Alec-Gillis. - 📝 Update docs about serving FastAPI: ASGI servers, Docker containers, etc.. PR #12069 by @tiangolo.
- 📝 Clarify
response_class
parameter, validations, and returning a response directly. PR #12067 by @tiangolo. - 📝 Fix minor typos and issues in the documentation. PR #12063 by @svlandeg.
- 📝 Add note in Docker docs about ensuring graceful shutdowns and lifespan events with
CMD
exec form. PR #11960 by @GPla.
Translations
- 🌐 Add Dutch translation for
docs/nl/docs/features.md
. PR #12101 by @maxscheijen. - 🌐 Add Portuguese translation for
docs/pt/docs/advanced/testing-events.md
. PR #12108 by @ceb10n. - 🌐 Add Portuguese translation for
docs/pt/docs/advanced/security/index.md
. PR #12114 by @ceb10n. - 🌐 Add Dutch translation for
docs/nl/docs/index.md
. PR #12042 by @svlandeg. - 🌐 Update Chinese translation for
docs/zh/docs/how-to/index.md
. PR #12070 by @synthpop123.
Internal
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #12115 by @pre-commit-ci[bot].
- ⬆ Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1. PR #12120 by @dependabot[bot].
- ⬆ Bump pillow from 10.3.0 to 10.4.0. PR #12105 by @dependabot[bot].
- 💚 Set
include-hidden-files
toTrue
when using theupload-artifact
GH action. PR #12118 by @svlandeg. - ⬆ Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.0. PR #12112 by @dependabot[bot].
- 🔧 Update sponsors link: Coherence. PR #12097 by @tiangolo.
- 🔧 Update labeler config to handle sponsorships data. PR #12096 by @tiangolo.
- 🔧 Update sponsors, remove Kong. PR #12085 by @tiangolo.
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #12076 by @pre-commit-ci[bot].
- 👷 Update
latest-changes
GitHub Action. PR #12073 by @tiangolo.