Skip to content

Update dependency fastapi to v0.137.1#577

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

Update dependency fastapi to v0.137.1#577
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/fastapi-0.x

Conversation

@renovate

@renovate renovate Bot commented Jun 17, 2025

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.115.12==0.137.1 age confidence

Release Notes

fastapi/fastapi (fastapi)

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
Docs
Internal

v0.128.8

Compare Source

Docs
Internal

v0.128.7

Compare Source

Features
Refactors
  • ♻️ Simplify reading files in memory, do it sequentially instead of (fake) parallel. PR #​14884 by @​tiangolo.
Docs
Internal

v0.128.6

Compare Source

Fixes
Translations
Internal

v0.128.5

Compare Source

Refactors
  • ♻️ Refactor and simplify Pydantic v2 (and v1) compatibility internal utils. PR #​14862 by @​tiangolo.
Internal
  • ✅ Add inline snapshot tests for OpenAPI before changes from Pydantic v2. PR #​14864 by @​tiangolo.

v0.128.4

Compare Source

Refactors
  • ♻️ Refactor internals, simplify Pydantic v2/v1 utils, create_model_field, better types for lenient_issubclass. PR #​14860 by @​tiangolo.
  • ♻️ Simplify internals, remove Pydantic v1 only logic, no longer needed. PR #​14857 by @​tiangolo.
  • ♻️ Refactor internals, cleanup unneeded Pydantic v1 specific logic. PR #​14856 by @​tiangolo.
Translations
Internal

v0.128.3

Compare Source

Refactors
  • ♻️ Re-implement on_event in FastAPI for compatibility with the next Starlette, while keeping backwards compatibility. PR #​14851 by @​tiangolo.
Upgrades
  • ⬆️ Upgrade Starlette supported version range to starlette>=0.40.0,<1.0.0. PR #​14853 by @​tiangolo.
Translations
Internal
  • 👷 Run tests with Starlette from git. PR #​14849 by @​tiangolo.
  • 👷 Run tests with lower bound uv sync, upgrade fastapi[all] minimum dependencies: ujson >=5.8.0, orjson >=3.9.3. PR #​14846 by @​tiangolo.

v0.128.2

Compare Source

