Breaking Changes - Upgrade
This release adds support for Trio. ✨
It upgrades the version of Starlette to 0.15.0
, now based on AnyIO, and the internal async components in FastAPI are now based on AnyIO as well, making it compatible with both asyncio and Trio.
You can read the docs about running FastAPI with Trio using Hypercorn.
This release also removes graphene
as an optional dependency for GraphQL. If you need to work with GraphQL, the recommended library now is Strawberry. You can read the new FastAPI with GraphQL docs.
Features
- ✨ Add support for Trio via AnyIO, upgrading Starlette to
0.15.0
. PR #3372 by @graingert. - ➖ Remove
graphene
as an optional dependency. PR #4007 by @tiangolo.
Docs
- 📝 Add docs for using Trio with Hypercorn. PR #4014 by @tiangolo.
- ✏ Fix typos in Deployment Guide. PR #3975 by @ghandic.
- 📝 Update docs with pip install calls when using extras with brackets, use quotes for compatibility with Zsh. PR #3131 by @tomwei7.
- 📝 Add external link to article: Deploying ML Models as API Using FastAPI and Heroku. PR #3904 by @kaustubhgupta.
- ✏ Fix typo in file paths in
docs/en/docs/contributing.md
. PR #3752 by @NinaHwang. - ✏ Fix a typo in
docs/en/docs/advanced/path-operation-advanced-configuration.md
anddocs/en/docs/release-notes.md
. PR #3750 by @saintmalik. - ✏️ Add a missing comma in the security tutorial. PR #3564 by @jalvaradosegura.
- ✏ Fix typo in
docs/en/docs/help-fastapi.md
. PR #3760 by @jaystone776. - ✏ Fix typo about file path in
docs/en/docs/tutorial/bigger-applications.md
. PR #3285 by @HolyDorus. - ✏ Re-word to clarify test client in
docs/en/docs/tutorial/testing.md
. PR #3382 by @Bharat123rox. - 📝 Fix incorrect highlighted code. PR #3325 by @paxcodes.
- 📝 Add external link to article: How-to deploy FastAPI app to Heroku. PR #3241 by @Jarmos-san.
- ✏ Fix typo (mistranslation) in
docs/en/docs/advanced/templates.md
. PR #3211 by @oerpli. - 📝 Remove note about (now supported) feature from Swagger UI in
docs/en/docs/tutorial/request-files.md
. PR #2803 by @gsganden. - ✏ Fix typo re-word in
docs/tutorial/handling-errors.md
. PR #2700 by @graue70.
Translations
- 🌐 Initialize Azerbaijani translations. PR #3941 by @madatbay.
- 🌐 Add Turkish translation for
docs/fastapi-people.md
. PR #3848 by @BilalAlpaslan.
Internal
- 📝 Add supported Python versions badge. PR #2794 by @hramezani.
- ✏ Fix link in Japanese docs for
docs/ja/docs/deployment/docker.md
. PR #3245 by @utamori. - 🔧 Correct DeprecationWarning config and comment in pytest settings. PR #4008 by @graingert.
- 🔧 Swap light/dark theme button icon. PR #3246 by @eddsalkield.
- 🔧 Lint only in Python 3.7 and above. PR #4006 by @tiangolo.
- 🔧 Add GitHub Action notify-translations config for Azerbaijani. PR #3995 by @tiangolo.