Releases ยท fastapi/fastapi
0.135.2
Upgrades
Docs
- ๐ Add missing last release notes dates. PR #15202 by @tiangolo.
- ๐ Update docs for contributors and team members regarding translation PRs. PR #15200 by @YuriiMotov.
- ๐ Fix code blocks in reference docs overflowing table width. PR #15094 by @YuriiMotov.
- ๐ Fix duplicated words in docstrings. PR #15116 by @AhsanSheraz.
- ๐ Add docs for
pyproject.tomlwithentrypoint. PR #15075 by @tiangolo. - ๐ Update links in docs to no longer use the classes external-link and internal-link. PR #15061 by @tiangolo.
- ๐จ Add JS and CSS handling for automatic
target=_blankfor links in docs. PR #15063 by @tiangolo. - ๐ Update styles for internal and external links in new tab. PR #15058 by @tiangolo.
- ๐ Add documentation for the FastAPI VS Code extension. PR #15008 by @savannahostrowski.
- ๐ Fix doctrings for
max_digitsanddecimal_places. PR #14944 by @YuriiMotov. - ๐ Add dates to release notes. PR #15001 by @YuriiMotov.
Translations
- ๐ Update translations for zh (update-outdated). PR #15177 by @tiangolo.
- ๐ Update translations for zh-hant (update-outdated). PR #15178 by @tiangolo.
- ๐ Update translations for zh-hant (add-missing). PR #15176 by @tiangolo.
- ๐ Update translations for zh (add-missing). PR #15175 by @tiangolo.
- ๐ Update translations for ja (update-outdated). PR #15171 by @tiangolo.
- ๐ Update translations for ko (update-outdated). PR #15170 by @tiangolo.
- ๐ Update translations for tr (update-outdated). PR #15172 by @tiangolo.
- ๐ Update translations for ko (add-missing). PR #15168 by @tiangolo.
- ๐ Update translations for ja (add-missing). PR #15167 by @tiangolo.
- ๐ Update translations for tr (add-missing). PR #15169 by @tiangolo.
- ๐ Update translations for fr (update-outdated). PR #15165 by @tiangolo.
- ๐ Update translations for fr (add-missing). PR #15163 by @tiangolo.
- ๐ Update translations for uk (update-outdated). PR #15160 by @tiangolo.
- ๐ Update translations for uk (add-missing). PR #15158 by @tiangolo.
- ๐ Update translations for pt (add-missing). PR #15157 by @tiangolo.
- ๐ Update translations for pt (update-outdated). PR #15159 by @tiangolo.
- ๐ Update translations for es (update-outdated). PR #15155 by @tiangolo.
- ๐ Update translations for es (add-missing). PR #15154 by @tiangolo.
- ๐ Update translations for de (update-outdated). PR #15156 by @tiangolo.
- ๐ Update translations for ru (update-and-add). PR #15152 by @tiangolo.
- ๐ Update translations for de (add-missing). PR #15153 by @tiangolo.
Internal
- ๐จ Exclude spam comments from statistics in
scripts/people.py. PR #15088 by @YuriiMotov. - โฌ Bump authlib from 1.6.7 to 1.6.9. PR #15128 by @dependabot[bot].
- โฌ Bump pyasn1 from 0.6.2 to 0.6.3. PR #15143 by @dependabot[bot].
- โฌ Bump ujson from 5.11.0 to 5.12.0. PR #15150 by @dependabot[bot].
- ๐จ Tweak translation workflow and translation fixer tool. PR #15166 by @YuriiMotov.
- ๐จ Fix
commit_in_placepassed via env variable intranslate.ymlworkflow. PR #15151 by @YuriiMotov. - ๐จ Update translation general prompt to enforce link style in translation matches the original link style. PR #15148 by @YuriiMotov.
- ๐ท Re-enable translation workflow run by cron in CI (twice a month). PR #15145 by @YuriiMotov.
- ๐ท Add
tyto precommit. PR #15091 by @svlandeg. - โฌ Bump dorny/paths-filter from 3 to 4. PR #15106 by @dependabot[bot].
- โฌ Bump cairosvg from 2.8.2 to 2.9.0. PR #15108 by @dependabot[bot].
- โฌ Bump pyjwt from 2.11.0 to 2.12.0. PR #15110 by @dependabot[bot].
- โฌ Bump black from 26.1.0 to 26.3.1. PR #15100 by @dependabot[bot].
- ๐จ Update script to autofix permalinks to account for headers with Markdown links. PR #15062 by @tiangolo.
- ๐ Pin Click for MkDocs live reload. PR #15057 by @tiangolo.
- โฌ Bump werkzeug from 3.1.5 to 3.1.6. PR #14948 by @dependabot[bot].
- โฌ Bump pydantic-ai from 1.62.0 to 1.63.0. PR #15035 by @dependabot[bot].
- โฌ Bump pytest-codspeed from 4.2.0 to 4.3.0. PR #15034 by @dependabot[bot].
- โฌ Bump strawberry-graphql from 0.291.2 to 0.307.1. PR #15033 by @dependabot[bot].
- โฌ Bump typer from 0.21.1 to 0.24.1. PR #15032 by @dependabot[bot].
- โฌ Bump actions/download-artifact from 7 to 8. PR #15020 by @dependabot[bot].
- โฌ Bump actions/upload-artifact from 6 to 7. PR #15019 by @dependabot[bot].
0.135.1
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
- โ๏ธ Fix typo in
docs/en/docs/_llm-test.md. PR #15007 by @adityagiri3600. - ๐ Update Skill, optimize context, trim and refactor into references. PR #15031 by @tiangolo.
Internal
0.135.0
Features
- โจ Add support for Server Sent Events. PR #15030 by @tiangolo.
- New docs: Server-Sent Events (SSE).
0.134.0
Features
- โจ Add support for streaming JSON Lines and binary data with
yield. PR #15022 by @tiangolo.- This also upgrades Starlette from
>=0.40.0to>=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.
- This also upgrades Starlette from
Docs
- ๐ Update Library Agent Skill with streaming responses. PR #15024 by @tiangolo.
- ๐ Update docs for responses and new stream with
yield. PR #15023 by @tiangolo. - ๐ Add
awaitinStreamingResponsecode example to allow cancellation. PR #14681 by @casperdcl. - ๐ Rename
docs_src/websocketstodocs_src/websockets_to avoid import errors. PR #14979 by @YuriiMotov.
Internal
- ๐จ Run tests with
pytest-xdistandpytest-cov. PR #14992 by @YuriiMotov.
0.133.1
Features
- ๐ง Add FastAPI Agent Skill. PR #14982 by @tiangolo.
- Read more about it in Library Agent Skills.
Internal
- โ Fix all tests are skipped on Windows. PR #14994 by @YuriiMotov.
0.133.0
0.132.1
0.132.0
Breaking Changes
- ๐๏ธ Add
strict_content_typechecking for JSON requests. PR #14978 by @tiangolo.- Now FastAPI checks, by default, that JSON requests have a
Content-Typeheader with a valid JSON value, likeapplication/json, and rejects requests that don't. - If the clients for your app don't send a valid
Content-Typeheader you can disable this withstrict_content_type=False. - Check the new docs: Strict Content-Type Checking.
- Now FastAPI checks, by default, that JSON requests have a
Internal
- โฌ Bump flask from 3.1.2 to 3.1.3. PR #14949 by @dependabot[bot].
- โฌ Update all dependencies to use
griffelibinstead ofgriffe. PR #14973 by @svlandeg. - ๐จ Fix
FastAPI Peopleworkflow. PR #14951 by @YuriiMotov. - ๐ท Do not run codspeed with coverage as it's not tracked. PR #14966 by @tiangolo.
- ๐ท Do not include benchmark tests in coverage to speed up coverage processing. PR #14965 by @tiangolo.
0.131.0
0.130.0
Features
- โจ Serialize JSON response with Pydantic (in Rust), when there's a Pydantic return type or response model. PR #14962 by @tiangolo.
- This results in 2x (or more) performance increase for JSON responses.
- New docs: Custom Response - JSON Performance.