Features
Fixes
Docs
Translations

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 changed the title Update dependency fastapi to v0.115.13 Update dependency fastapi to v0.115.14 Jun 26, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 6095c04 to 5dd279e Compare June 26, 2025 19:12
@renovate renovate Bot changed the title Update dependency fastapi to v0.115.14 Update dependency fastapi to v0.116.0 Jul 7, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from dbd18db to cd97d03 Compare July 11, 2025 18:05
@renovate renovate Bot changed the title Update dependency fastapi to v0.116.0 Update dependency fastapi to v0.116.1 Jul 11, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from cd97d03 to 79ab527 Compare August 10, 2025 15:09
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from 7e97d28 to 10da4d0 Compare August 24, 2025 13:36
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 10da4d0 to f0e627d Compare September 16, 2025 22:51
@renovate renovate Bot changed the title Update dependency fastapi to v0.116.1 Update dependency fastapi to v0.116.2 Sep 16, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from f0e627d to a17a8f8 Compare September 20, 2025 21:24
@renovate renovate Bot changed the title Update dependency fastapi to v0.116.2 Update dependency fastapi to v0.117.1 Sep 20, 2025
@renovate renovate Bot changed the title Update dependency fastapi to v0.117.1 Update dependency fastapi to v0.118.0 Sep 29, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from a17a8f8 to a2193d1 Compare September 29, 2025 04:55
@renovate renovate Bot changed the title Update dependency fastapi to v0.118.0 Update dependency fastapi to v0.118.2 Oct 8, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from 5fdb69d to a092336 Compare October 10, 2025 12:43
@renovate renovate Bot changed the title Update dependency fastapi to v0.118.2 Update dependency fastapi to v0.118.3 Oct 10, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from a092336 to 0fe4c8f Compare October 11, 2025 17:35
@renovate renovate Bot changed the title Update dependency fastapi to v0.118.3 Update dependency fastapi to v0.119.0 Oct 11, 2025
@renovate renovate Bot changed the title Update dependency fastapi to v0.119.0 Update dependency fastapi to v0.119.1 Oct 20, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch 2 times, most recently from 814948c to 7120c1a Compare October 24, 2025 04:46
@renovate renovate Bot changed the title Update dependency fastapi to v0.119.1 Update dependency fastapi to v0.120.0 Oct 24, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 7120c1a to 1a2b296 Compare October 27, 2025 19:31
@renovate renovate Bot changed the title Update dependency fastapi to v0.120.0 Update dependency fastapi to v0.120.1 Oct 27, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 1a2b296 to 802f1a8 Compare October 29, 2025 17:54
@renovate renovate Bot changed the title Update dependency fastapi to v0.120.1 Update dependency fastapi to v0.120.2 Oct 29, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 802f1a8 to ca3742a Compare October 30, 2025 23:33
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 5f13f32 to fb60b1d Compare November 24, 2025 21:26
@renovate renovate Bot changed the title Update dependency fastapi to v0.121.3 Update dependency fastapi to v0.122.0 Nov 24, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from fb60b1d to 7601a11 Compare November 30, 2025 13:14
@renovate renovate Bot changed the title Update dependency fastapi to v0.122.0 Update dependency fastapi to v0.122.1 Nov 30, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 7601a11 to 5fddf1c Compare November 30, 2025 18:37
@renovate renovate Bot changed the title Update dependency fastapi to v0.122.1 Update dependency fastapi to v0.123.0 Nov 30, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 5fddf1c to 6234d17 Compare December 2, 2025 05:32
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.0 Update dependency fastapi to v0.123.1 Dec 2, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 6234d17 to e1c32b5 Compare December 2, 2025 09:16
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.1 Update dependency fastapi to v0.123.3 Dec 2, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from e1c32b5 to fc68897 Compare December 2, 2025 12:46
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.3 Update dependency fastapi to v0.123.4 Dec 2, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from fc68897 to 5dc38dc Compare December 3, 2025 03:33
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.4 Update dependency fastapi to v0.123.5 Dec 3, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 5dc38dc to 2ac49d3 Compare December 4, 2025 09:49
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.5 Update dependency fastapi to v0.123.7 Dec 4, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 2ac49d3 to 80e3bda Compare December 4, 2025 17:07
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.7 Update dependency fastapi to v0.123.8 Dec 4, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 80e3bda to 7172e4e Compare December 5, 2025 04:05
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.8 Update dependency fastapi to v0.123.9 Dec 5, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 7172e4e to b7cdd96 Compare December 5, 2025 21:53
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.9 Update dependency fastapi to v0.123.10 Dec 5, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from b7cdd96 to 89e92ba Compare December 6, 2025 14:02
@renovate renovate Bot changed the title Update dependency fastapi to v0.123.10 Update dependency fastapi to v0.124.0 Dec 6, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 89e92ba to 8950e2c Compare December 10, 2025 13:08
@renovate renovate Bot changed the title Update dependency fastapi to v0.124.0 Update dependency fastapi to v0.124.2 Dec 10, 2025
@renovate renovate Bot force-pushed the renovate/fastapi-0.x branch from 8950e2c to 4e11925 Compare December 12, 2025 15:03
@renovate renovate Bot changed the title Update dependency fastapi to v0.124.2 Update dependency fastapi to v0.124.3 Dec 12, 2025
@renovate

renovate Bot commented Feb 12, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: uv.lock
Command failed: uv lock --upgrade-package fastapi
warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead
Using CPython 3.14.6 interpreter at: /opt/containerbase/tools/python/3.14.6/bin/python3
  × No solution found when resolving dependencies for split (markers:
  │ python_full_version == '3.9.*'):
  ╰─▶ Because the requested Python version (>=3.9) does not satisfy
      Python>=3.10 and fastapi==0.137.1 depends on Python>=3.10, we can
      conclude that fastapi==0.137.1 cannot be used.
      And because your project depends on fastapi==0.137.1, we can conclude
      that your project's requirements are unsatisfiable.

hint: While the active Python version is 3.14, the resolution failed for other Python versions supported by your project. Consider limiting your project's supported Python versions using `requires-python`.
hint: The `requires-python` value (>=3.9) includes Python versions that are not supported by your dependencies (e.g., fastapi==0.137.1 only supports >=3.10). Consider using a more restrictive `requires-python` value (like >=3.10).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants