Update dependency fastapi to v0.137.0#123
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
47b4af7 to
6adc79c
Compare
357193d to
f429c54
Compare
f429c54 to
5b86b81
Compare
5b86b81 to
fdbe5cc
Compare
fdbe5cc to
af151b4
Compare
af151b4 to
acae21d
Compare
acae21d to
3d97916
Compare
3d97916 to
0ab1018
Compare
0ab1018 to
f71b3f1
Compare
f71b3f1 to
29b44a9
Compare
29b44a9 to
5c952b4
Compare
5c952b4 to
f62e327
Compare
f62e327 to
a509dac
Compare
a509dac to
defc749
Compare
defc749 to
64095b2
Compare
4c473e2 to
319c755
Compare
319c755 to
6102535
Compare
6102535 to
1fdd01d
Compare
1fdd01d to
7df9848
Compare
7df9848 to
ad6bd41
Compare
ad6bd41 to
15e03aa
Compare
15e03aa to
deb2c70
Compare
deb2c70 to
6f36285
Compare
6f36285 to
ba6b1ac
Compare
ba6b1ac to
bfe8ea8
Compare
bfe8ea8 to
cf20b0b
Compare
cf20b0b to
067001f
Compare
067001f to
ae0b05a
Compare
ae0b05a to
571f45f
Compare
571f45f to
588270a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.110.1→0.137.0Release Notes
fastapi/fastapi (fastapi)
v0.137.0Compare Source
Breaking Changes
APIRouterandAPIRouteinstances. PR #15745 by @tiangolo.Unblocks ✨ SO MANY THINGS ✨
Before this,
router.include_router(other_router)would take each path operation fromother_routerand "clone" it, or recreate it from scratch.This would mean that in the end there was only one top level router, part of the app.
The way it is structured here is that there are a few additional classes to handle intermediate metadata for router and route inclusion. That way the information of "router X includes Y and Y includes Z" is stored somewhere, without affecting (recreating / clonning) the final route.
Non Objectives
Dependencies for 404: previously I intended to support dependencies that would be executed even for 404, but that would conflict with the fact that a router could not find a match, but the next router did find a match. Executing dependencies in the router that did not find a match would not make sense, they could consume the request, body, etc. This original idea was discarded.
Specific Breaking Changes
Now
router.routesis no longer a plain list ofAPIRouteobjects, it can contain these intermediate objects that can contain additional routers, forming a tree.Any logic that depended on iterating on the
router.routesdirectly would be affected, that logic cannot expect to be able to extract data from a plain list of routes, as it's no longer a plain list but a tree.Additionally, any logic that iterated on
router.routesto modify them would now also see these new objects, and would not see all the routes in the app.router.routesshould be considered an internal implementation detail, only passed around to the FastAPI functions that need it.Features
subrouterinmainroutercan be done before adding routes (path operations) tosubrouter, because now the the entire object is stored instead of copying the routes.Alpha Features
This is not documented yet, so it's not officially supported yet and could change in the future.
But, as
APIRouteandAPIRouterinstances are now preserved, they could be customized.APIRouterhas two new methods,.matches()and.handle(), counterpart to the existing ones inAPIRoute. With this a router could customize how it matches and handles requests. For example, it could match only requests that include some specific header, for example for handling versions in headers.Still, for now, consider this very experimental and potentially changing and breaking in the future.
Future Features Enabled
APIRoutesubclasses (undocumented, but alraedy works as desccribed above)APIRoutersubclasses (undocumented, but already works as described above)Docs
Annotatedin inline example indocs/en/docs/tutorial/body-multiple-params.md. PR #15591 by @TheArchons.docs/en/docs/tutorial/security/oauth2-jwt.md. PR #14781 by @zadevhub.Translations
Internal
changing_dirinstead ofCLIRunner.isolated_filesystemto set working dir. PR #15616 by @YuriiMotov.httpx2test dependency to avoid deprecation warning. PR #15603 by @YuriiMotov.v0.136.3Compare Source
Refactors
convert_underscores=True(the default). PR #15589 by @tiangolo.v0.136.1Compare Source
Upgrades
Internal
v0.136.0Compare Source
Upgrades
v0.135.4Compare Source
Refactors
@app.vibe()🤪. PR #15363 by @tiangolo.Internal
v0.135.3Compare Source
Features
@app.vibe(). PR #15280 by @tiangolo.Docs
client_secretin OAuth2 form docstrings. PR #14946 by @bysiber.Internal
lint.sh. PR #15136 by @svlandeg.v0.135.2Compare Source
Upgrades
pydantic >=2.9.0.and fix the test suite. PR #15139 by @svlandeg.Docs
pyproject.tomlwithentrypoint. PR #15075 by @tiangolo.target=_blankfor links in docs. PR #15063 by @tiangolo.max_digitsanddecimal_places. PR #14944 by @YuriiMotov.Translations
Internal
scripts/people.py. PR #15088 by @YuriiMotov.commit_in_placepassed via env variable intranslate.ymlworkflow. PR #15151 by @YuriiMotov.tyto precommit. PR #15091 by @svlandeg.v0.135.1Compare Source
Fixes
Docs
docs/en/docs/_llm-test.md. PR #15007 by @adityagiri3600.Internal
v0.135.0Compare Source
Features
v0.134.0Compare Source
Features
yield. PR #15022 by @tiangolo.>=0.40.0to>=0.46.0, as it's needed to properly unrwap and re-raise exceptions from exception groups.Docs
yield. PR #15023 by @tiangolo.awaitinStreamingResponsecode example to allow cancellation. PR #14681 by @casperdcl.docs_src/websocketstodocs_src/websockets_to avoid import errors. PR #14979 by @YuriiMotov.Internal
pytest-xdistandpytest-cov. PR #14992 by @YuriiMotov.v0.133.1Compare Source
Features
Internal
v0.133.0Compare Source
v0.132.1Compare Source
Refactors
Internal
benchmarkjob intestworkflow. PR #14974 by @YuriiMotov.v0.132.0Compare Source
Breaking Changes
strict_content_typechecking for JSON requests. PR #14978 by @tiangolo.Content-Typeheader with a valid JSON value, likeapplication/json, and rejects requests that don't.Content-Typeheader you can disable this withstrict_content_type=False.Internal
griffelibinstead ofgriffe. PR #14973 by @svlandeg.FastAPI Peopleworkflow. PR #14951 by @YuriiMotov.v0.131.0Compare Source
Breaking Changes
ORJSONResponseandUJSONResponse. PR #14964 by @tiangolo.v0.130.0Compare Source
Features
v0.129.2Compare Source
Internal
fastapi-slim. PR #14958 by @tiangolo.fastapi-slim, no more versions will be released, use only"fastapi[standard]"orfastapi. PR #14957 by @tiangolo.v0.129.1Compare Source
Fixes
"contentMediaType": "application/octet-stream"instead of"format": "binary". PR #14953 by @tiangolo.Docs
Translations
Internal
masterbranch and when run by scheduler. PR #14940 by @YuriiMotov.v0.129.0Compare Source
Breaking Changes
Refactors
Docs
Internal
v0.128.8Compare Source
Docs
docs/en/docs/tutorial/first-steps.md. PR #14708 by @SanjanaS10.Internal
fastapi-slim, deprecate it, and make it only depend onfastapi. PR #14894 by @tiangolo.v0.128.7Compare Source
Features
dictbyMappingonHTTPException.headers. PR #12997 by @rijenkii.Refactors
Docs
dfntag for definitions instead ofabbrin docs. PR #14744 by @YuriiMotov.Internal
abbranddfntags. PR #14747 by @YuriiMotov.testworkflow to run tests withinline-snapshot=review. PR #14876 by @YuriiMotov.v0.128.6Compare Source
Fixes
on_startupandon_shutdownparameters ofAPIRouter. PR #14873 by @YuriiMotov.Translations
Internal
v0.128.5Compare Source
Refactors
Internal
v0.128.4Compare Source
Refactors
create_model_field, better types forlenient_issubclass. PR #14860 by @tiangolo.Translations
Internal
v0.128.3Compare Source
Refactors
on_eventin FastAPI for compatibility with the next Starlette, while keeping backwards compatibility. PR #14851 by @tiangolo.Upgrades
starlette>=0.40.0,<1.0.0. PR #14853 by @tiangolo.Translations
Internal
fastapi[all]minimum dependencies:ujson >=5.8.0,orjson >=3.9.3. PR #14846 by @tiangolo.v0.128.2Compare Source
Features
TypeAliasType. PR #13920 by @cstruct.Responsetype hint as dependency annotation. PR #14794 by @jonathan-fulton.Fixes
Json[list[str]]type (issue #10997). PR #14616 by @mkanetsuna.Docs
advanced-dependencies.md. PR #14815 by @Rayyan-Oumlil.Translations
Configuration
📅 Schedule: (UTC)
🚦 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.