Releases: fastapi/fastapi
Releases · fastapi/fastapi
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.
0.129.2
Internal
- ⬆️ Upgrade pytest. PR #14959 by @tiangolo.
- 👷 Fix CI, do not attempt to publish
fastapi-slim. PR #14958 by @tiangolo. - ➖ Drop support for
fastapi-slim, no more versions will be released, use only"fastapi[standard]"orfastapi. PR #14957 by @tiangolo. - 🔧 Update pyproject.toml, remove unneeded lines. PR #14956 by @tiangolo.
0.129.1
Fixes
- ♻️ Fix JSON Schema for bytes, use
"contentMediaType": "application/octet-stream"instead of"format": "binary". PR #14953 by @tiangolo.
Docs
- 🔨 Add Kapa.ai widget (AI chatbot). PR #14938 by @tiangolo.
- 🔥 Remove Python 3.9 specific files, no longer needed after updating translations. PR #14931 by @tiangolo.
- 📝 Update docs for JWT to prevent timing attacks. PR #14908 by @tiangolo.
Translations
- ✏️ Fix several typos in ru translations. PR #14934 by @argoarsiks.
- 🌐 Update translations for ko (update-all and add-missing). PR #14923 by @YuriiMotov.
- 🌐 Update translations for uk (add-missing). PR #14922 by @YuriiMotov.
- 🌐 Update translations for zh-hant (update-all and add-missing). PR #14921 by @YuriiMotov.
- 🌐 Update translations for fr (update-all and add-missing). PR #14920 by @YuriiMotov.
- 🌐 Update translations for de (update-all) . PR #14910 by @YuriiMotov.
- 🌐 Update translations for ja (update-all). PR #14916 by @YuriiMotov.
- 🌐 Update translations for pt (update-all). PR #14912 by @YuriiMotov.
- 🌐 Update translations for es (update-all and add-missing). PR #14911 by @YuriiMotov.
- 🌐 Update translations for zh (update-all). PR #14917 by @YuriiMotov.
- 🌐 Update translations for uk (update-all). PR #14914 by @YuriiMotov.
- 🌐 Update translations for tr (update-all). PR #14913 by @YuriiMotov.
- 🌐 Update translations for ru (update-outdated). PR #14909 by @YuriiMotov.
Internal
- 👷 Always run tests on push to
masterbranch and when run by scheduler. PR #14940 by @YuriiMotov. - 🎨 Upgrade typing syntax for Python 3.10. PR #14932 by @tiangolo.
- ⬆ Bump cryptography from 46.0.4 to 46.0.5. PR #14892 by @dependabot[bot].
- ⬆ Bump pillow from 12.1.0 to 12.1.1. PR #14899 by @dependabot[bot].