Skip to content

chore(deps): update dependency fastapi to v0.138.1#87

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/fastapi-0.x
Open

chore(deps): update dependency fastapi to v0.138.1#87
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/fastapi-0.x

Conversation

@renovate

@renovate renovate Bot commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
fastapi (changelog) ==0.110.0==0.138.1 age confidence

Release Notes

fastapi/fastapi (fastapi)

v0.138.1

Compare Source

Refactors
Internal

v0.138.0

Compare Source

Features
  • ✨ Add support for app.frontend("/", directory="dist") and router.frontend("/", directory="dist"). PR #​15800 by @​tiangolo.
Docs
Translations
Internal

v0.137.2

Compare Source

Features
  • ✨ Add iter_route_contexts() for advanced use cases that used to use router.routes (e.g. Jupyverse). PR #​15785 by @​tiangolo.
Translations
Internal

v0.137.1

Compare Source

Fixes

v0.137.0

Compare Source

Breaking Changes

Unblocks ✨ SO MANY THINGS ✨

Before this, router.include_router(other_router) would take each path operation from other_router and "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.routes is no longer a plain list of APIRoute objects, it can contain these intermediate objects that can contain additional routers, forming a tree.

Any logic that depended on iterating on the router.routes directly 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.routes to modify them would now also see these new objects, and would not see all the routes in the app.

router.routes should be considered an internal implementation detail, only passed around to the FastAPI functions that need it.

Features
  • Adding routes (path operations) after a router is included now works, they are reflected as they are not copied.
  • Including subrouter in mainrouter can be done before adding routes (path operations) to subrouter, because now the the entire object is stored instead of copying the routes.
  • As routes are not copied, in some cases that might save some memory.
Alpha Features

This is not documented yet, so it's not officially supported yet and could change in the future.

But, as APIRoute and APIRouter instances are now preserved, they could be customized.

APIRouter has two new methods, .matches() and .handle(), counterpart to the existing ones in APIRoute. 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
  • Custom APIRoute subclasses (undocumented, but alraedy works as desccribed above)
  • Custom APIRouter subclasses (undocumented, but already works as described above)
  • Dependencies per router
  • Exception handlers per router
  • Middleware per router
  • Other features planned
Docs
Translations
Internal

v0.136.3

Compare Source

Refactors
  • ♻️ Do not accept underscore headers when using convert_underscores=True (the default). PR #​15589 by @​tiangolo.

v0.136.1

Compare Source

Upgrades
Internal

v0.136.0

Compare Source

Upgrades

v0.135.4

Compare Source

Refactors
Internal

v0.135.3

Compare Source

Features
Docs
Internal

v0.135.2

Compare Source

Upgrades
Docs
Translations
Internal

v0.135.1

Compare Source

Fixes
  • 🐛 Fix, avoid yield from a TaskGroup, only as an async context manager, closed in the request async exit stack. PR #​15038 by @​tiangolo.
Docs
Internal

v0.135.0

Compare Source

Features

v0.134.0

Compare Source

Features
  • ✨ Add support for streaming JSON Lines and binary data with yield. PR #​15022 by @​tiangolo.
    • This also upgrades Starlette from >=0.40.0 to >=0.46.0, as it's needed to properly unrwap and re-raise exceptions from exception groups.
    • New docs: Stream JSON Lines.
    • And new docs: Stream Data.
Docs
Internal

v0.133.1

Compare Source

Features
Internal

v0.133.0

Compare Source

v0.132.1

Compare Source

Refactors
Internal

v0.132.0

Compare Source

Breaking Changes
  • 🔒️ Add strict_content_type checking for JSON requests. PR #​14978 by @​tiangolo.
    • Now FastAPI checks, by default, that JSON requests have a Content-Type header with a valid JSON value, like application/json, and rejects requests that don't.
    • If the clients for your app don't send a valid Content-Type header you can disable this with strict_content_type=False.
    • Check the new docs: Strict Content-Type Checking.
Internal

v0.131.0

Compare Source

Breaking Changes

v0.130.0

Compare Source

Features

v0.129.2

Compare Source

Internal

v0.129.1

Compare Source

Fixes
  • ♻️ Fix JSON Schema for bytes, use "contentMediaType": "application/octet-stream" instead of "format": "binary". PR #​14953 by @​tiangolo.
Docs
Translations
Internal

v0.129.0

Compare Source

Breaking Changes
Refactors

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 39d698c to 99c7608 Compare April 3, 2024 19:53
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 99c7608 to a1aa7ec Compare April 10, 2024 23:18
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from a1aa7ec to 0b5bce9 Compare April 19, 2024 04:30
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.110.1 chore(deps): update dependency fastapi to v0.110.2 Apr 19, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 0b5bce9 to 7d76697 Compare April 30, 2024 01:38
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.110.2 chore(deps): update dependency fastapi to v0.110.3 Apr 30, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 7d76697 to 5be5fb3 Compare May 3, 2024 08:57
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.110.3 chore(deps): update dependency fastapi to v0.111.0 May 3, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from dfe1712 to 715781a Compare May 10, 2024 14:23
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from 1abbccc to df0a231 Compare May 23, 2024 16:58
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 3 times, most recently from efa1b79 to af8cdf4 Compare June 5, 2024 12:24
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from af8cdf4 to 351b7f1 Compare June 11, 2024 10:16
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from 87e4eea to 71548ff Compare June 20, 2024 18:00
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 4 times, most recently from 7ff26de to de0612a Compare July 6, 2024 04:44
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from bf2a585 to c0543a1 Compare July 14, 2024 20:20
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.111.0 chore(deps): update dependency fastapi to v0.111.1 Jul 14, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from 26a98fd to babeb8a Compare July 23, 2024 00:14
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from 445cf34 to 71359f2 Compare August 2, 2024 06:23
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.112.2 chore(deps): update dependency fastapi to v0.112.3 Sep 5, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from e07bbca to 80f0806 Compare September 5, 2024 16:25
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.112.3 chore(deps): update dependency fastapi to v0.113.0 Sep 5, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 80f0806 to 15f649c Compare September 6, 2024 18:22
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.113.0 chore(deps): update dependency fastapi to v0.114.0 Sep 6, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 15f649c to d382336 Compare September 11, 2024 10:22
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.114.0 chore(deps): update dependency fastapi to v0.114.1 Sep 11, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from d382336 to 763dd5b Compare September 13, 2024 22:46
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.114.1 chore(deps): update dependency fastapi to v0.114.2 Sep 13, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 763dd5b to d5e3b7d Compare September 17, 2024 19:47
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.114.2 chore(deps): update dependency fastapi to v0.115.0 Sep 17, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from d5e3b7d to 5e13e40 Compare September 18, 2024 09:38
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 4 times, most recently from a5c19c7 to df8b355 Compare October 12, 2024 10:09
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.115.0 chore(deps): update dependency fastapi to v0.115.1 Oct 12, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from df8b355 to 1ad17e7 Compare October 12, 2024 12:35
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.115.1 chore(deps): update dependency fastapi to v0.115.2 Oct 12, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 3 times, most recently from dc5bb93 to 941c636 Compare October 18, 2024 11:59
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 941c636 to 4cd8951 Compare October 22, 2024 14:39
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.115.2 chore(deps): update dependency fastapi to v0.115.3 Oct 22, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 4cd8951 to 83c2240 Compare October 27, 2024 22:32
@renovate renovate Bot changed the title chore(deps): update dependency fastapi to v0.115.3 chore(deps): update dependency fastapi to v0.115.4 Oct 27, 2024
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 3 times, most recently from 2cc49e6 to bbb12fb Compare November 3, 2024 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants