FastAPI 0.140.0
FastAPI 0.140.0 has landed, and while it might not have the flashy major-version headline, there are real improvements under the hood that deserve a closer look. Let us set aside the hype and examine what this release actually delivers.
What Changed
This release is primarily a maintenance and polish update. The headline improvement is a meaningful reduction in memory usage within FastAPI's dependency injection system. The team behind FastAPI has been refining how dependencies are resolved and cached, and 0.140.0 reaps the benefits of that ongoing work.
PR #16049 by @tiangolo refactored the internal dependency handling to lower memory overhead. For small APIs the difference may be marginal, but for applications with hundreds of routes and deeply nested dependencies — think large microservice backends — this could translate into measurable savings.
Documentation and Tooling
A significant portion of this release is documentation-focused. Links were fixed, the FastAPI People page was restructured, and a new Library Skills documentation page was added. These changes reflect a sustained investment in developer experience, even if they do not directly change how the framework behaves at runtime.
One notable addition is an internal CI memory benchmark (PR #16046), suggesting the team intends to keep memory regressions in check going forward. This is the kind of infrastructure work that does not appear in changelogs often enough but matters for long-term project health.
The Skeptic View
Let us be honest: 0.140.0 is not going to change your life. If you are already on 0.139.x, the upgrade is low-risk but also low-reward. The documentation improvements are welcome, the memory reduction is nice, but there are no new API features here, no performance breakthrough, and no breaking changes to navigate.
That being said, upgrading to stay current is rarely a bad idea, and this release lays groundwork for whatever comes next. Just do not expect fireworks.
Upgrade Path
Upgrading is straightforward. If you are using pip:
pip install --upgrade fastapi
Or with uv:
uv sync --upgrade-package fastapi
Run your test suite after upgrading, particularly if you have custom dependency logic. The refactor in dependency resolution should be backward-compatible, but belt and suspenders never hurt.