-
Notifications
You must be signed in to change notification settings - Fork 0
Update dependency fastapi to v0.121.0 #58
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
13e281f to
e90639a
Compare
e90639a to
b091faf
Compare
74b0ec1 to
8874eba
Compare
8874eba to
8ba34b6
Compare
8ba34b6 to
fe47d31
Compare
|
fe47d31 to
12febba
Compare
12febba to
c131503
Compare
c131503 to
044f4c9
Compare
044f4c9 to
28baca5
Compare
28baca5 to
2534840
Compare
2534840 to
d2102a2
Compare
d2102a2 to
043301a
Compare
043301a to
7b04506
Compare
7b04506 to
d144485
Compare
d144485 to
ea05bae
Compare
c798318 to
c2780f9
Compare
c2780f9 to
71c104b
Compare
71c104b to
adab2c1
Compare
|



This PR contains the following updates:
==0.115.11->==0.121.0Release Notes
fastapi/fastapi (fastapi)
v0.121.0Compare Source
Features
scope="request"for dependencies withyieldthat exit before the response is sent. PR #14262 by @tiangolo.yield- Early exit andscope.Internal
v0.120.4Compare Source
Fixes
v0.120.3Compare Source
Refactors
get_param_sub_dependant. PR #14255 by @tiangolo.Docs
v0.120.2Compare Source
Fixes
Internal
v0.120.1Compare Source
Upgrades
0.50.0. PR #14234 by @YuriiMotov.Internal
licenseandlicense-filestopyproject.toml, removeLicensefromclassifiers. PR #14230 by @YuriiMotov.v0.120.0Compare Source
There are no major nor breaking changes in this release. ☕️
The internal reference documentation now uses
annotated_doc.Docinstead oftyping_extensions.Doc, this adds a new (very small) dependency onannotated-doc, a package made just to provide thatDocdocumentation utility class.I would expect
typing_extensions.Docto be deprecated and then removed at some point fromtyping_extensions, for that reason there's the newannotated-docmicro-package. If you are curious about this, you can read more in the repo forannotated-doc.This new version
0.120.0only contains that transition to the new home package for that utility classDoc.Translations
Internal
typing_extensions.Doctoannotated_doc.Doc. PR #14222 by @tiangolo.v0.119.1Compare Source
Fixes
Docs
starlette.iobystarlette.devanduvicorn.orgbyuvicorn.dev. PR #14176 by @Kludex.Internal
waitinglabel inissue-manager. PR #14156 by @YuriiMotov.v0.119.0Compare Source
FastAPI now (temporarily) supports both Pydantic v2 models and
pydantic.v1models at the same time in the same app, to make it easier for any FastAPI apps still using Pydantic v1 to gradually but quickly migrate to Pydantic v2.Adding this feature was a big effort with the main objective of making it easier for the few applications still stuck in Pydantic v1 to migrate to Pydantic v2.
And with this, support for Pydantic v1 is now deprecated and will be removed from FastAPI in a future version soon.
Note: have in mind that the Pydantic team already stopped supporting Pydantic v1 for recent versions of Python, starting with Python 3.14.
You can read in the docs more about how to Migrate from Pydantic v1 to Pydantic v2.
Features
from pydantic.v1 import BaseModel, mixed Pydantic v1 and v2 models in the same app. PR #14168 by @tiangolo.v0.118.3Compare Source
Upgrades
v0.118.2Compare Source
Fixes
Internal
v0.118.1Compare Source
Upgrades
Docs
Translations
Internal
mkdocs_hooks.pyto addtitleto page's metadata (remove permalinks in social cards). PR #14125 by @YuriiMotov.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
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: Whenever PR is behind base branch, 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.