Releases: fastapi/fastapi
Releases · fastapi/fastapi
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
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.