chore(deps): update dependency fastapi to v0.112.4 #18
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.1
->==0.112.4
Release Notes
fastapi/fastapi (fastapi)
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.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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.