fix(deps): update dependency fastapi to v0.114.0 #106
Merged
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.111.0
->^0.114.0
==0.111.0
->==0.114.0
Release Notes
fastapi/fastapi (fastapi)
v0.114.0
Compare Source
You can restrict form fields to only include those declared in a Pydantic model and forbid any extra field sent in the request using Pydantic's
model_config = {"extra": "forbid"}
:Read the new docs: Form Models - Forbid Extra Form Fields.
Features
Docs
Internal
v0.113.0
Compare Source
Now you can declare form fields with Pydantic models:
Read the new docs: Form Models.
Features
Form
parameters. PR #12129 by @tiangolo.Internal
v0.112.4
Compare Source
This release is mainly a big internal refactor to enable adding support for Pydantic models for
Form
fields, but that feature comes in the next release.This release shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. It's just a checkpoint. 🤓
Refactors
embed
body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models inForm
,Query
and others. PR #12117 by @tiangolo.Internal
Form
parameters" to make a checkpoint release. PR #12128 by @tiangolo.Form
parameters. PR #12127 by @tiangolo. Reverted to make a checkpoint release with only refactors.v0.112.3
Compare Source
This release is mainly internal refactors, it shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. There are a few bigger releases coming right after. 🚀
Refactors
check_file_field()
, rename toensure_multipart_is_installed()
to clarify its purpose. PR #12106 by @tiangolo.create_response_field()
tocreate_model_field()
as it's used for more than response models. PR #12103 by @tiangolo.solve_dependencies()
using dataclasses. PR #12100 by @tiangolo.analyze_param()
to structure data with dataclasses instead of tuple. PR #12099 by @tiangolo.Docs
time.perf_counter()
in middlewares. PR #12095 by @tiangolo.time.time()
totime.perf_counter()
. PR #11957 by @domdent.docs_src/path_params_numeric_validations/tutorial006.py
. PR #11478 by @MuhammadAshiqAmeer.docs/en/docs/async.md
. PR #12062 by @Alec-Gillis.response_class
parameter, validations, and returning a response directly. PR #12067 by @tiangolo.CMD
exec form. PR #11960 by @GPla.Translations
docs/nl/docs/features.md
. PR #12101 by @maxscheijen.docs/pt/docs/advanced/testing-events.md
. PR #12108 by @ceb10n.docs/pt/docs/advanced/security/index.md
. PR #12114 by @ceb10n.docs/nl/docs/index.md
. PR #12042 by @svlandeg.docs/zh/docs/how-to/index.md
. PR #12070 by @synthpop123.Internal
include-hidden-files
toTrue
when using theupload-artifact
GH action. PR #12118 by @svlandeg.latest-changes
GitHub Action. PR #12073 by @tiangolo.v0.112.2
Compare Source
Fixes
allow_inf_nan
option for Param and Body classes. PR #11867 by @giunio-prc.app.include_router
merges nested lifespans. PR #9630 by @Lancetnik.Refactors
FastAPI.add_api_route()
. PR #10240 by @ordinary-jamie.Docs
docs/en/docs/virtual-environments.md
. PR #12064 by @aymenkrifa.Security
. PR #11168 by @0shah0.docs/en/docs/tutorial/body-multiple-params.md
. PR #11978 by @svlandeg.email-validator
dependency with dash. PR #11515 by @jirikuncar.docs/es/docs/project-generation.md
. PR #11947 by @alejsdev.compresslevel
parameter on docs forGZipMiddleware
. PR #11350 by @junah201.docs/en/docs/tutorial/body.md
with Python 3.10 union type example. PR #11415 by @rangzen.Translations
docs/pt/docs/tutorial/request_file.md
. PR #12018 by @Joao-Pedro-P-Holanda.docs/ja/docs/learn/index.md
. PR #11592 by @ukwhatn.docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
. PR #12028 by @xuvjso.docs/ur/docs/benchmarks.md
. PR #10046 by @AhsanSheraz.Internal
.gitignore
. PR #11940 by @gitworkflows.v0.112.1
Compare Source
Upgrades
>=0.37.2,<0.39.0
. PR #11876 by @musicinmybrain.Docs
Translations
docs/pt/docs/tutorial/bigger-applications.md
. PR #11971 by @marcelomarkus.docs/pt/docs/advanced/testing-websockets.md
. PR #11994 by @ceb10n.docs/pt/docs/advanced/testing-dependencies.md
. PR #11995 by @ceb10n.docs/pt/docs/advanced/using-request-directly.md
. PR #11956 by @ceb10n.docs/fr/docs/tutorial/body-multiple-params.md
. PR #11796 by @pe-brian.docs/zh/docs/tutorial/query-params.md
. PR #11557 by @caomingpei.docs/zh/docs/advanced/testing-dependencies.md
. PR #11944 by @bestony.docs/pt/docs/advanced/sub-applications.md
anddocs/pt/docs/advanced/behind-a-proxy.md
. PR #11856 by @marcelomarkus.docs/pt/docs/tutorial/cors.md
anddocs/pt/docs/tutorial/middleware.md
. PR #11916 by @wesinalves.docs/fr/docs/tutorial/path-params-numeric-validations.md
. PR #11788 by @pe-brian.Internal
pyproject.toml
, shows in PyPI. PR #11152 by @Pierre-VF.deploy_docs_status.py
to account for deploy URLs with or without trailing slash. PR #11965 by @tiangolo.v0.112.0
Compare Source
Breaking Changes
pip install "fastapi[standard]"
with standard dependencies andpython -m fastapi
. PR #11935 by @tiangolo.Summary
Install with:
pip install "fastapi[standard]"
Other Changes
fastapi-cli[standard] >=0.0.5
.Technical Details
Before this,
fastapi
would include the standard dependencies, with Uvicorn and thefastapi-cli
, etc.And
fastapi-slim
would not include those standard dependencies.Now
fastapi
doesn't include those standard dependencies unless you install withpip install "fastapi[standard]"
.Before, you would install
pip install fastapi
, now you should include thestandard
optional dependencies (unless you want to exclude one of those):pip install "fastapi[standard]"
.This change is because having the standard optional dependencies installed by default was being inconvenient to several users, and having to install instead
fastapi-slim
was not being a feasible solution.Discussed here: #11522 and here: #11525
Docs
Translations
docs/pt/docs/alternatives.md
. PR #11931 by @ceb10n.docs/ru/docs/tutorial/dependencies/sub-dependencies.md
. PR #10515 by @AlertRED.docs/pt/docs/advanced/response-change-status-code.md
. PR #11863 by @ceb10n.docs/pt/docs/reference/background.md
. PR #11849 by @lucasbalieiro.docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md
. PR #11848 by @Joao-Pedro-P-Holanda.docs/pt/docs/reference/apirouter.md
. PR #11843 by @lucasbalieiro.Internal
approved-1
. PR #11907 by @tiangolo.v0.111.1
Compare Source
Upgrades
orjson
andujson
from default dependencies. PR #11842 by @tiangolo.pip install "fastapi[all]"
. But they not included inpip install fastapi
.Docs
docs/en/docs/fastapi-cli.md
. PR #11716 by @alejsdev.docs/en/docs/fastapi-cli.md
. PR #11715 by @alejsdev.docs/en/docs/tutorial/body-multiple-params.md
. PR #11698 by @mwb-u.security/first-steps.md
. PR #11674 by @alejsdev.security/first-steps.md
. PR #11673 by @alejsdev.path-params-numeric-validations.md
. PR #11672 by @alejsdev.Annotated
andQuery()
params. PR #11664 by @tiangolo.fastapi/applications.py
. PR #11593 by @petarmaric.fastapi-cli.md
. PR #11524 by @svlandeg.Translations
docs/es/docs/how-to/graphql.md
. PR #11697 by @camigomezdev.docs/pt/docs/reference/index.md
. PR #11840 by @lucasbalieiro.docs/pt/docs/tutorial/dependencies/sub-dependencies.md
. PR #11792 by @Joao-Pedro-P-Holanda.docs/tr/docs/tutorial/request-forms.md
. PR #11553 by @hasansezertasan.docs/pt/docs/reference/exceptions.md
. PR #11834 by @lucasbalieiro.docs/pt/docs/tutorial/dependencies/global-dependencies.md
. PR #11826 by @Joao-Pedro-P-Holanda.docs/pt/docs/how-to/general.md
. PR #11825 by @lucasbalieiro.docs/pt/docs/advanced/async-tests.md
. PR #11808 by @ceb10n.docs/uk/docs/tutorial/first-steps.md
. PR #11809 by @vkhoroshchak.docs/pt/docs/tutorial/dependencies/dependencies-in-path-operation-operators.md
. PR #11804 by @Joao-Pedro-P-Holanda.docs/zh/docs/fastapi-cli.md
. PR #11786 by @logan2d5.docs/pt/docs/advanced/openapi-webhooks.md
. PR #11791 by @ceb10n.docs/tutorial/security/oauth2-jwt.md
. PR #11781 by @logan2d5.docs/fr/docs/async.md
. PR #11787 by @pe-brian.docs/pt/docs/advanced/advanced-dependencies.md
. PR #11775 by @ceb10n.docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md
. PR #11768 by @Joao-Pedro-P-Holanda.docs/pt/docs/advanced/additional-status-codes.md
. PR #11753 by @ceb10n.docs/pt/docs/tutorial/dependencies/index.md
. PR #11757 by @Joao-Pedro-P-Holanda.docs/pt/docs/advanced/settings.md
. PR #11739 by @Joao-Pedro-P-Holanda.docs/fr/docs/learn/index.md
. PR #11712 by @benjaminvandammeholberton.docs/pt/docs/how-to/index.md
. PR #11731 by @vhsenna.docs/pt/docs/advanced/additional-responses.md
. PR #11736 by @ceb10n.docs/pt/docs/advanced/benchmarks.md
. PR #11713 by @ceb10n.docs/ko/docs/tutorial/response-status-code.md
. PR #11718 by @nayeonkinn.docs/ko/docs/tutorial/extra-data-types.md
. PR #11711 by @nayeonkinn.docs/ko/docs/tutorial/body-nested-models.md
. PR #11710 by @nayeonkinn.docs/pt/docs/advanced/fastapi-cli.md
. PR #11641 by @ayr-ton.docs/zh-hant/docs/fastapi-people.md
. PR #11639 by @hsuanchi.docs/tr/docs/advanced/index.md
. PR #11606 by @hasansezertasan.docs/tr/docs/deployment/cloud.md
. PR #11610 by @hasansezertasan.docs/tr/docs/advanced/security/index.md
. PR #11609 by @hasansezertasan.docs/tr/docs/advanced/testing-websockets.md
. PR #11608 by @hasansezertasan.docs/tr/docs/how-to/general.md
. PR #11607 by @hasansezertasan.docs/zh/docs/advanced/templates.md
. PR #11620 by @chaoless.docs/tr/docs/deployment/index.md
. PR #11605 by @hasansezertasan.docs/tr/docs/tutorial/static-files.md
. PR #11599 by @hasansezertasan.docs/pl/docs/fastapi-people.md
. PR #10196 by @isulim.docs/tr/docs/advanced/wsgi.md
. PR #11575 by @hasansezertasan.docs/tr/docs/tutorial/cookie-params.md
. PR #11561 by @hasansezertasan.docs/ru/docs/about/index.md
. PR #10961 by @s111d.docs/zh/docs/tutorial/sql-databases.md
. PR #11539 by @chaoless.docs/zh/docs/how-to/configure-swagger-ui.md
. PR #11501 by @Lucas-lyh./docs/advanced/security/http-basic-auth.md
. PR #11512 by @nick-cjyx9.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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.