-
Notifications
You must be signed in to change notification settings - Fork 115
deps: Update dependency fastapi to v0.118.0 #582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
anubhav756
merged 1 commit into
GoogleCloudPlatform:main
from
renovate-bot:renovate/fastapi-0.x
Nov 4, 2025
Merged
deps: Update dependency fastapi to v0.118.0 #582
anubhav756
merged 1 commit into
GoogleCloudPlatform:main
from
renovate-bot:renovate/fastapi-0.x
Nov 4, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
|
/gcbrun |
6647ec4 to
e297706
Compare
Collaborator
|
/gcbrun |
e297706 to
46121f8
Compare
Collaborator
|
/gcbrun |
46121f8 to
54fd45d
Compare
Collaborator
|
/gcbrun |
54fd45d to
b3ded13
Compare
Collaborator
|
/gcbrun |
b3ded13 to
9611582
Compare
Collaborator
|
/gcbrun |
9611582 to
bf35c76
Compare
Collaborator
|
/gcbrun |
bf35c76 to
6572d8a
Compare
Collaborator
|
/gcbrun |
6572d8a to
d0705a1
Compare
Collaborator
|
/gcbrun |
anubhav756
approved these changes
Nov 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.115.0->==0.118.0Release Notes
fastapi/fastapi (fastapi)
v0.118.0Compare Source
0.118.0
Fixes
StreamingResponses with dependencies withyieldorUploadFiles, close after the response is done. PR #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 withyieldwould have been already run.For example, if you had a database session in a dependency with
yield, theStreamingResponsewould not be able to use that session while streaming data because the session would have already been closed in the exit code afteryield.This behavior was reverted in 0.118.0, to make the exit code after
yieldbe executed after the response is sent.You can read more about it in the docs for Advanced Dependencies - Dependencies with
yield,HTTPException,exceptand Background Tasks. Including what you could do if you wanted to close a database session earlier, before returning the response to the client.Docs
tutorial/security/oauth2-jwt/to usepwdlibwith Argon2 instead ofpasslib. PR #13917 by @Neizvestnyj.Translations
Internal
v0.117.1Compare Source
Fixes
Fileis declared afterFormparameter. PR #11194 by @thomasleveil.v0.117.0Compare Source
Features
Noneas return type for bodiless responses. PR #9425 by @hofrob.typefield. PR #13639 by @sammasak.external_docsparameter toFastAPI. PR #13713 by @cmtoro.Fixes
default_factoryfor response model field with Pydantic V1. PR #9704 by @vvanglro.jsonable_encoderaltersjson_encodersof Pydantic v1 objects. PR #4972 by @aboubacs.allow_arbitrary_typeswhen only 1 argument is used on the API endpoint. PR #13694 by @rmawatson.inspect.getcoroutinefunction()can break testing withunittest.mock.patch(). PR #14022 by @secrett2633.Refactors
dependency-cachedict insolve_dependenciesonly ifNone(don't re-create if empty). PR #13689 by @bokshitsky.test_tutorial/test_header_params/test_tutorial003.py. PR #13864 by @Amogha-ark.httpxto>=0.23.0,<1.0.0. PR #14086 by @YuriiMotov.Docs
tutorial/cookie-params.md. PR #13510 by @Kludex.path-params-numeric-validations.mdfor languagesen,esanduk.. PR #14059 by @svlandeg.Translations
Internal
docs.py generate-readmecommand to remove permalinks from headers. PR #14055 by @YuriiMotov.v0.116.2Compare Source
Upgrades
Docs
--forwarded-allow-ips="*". PR #14028 by @tiangolo.dict()indocs/tutorial/body.md. PR #13906 by @jomkv.termynal.js. PR #13714 by @Ashish-Pandey62.urlfield in error responses in docs. PR #13655 by @Taoup.scopeclaim in line with the standard indocs_src/security/tutorial005.py. PR #11189 by @DurandA.docs/en/docs/advanced/generate-clients.md. PR #13793 by @mrlubos.Translations
docs/zh/docs/python-types.md. PR #13997 by @anfreshman.docs/pt/docs/async.md. PR #13863 by @EdmilsonRodrigues.docs/ja/docs/tutorial/body.md. PR #13927 by @KoyoMiyazaki.docs/fa/docs/environment-variables.md. PR #13923 by @Mohammad222PR.docs/fa/docs/python-types.md. PR #13524 by @Mohammad222PR.docs/pt/docs/project-generation.md. PR #13875 by @EdmilsonRodrigues.docs/fa/docs/async.md. PR #13541 by @Mohammad222PR.docs/bn/about/index.md. PR #13882 by @sajjadrahman56.Internal
mkdocs_hooksto handle headers with permalinks when building docs. PR #14025 by @tiangolo.mkdocs-macros-pluginfrom 1.3.7 to 1.3.9. PR #14003 by @YuriiMotov.v0.116.1Compare Source
Upgrades
>=0.40.0,<0.48.0. PR #13884 by @tiangolo.Docs
docs/en/docs/contributing.md. PR #13886 by @YuriiMotov.Internal
v0.116.0Compare Source
Features
fastapi deploy. PR #13870 by @tiangolo.Installing
fastapi[standard]now includesfastapi-cloud-cli.This will allow you to deploy to FastAPI Cloud with the
fastapi deploycommand.If you want to install
fastapiwith the standard dependencies but withoutfastapi-cloud-cli, you can install insteadfastapi[standard-no-fastapi-cloud-cli].Translations
docs/ru/docs/advanced/response-directly.md. PR #13801 by @NavesSapnis.docs/ru/docs/advanced/additional-status-codes.md. PR #13799 by @NavesSapnis.docs/uk/docs/tutorial/body-updates.md. PR #13804 by @valentinDruzhinin.Internal
v0.115.14Compare Source
Fixes
Form. PR #13827 by @patrick91.Docs
docs/en/docs/advanced/response-directly.md. PR #13800 by @NavesSapnis.Translations
docs/uk/docs/tutorial/response-model.md. PR #13792 by @valentinDruzhinin.docs/uk/docs/tutorial/security/index.md. PR #13805 by @valentinDruzhinin.docs/ja/docs/tutorial/encoder.md. PR #13815 by @ruzia.docs/ja/docs/tutorial/handling-errors.md. PR #13814 by @ruzia.docs/ja/docs/tutorial/body-fields.md. PR #13802 by @ruzia.docs/ru/docs/advanced/index.md. PR #13797 by @NavesSapnis.Internal
v0.115.13Compare Source
Fixes
\f) character for Pydantic V2. PR #13698 by @YuriiMotov.Refactors
refreshUrlparameter inOAuth2PasswordBearer. PR #11460 by @snosratiershad.passwordandclient_secretinOAuth2PasswordRequestForm, make docs show password fields for passwords. PR #11032 by @Thodoris1999.settings. PR #13505 by @valentinDruzhinin.validate_response_recursive. PR #13507 by @valentinDruzhinin.Upgrades
Docs
async defwithoutawait. PR #13642 by @swastikpradhan1999.docs/en/docs/tutorial/handling-errors.md. PR #13623 by @gsheni.Translations
docs/ru/docs/advanced/response-change-status-code.md. PR #13791 by @NavesSapnis.docs/fa/docs/learn/index.md. PR #13518 by @Mohammad222PR.docs/ko/docs/advanced/sub-applications.md. PR #4543 by @NinaHwang.docs/uk/docs/tutorial/schema-extra-example.md. PR #13769 by @valentinDruzhinin.docs/uk/docs/tutorial/query-param-models.md. PR #13748 by @valentinDruzhinin.docs/bn/docs/environment-variables.md. PR #13629 by @SakibSibly.docs/uk/docs/tutorial/query-params-str-validations.mdpage. PR #13546 by @valentinDruzhinin.docs/ru/docs/tutorial/cookie-param-models.md. PR #13616 by @EgorOnishchuk.docs/ko/docs/tutorial/extra-models.md. PR #13063 by @timothy-jeong.docs/uk/docs/tutorial/path-params-numeric-validations.mdpage. PR #13548 by @valentinDruzhinin.docs/uk/docs/tutorial/middleware.mdpage. PR #13520 by @valentinDruzhinin.docs/uk/docs/tutorial/background-tasks.mdpage. PR #13502 by @valentinDruzhinin.docs/uk/docs/tutorial/cors.mdpage. PR #13519 by @valentinDruzhinin.docs/ko/docs/advanced/events.md. PR #13487 by @bom1215.docs/uk/docs/tutorial/handling-errors.mdpage. PR #13420 by @valentinDruzhinin.docs/ru/docs/tutorial/request-form-models.md. PR #13552 by @EgorOnishchuk.docs/ko/docs/virtual-environments.md. PR #13630 by @sungchan1.docs/ru/docs/tutorial/header-param-models.md. PR #13526 by @minaton-ru.docs/zh/docs/tutorial/index.md. PR #13374 by @Zhongheng-Cheng.docs/zh/docs/deployment/manually.md. PR #13324 by @Zhongheng-Cheng.docs/zh/docs/deployment/server-workers.md. PR #13292 by @Zhongheng-Cheng.docs/zh/docs/tutorial/first-steps.md. PR #13348 by @Zhongheng-Cheng.Internal
inline-snapshotto support different Pydantic versions in the test suite. PR #12534 by @15r10nk.docs/en/mkdocs.ymlconfiguration file. PR #13542 by @svlandeg.v0.115.12Compare Source
Fixes
convert_underscores=Falsefor header Pydantic models. PR #13515 by @tiangolo.Docs
docs/en/docs/tutorial/middleware.md. PR #13444 by @Rishat-F.Translations
docs/uk/docs/tutorial/metadata.mdpage. PR #13459 by @valentinDruzhinin.docs/uk/docs/tutorial/response-status-code.mdpage. PR #13462 by @valentinDruzhinin.docs/uk/docs/tutorial/cookie-param-models.mdpage. PR #13460 by @valentinDruzhinin.docs/uk/docs/tutorial/header-param-models.mdpage. PR #13461 by @valentinDruzhinin.docs/ja/docs/virtual-environments.md. PR #13304 by @k94-ishi.docs/ko/docs/tutorial/security/oauth2-jwt.md. PR #13333 by @yes0ng.docs/vi/docs/deployment/cloud.md. PR #13407 by @ptt3199.Internal
v0.115.11Compare Source
Fixes
Annotatedcustom validations, likeAfterValidator, revert #13440. PR #13442 by @tiangolo.Translations
docs/ru/docs/tutorial/middleware.md. PR #13412 by @alv2017.Internal
v0.115.10Compare Source
Fixes
Upgrades
>=0.40.0,<0.47.0. PR #13426 by @musicinmybrain.Translations
docs/uk/docs/tutorial/debugging.md. PR #13370 by @valentinDruzhinin.docs/uk/docs/tutorial/query-params.md. PR #13362 by @valentinDruzhinin.docs/uk/docs/tutorial/path-params.md. PR #13354 by @valentinDruzhinin.docs/ja/docs/tutorial/cookie-param-models.md. PR #13330 by @k94-ishi.docs/uk/docs/tutorial/body-multiple-params.md. PR #13408 by @valentinDruzhinin.docs/ja/docs/tutorial/query-param-models.md. PR #13323 by @k94-ishi.docs/uk/docs/tutorial/body-nested-models.md. PR #13409 by @valentinDruzhinin.docs/vi/docs/deployment/versions.md. PR #13406 by @ptt3199.docs/vi/docs/deployment/index.md. PR #13405 by @ptt3199.docs/uk/docs/tutorial/request-forms.md. PR #13383 by @valentinDruzhinin.docs/uk/docs/tutorial/testing.md. PR #13371 by @valentinDruzhinin.v0.115.9Compare Source
Fixes
HTTPDigestonly raises an exception whenauto_error is True. PR #2939 by @arthurio.Refactors
query_params_str_validations. PR #13218 by @alv2017.app_testing. PR #13220 by @alv2017.dependency_testing. PR #13223 by @alv2017.Docs
...). PR #13377 by @tiangolo.body-multiple-params. PR #13345 by @DanielYang59.Translations
docs/uk/docs/tutorial/header-params.md. PR #13381 by @valentinDruzhinin.docs/uk/docs/tutorial/request-files.md. PR #13395 by @valentinDruzhinin.docs/uk/docs/tutorial/request-form-models.md. PR #13384 by @valentinDruzhinin.docs/uk/docs/tutorial/request-forms-and-files.md. PR #13386 by @valentinDruzhinin.docs/ko/docs/help-fastapi.md. PR #13262 by @Zerohertz.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Never, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.