Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 26, 2025

This PR contains the following updates:

Package Change Age Confidence
fastapi (changelog) ~=0.116.1 -> ~=0.118.1 age confidence

Release Notes

fastapi/fastapi (fastapi)

v0.118.1

Upgrades
Docs
Translations
Internal

v0.118.0

Compare Source

0.118.0

Fixes
  • 🐛 Fix support for StreamingResponses with dependencies with yield or UploadFiles, close after the response is done. PR #​14099 by @​tiangolo.

Before FastAPI 0.118.0, if you used a dependency with yield, it would run the exit code after the path operation function returned but right before sending the response.

This change also meant that if you returned a StreamingResponse, the exit code of the dependency with yield would have been already run.

For example, if you had a database session in a dependency with yield, the StreamingResponse would not be able to use that session while streaming data because the session would have already been closed in the exit code after yield.

This behavior was reverted in 0.118.0, to make the exit code after yield be executed after the response is sent.

You can read more about it in the docs for Advanced Dependencies - Dependencies with yield, HTTPException, except and Background Tasks. Including what you could do if you wanted to close a database session earlier, before returning the response to the client.

Docs
Translations
Internal

v0.117.1

Compare Source

Fixes

v0.117.0

Compare Source

Features
Fixes
  • ⚡️ Fix default_factory for response model field with Pydantic V1. PR #​9704 by @​vvanglro.
  • 🐛 Fix inconsistent processing of model docstring formfeed char with Pydantic V1. PR #​6039 by @​MaxwellPayne.
  • 🐛 Fix jsonable_encoder alters json_encoders of Pydantic v1 objects. PR #​4972 by @​aboubacs.
  • 🐛 Reenable allow_arbitrary_types when only 1 argument is used on the API endpoint. PR #​13694 by @​rmawatson.
  • 🐛 Fix inspect.getcoroutinefunction() can break testing with unittest.mock.patch(). PR #​14022 by @​secrett2633.
Refactors
Docs
Translations
Internal

Configuration

📅 Schedule: Branch creation - "before 6:00am on friday" (UTC), 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 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 added the renovate label Sep 26, 2025
@renovate renovate bot force-pushed the renovate/fastapi-0.x branch from 498a303 to 1d5f377 Compare September 29, 2025 05:12
@renovate renovate bot changed the title Update dependency fastapi to ~=0.117.1 Update dependency fastapi to ~=0.118.0 Sep 29, 2025
@renovate renovate bot changed the title Update dependency fastapi to ~=0.118.0 Update dependency fastapi to ~=0.118.1 Oct 8, 2025
@renovate renovate bot force-pushed the renovate/fastapi-0.x branch from 1d5f377 to 67ac68a Compare October 8, 2025 10:06
@theEvilReaper theEvilReaper merged commit 5e2ac92 into dev Oct 8, 2025
1 check passed
@renovate renovate bot deleted the renovate/fastapi-0.x branch October 8, 2025 12:07
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.

2 participants