Bump fastapi from 0.115.12 to 0.118.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 0
(3 months ago)
(3 months ago)
dependencies python
Bumps fastapi from 0.115.12 to 0.118.0.
Release notes
Sourced from fastapi's releases.
0.118.0
Fixes
- 🐛 Fix support for
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
- 📝 Update
tutorial/security/oauth2-jwt/to usepwdlibwith Argon2 instead ofpasslib. PR #13917 by@Neizvestnyj.- ✏️ Fix typos in OAuth2 password request forms. PR #14112 by
@alv2017.- 📝 Update contributing guidelines for installing requirements. PR #14095 by
@alejsdev.Translations
- 🌐 Sync German docs. PR #14098 by
@nilslindemann.Internal
- ⬆ [pre-commit.ci] pre-commit autoupdate. PR #14103 by
@pre-commit-ci[bot].- ♻️ Refactor sponsor image handling. PR #14102 by
@alejsdev.- 🐛 Fix sponsor display issue by hiding element on image error. PR #14097 by
@alejsdev.- 🐛 Hide sponsor badge when sponsor image is not displayed. PR #14096 by
@alejsdev.0.117.1
Fixes
- 🐛 Fix validation error when
Fileis declared afterFormparameter. PR #11194 by@thomasleveil.0.117.0
Features
- ✨ Allow
Noneas return type for bodiless responses. PR #9425 by@hofrob.- ✨ Allow array values for OpenAPI schema
typefield. PR #13639 by@sammasak.- ✨ Add OpenAPI
external_docsparameter toFastAPI. PR #13713 by@cmtoro.Fixes
- ⚡️ Fix
default_factoryfor response model field with Pydantic V1. PR #9704 by@vvanglro.- 🐛 Fix inconsistent processing of model docstring formfeed char with Pydantic V1. PR #6039 by
@MaxwellPayne.- 🐛 Fix
jsonable_encoderaltersjson_encodersof Pydantic v1 objects. PR #4972 by@aboubacs.
... (truncated)
Commits
333f1ba🔖 Release version 0.118.01d5168a📝 Update release notesbfa54b4📝 Update release notese329d78🐛 Fix support forStreamingResponses with dependencies withyieldor `Upl...861b22c📝 Update release notesefdafa4📝 Updatetutorial/security/oauth2-jwt/to usepwdlibwith Argon2 instead ...450a334📝 Update release notes3eb2ee7✏️ Fix typos in OAuth2 password request forms (#14112)287eb31📝 Update release notescca3341🌐 Sync German docs (#14098)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+11
-10
Package Dependencies
Technical Details
| ID: | 8793732 |
| UUID: | 2872581354 |
| Node ID: | PR_kwDOBjX6Ks6rOBzq |
| Host: | GitHub |
| Repository: | python-openapi/openapi-core |
| Merge State: | Unknown |