Update dependency fastapi to v0.118.0 #108
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/fastapi-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==0.117.1
->==0.118.0
Release Notes
fastapi/fastapi (fastapi)
v0.118.0
Compare Source
0.118.0
Fixes
StreamingResponse
s with dependencies withyield
orUploadFile
s, 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 withyield
would have been already run.For example, if you had a database session in a dependency with
yield
, theStreamingResponse
would 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
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
tutorial/security/oauth2-jwt/
to usepwdlib
with Argon2 instead ofpasslib
. PR #13917 by @Neizvestnyj.Translations
Internal
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.