Update dependency fastapi to v0.118.3 - autoclosed
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| fastapi (changelog) | dependencies | minor |
0.115.14 -> 0.118.3
|
Release Notes
fastapi/fastapi (fastapi)
v0.118.3
Upgrades
-
⬆️ Add support for Python 3.14. MR #14165 by @svlandeg.
v0.118.2
Fixes
-
🐛 Fix tagged discriminated union not recognized as body field. MR #12942 by @frankie567.
Internal
-
⬆️ Bump astral-sh/setup-uv from 6 to 7. MR #14167 by @dependabot[bot].
v0.118.1
Upgrades
- 👽️ Ensure compatibility with Pydantic 2.12.0. MR #14036 by @cjwatson.
Docs
-
📝 Add External Link: Getting started with logging in FastAPI. MR #14152 by @itssimon.
Translations
-
🔨 Add Russian translations LLM prompt. MR #13936 by @tiangolo. -
🌐 Sync German docs. MR #14149 by @nilslindemann. -
🌐 Add Russian translations for missing pages (LLM-generated). MR #14135 by @YuriiMotov. -
🌐 Update Russian translations for existing pages (LLM-generated). MR #14123 by @YuriiMotov. -
🌐 Remove configuration files for inactive translations. MR #14130 by @tiangolo.
Internal
-
🔨 Move local coverage logic to its own script. MR #14166 by @tiangolo. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #14161 by @pre-commit-ci[bot]. -
⬆️ Bump griffe-typingdoc from 0.2.8 to 0.2.9. MR #14144 by @dependabot[bot]. -
⬆️ Bump mkdocs-macros-plugin from 1.3.9 to 1.4.0. MR #14145 by @dependabot[bot]. -
⬆️ Bump markdown-include-variants from 0.0.4 to 0.0.5. MR #14146 by @dependabot[bot]. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #14126 by @pre-commit-ci[bot]. -
👥 Update FastAPI GitHub topic repositories. MR #14150 by @tiangolo. -
👥 Update FastAPI People - Sponsors. MR #14139 by @tiangolo. -
👥 Update FastAPI People - Contributors and Translators. MR #14138 by @tiangolo. -
⬆️ Bump ruff from 0.12.7 to 0.13.2. MR #14147 by @dependabot[bot]. -
⬆️ Bump sqlmodel from 0.0.24 to 0.0.25. MR #14143 by @dependabot[bot]. -
⬆️ Bump tiangolo/issue-manager from 0.5.1 to 0.6.0. MR #14148 by @dependabot[bot]. -
👷 Update docs previews comment, single comment, add failure status. MR #14129 by @tiangolo. -
🔨 Modifymkdocs_hooks.pyto addtitleto page's metadata (remove permalinks in social cards). MR #14125 by @YuriiMotov.
v0.118.0
0.118.0
Fixes
-
🐛 Fix support forStreamingResponses with dependencies withyieldorUploadFiles, close after the response is done. MR #14099 by @tiangolo.
Before FastAPI 0.118.0, if you used a dependency with yield, it would run the exit code after the path operation function returned but right before sending the response.
This change also meant that if you returned a StreamingResponse, the exit code of the dependency with yield would have been already run.
For example, if you had a database session in a dependency with yield, the StreamingResponse would not be able to use that session while streaming data because the session would have already been closed in the exit code after yield.
This behavior was reverted in 0.118.0, to make the exit code after yield be executed after the response is sent.
You can read more about it in the docs for Advanced Dependencies - Dependencies with yield, HTTPException, except and Background Tasks. Including what you could do if you wanted to close a database session earlier, before returning the response to the client.
Docs
-
📝 Updatetutorial/security/oauth2-jwt/to usepwdlibwith Argon2 instead ofpasslib. MR #13917 by @Neizvestnyj. -
✏️ Fix typos in OAuth2 password request forms. MR #14112 by @alv2017. -
📝 Update contributing guidelines for installing requirements. MR #14095 by @alejsdev.
Translations
-
🌐 Sync German docs. MR #14098 by @nilslindemann.
Internal
-
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #14103 by @pre-commit-ci[bot]. -
♻️ Refactor sponsor image handling. MR #14102 by @alejsdev. -
🐛 Fix sponsor display issue by hiding element on image error. MR #14097 by @alejsdev. -
🐛 Hide sponsor badge when sponsor image is not displayed. MR #14096 by @alejsdev.
v0.117.1
Fixes
-
🐛 Fix validation error whenFileis declared afterFormparameter. MR #11194 by @thomasleveil.
v0.117.0
Features
-
✨ AllowNoneas return type for bodiless responses. MR #9425 by @hofrob. -
✨ Allow array values for OpenAPI schematypefield. MR #13639 by @sammasak. -
✨ Add OpenAPIexternal_docsparameter toFastAPI. MR #13713 by @cmtoro.
Fixes
-
⚡ Fixdefault_factoryfor response model field with Pydantic V1. MR #9704 by @vvanglro. -
🐛 Fix inconsistent processing of model docstring formfeed char with Pydantic V1. MR #6039 by @MaxwellPayne. -
🐛 Fixjsonable_encoderaltersjson_encodersof Pydantic v1 objects. MR #4972 by @aboubacs. -
🐛 Reenableallow_arbitrary_typeswhen only 1 argument is used on the API endpoint. MR #13694 by @rmawatson. -
🐛 Fixinspect.getcoroutinefunction()can break testing withunittest.mock.patch(). MR #14022 by @secrett2633.
Refactors
-
♻️ Createdependency-cachedict insolve_dependenciesonly ifNone(don't re-create if empty). MR #13689 by @bokshitsky. -
✅ Enable test case for duplicated headers intest_tutorial/test_header_params/test_tutorial003.py. MR #13864 by @Amogha-ark. -
📌 Pinhttpxto>=0.23.0,<1.0.0. MR #14086 by @YuriiMotov.
Docs
-
📝 Add note about Cookies and JavaScript ontutorial/cookie-params.md. MR #13510 by @Kludex. -
📝 Remove outdated formatting frompath-params-numeric-validations.mdfor languagesen,esanduk.. MR #14059 by @svlandeg. -
📝 Fix and Improve English Documentation. MR #14048 by @nilslindemann.
Translations
-
📝 Update prompts and German translation. MR #14015 by @nilslindemann.
Internal
-
✅ Simplify tests for response_model. MR #14062 by @dynamicy. -
🚨 Install pydantic.mypy plugin. MR #14081 by @svlandeg. -
✅ Add LLM test file. MR #14049 by @nilslindemann. -
🔨 Update translations script. MR #13968 by @YuriiMotov. -
🛠️ Updatedocs.py generate-readmecommand to remove permalinks from headers. MR #14055 by @YuriiMotov. -
⬆️ Update mypy to 1.14.1. MR #12970 by @tamird.
v0.116.2
Upgrades
-
⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0. MR #14077 by @musicinmybrain.
Docs
-
📝 Add documentation for Behind a Proxy - Proxy Forwarded Headers, using--forwarded-allow-ips="*". MR #14028 by @tiangolo. -
📝 Add deprecation info block aboutdict()indocs/tutorial/body.md. MR #13906 by @jomkv. -
📝 Fix Twitter to be X (Twitter) everywhere in documentation. MR #13809 by @valentinDruzhinin. -
🐛 Prevent scroll-to-top on restart/fast buttons intermynal.js. MR #13714 by @Ashish-Pandey62. -
📝 Update testing events documentation. MR #13259 by @z0z0r4. -
📝 Remove obsoleteurlfield in error responses in docs. MR #13655 by @Taoup. -
📝 Bring thescopeclaim in line with the standard indocs_src/security/tutorial005.py. MR #11189 by @DurandA. -
📝 Update TrustedHostMiddleware Documentation. MR #11441 by @soulee-dev. -
📝 Remove links to site callbackhell.com that doesn't exist anymore. MR #14006 by @dennybiasiolli. -
📝 Add permalinks to headers in English docs. MR #13993 by @YuriiMotov. -
📝 Updatedocs/en/docs/advanced/generate-clients.md. MR #13793 by @mrlubos. -
📝 Add discussion template for new language translation requests. MR #13535 by @alejsdev.
Translations
-
📝 Fix code include for Pydantic models example indocs/zh/docs/python-types.md. MR #13997 by @anfreshman. -
🌐 Update Portuguese Translation fordocs/pt/docs/async.md. MR #13863 by @EdmilsonRodrigues. -
📝 Fix highlight line indocs/ja/docs/tutorial/body.md. MR #13927 by @KoyoMiyazaki. -
🌐 Add Persian translation fordocs/fa/docs/environment-variables.md. MR #13923 by @Mohammad222PR. -
🌐 Add Persian translation fordocs/fa/docs/python-types.md. MR #13524 by @Mohammad222PR. -
🌐 Update Portuguese Translation fordocs/pt/docs/project-generation.md. MR #13875 by @EdmilsonRodrigues. -
🌐 Add Persian translation fordocs/fa/docs/async.md. MR #13541 by @Mohammad222PR. -
🌐 Add Bangali translation fordocs/bn/about/index.md. MR #13882 by @sajjadrahman56.
Internal
-
⬆️ Bump pyjwt from 2.8.0 to 2.9.0. MR #13960 by @dependabot[bot]. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #14080 by @pre-commit-ci[bot]. -
⬆️ Bump actions/setup-python from 5 to 6. MR #14042 by @dependabot[bot]. -
⬆️ Bump actions/labeler from 5 to 6. MR #14046 by @dependabot[bot]. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #14056 by @pre-commit-ci[bot]. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #14035 by @pre-commit-ci[bot]. -
⬆️ Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0. MR #14041 by @dependabot[bot]. -
👥 Update FastAPI People - Contributors and Translators. MR #14029 by @tiangolo. -
👥 Update FastAPI People - Sponsors. MR #14030 by @tiangolo. -
👥 Update FastAPI GitHub topic repositories. MR #14031 by @tiangolo. -
👥 Update FastAPI People - Experts. MR #14034 by @tiangolo. -
👷 Detect and label merge conflicts on MRs automatically. MR #14045 by @svlandeg. -
🔧 Update sponsors: remove Platform.sh. MR #14027 by @tiangolo. -
🔧 Update sponsors: remove Mobb. MR #14026 by @tiangolo. -
🛠️ Updatemkdocs_hooksto handle headers with permalinks when building docs. MR #14025 by @tiangolo. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #14016 by @pre-commit-ci[bot]. -
⬆️ Bumpmkdocs-macros-pluginfrom 1.3.7 to 1.3.9. MR #14003 by @YuriiMotov. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #13999 by @pre-commit-ci[bot]. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #13983 by @pre-commit-ci[bot]. -
⬆️ Bump actions/checkout from 4 to 5. MR #13986 by @dependabot[bot]. -
🔧 Update Speakeasy sponsor graphic. MR #13971 by @chailandau. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #13969 by @pre-commit-ci[bot]. -
⬆️ Bump actions/download-artifact from 4 to 5. MR #13975 by @dependabot[bot]. -
👥 Update FastAPI People - Experts. MR #13963 by @tiangolo. -
⬆️ Bump ruff from 0.11.2 to 0.12.7. MR #13957 by @dependabot[bot]. -
⬆️ Bump cairosvg from 2.7.1 to 2.8.2. MR #13959 by @dependabot[bot]. -
⬆️ Bump pydantic-ai from 0.0.30 to 0.4.10. MR #13958 by @dependabot[bot]. -
👥 Update FastAPI GitHub topic repositories. MR #13962 by @tiangolo. -
⬆️ Bump mkdocs-material from 9.6.15 to 9.6.16. MR #13961 by @dependabot[bot]. -
⬆️ Bump tiangolo/latest-changes from 0.3.2 to 0.4.0. MR #13952 by @dependabot[bot]. -
👥 Update FastAPI People - Sponsors. MR #13956 by @tiangolo. -
👥 Update FastAPI People - Contributors and Translators. MR #13955 by @tiangolo. -
🔧 Update sponsors: Databento link and sponsors_badge data. MR #13954 by @tiangolo. -
🔧 Update sponsors: Add Railway. MR #13953 by @tiangolo. -
⚒️ Update translate script, update prompt to minimize generated diff. MR #13947 by @YuriiMotov. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #13943 by @pre-commit-ci[bot]. -
⚒️ Tweak translate script and CI. MR #13939 by @tiangolo. -
👷 Add CI to translate with LLMs. MR #13937 by @tiangolo. -
⚒️ Update translate script, show and update outdated translations. MR #13933 by @tiangolo. -
🔨 Refactor translate script with extra feedback (prints). MR #13932 by @tiangolo. -
🔨 Update translations script to remove old (removed) files. MR #13928 by @tiangolo. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #13894 by @pre-commit-ci[bot]. -
⬆️ Update httpx requirement to >=0.23.0,<0.29.0. MR #13114 by @yan12125. -
🔧 Update sponsors: Add Mobb. MR #13916 by @tiangolo. -
👥 Update FastAPI People - Experts. MR #13889 by @tiangolo. -
🔨 Update FastAPI People sleep interval, use external settings. MR #13888 by @tiangolo.
v0.116.1
Upgrades
-
⬆️ Upgrade Starlette supported version range to>=0.40.0,<0.48.0. MR #13884 by @tiangolo.
Docs
-
📝 Add notification about impending changes in Translations todocs/en/docs/contributing.md. MR #13886 by @YuriiMotov.
Internal
-
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #13871 by @pre-commit-ci[bot].
v0.116.0
Features
-
✨ Add support for deploying to FastAPI Cloud withfastapi deploy. MR #13870 by @tiangolo.
Installing fastapi[standard] now includes fastapi-cloud-cli.
This will allow you to deploy to FastAPI Cloud with the fastapi deploy command.
If you want to install fastapi with the standard dependencies but without fastapi-cloud-cli, you can install instead fastapi[standard-no-fastapi-cloud-cli].
Translations
-
🌐 Add Russian translation fordocs/ru/docs/advanced/response-directly.md. MR #13801 by @NavesSapnis. -
🌐 Add Russian translation fordocs/ru/docs/advanced/additional-status-codes.md. MR #13799 by @NavesSapnis. -
🌐 Add Ukrainian translation fordocs/uk/docs/tutorial/body-updates.md. MR #13804 by @valentinDruzhinin.
Internal
-
⬆️ Bump pillow from 11.1.0 to 11.3.0. MR #13852 by @dependabot[bot]. -
👥 Update FastAPI People - Sponsors. MR #13846 by @tiangolo. -
👥 Update FastAPI GitHub topic repositories. MR #13848 by @tiangolo. -
⬆️ Bump mkdocs-material from 9.6.1 to 9.6.15. MR #13849 by @dependabot[bot]. -
⬆️ [pre-commit.ci] pre-commit autoupdate. MR #13843 by @pre-commit-ci[bot]. -
👥 Update FastAPI People - Contributors and Translators. MR #13845 by @tiangolo.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.