Skip to content

Releases: fastapi/fastapi

0.135.1

01 Mar 18:18

Choose a tag to compare

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

Internal

0.135.0

01 Mar 09:28

Choose a tag to compare

Features

0.134.0

27 Feb 21:17

Choose a tag to compare

Features

  • ✨ Add support for streaming JSON Lines and binary data with yield. PR #15022 by @tiangolo.
    • This also upgrades Starlette from >=0.40.0 to >=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.

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 await in StreamingResponse code example to allow cancellation. PR #14681 by @casperdcl.
  • 📝 Rename docs_src/websockets to docs_src/websockets_ to avoid import errors. PR #14979 by @YuriiMotov.

Internal

0.133.1

25 Feb 18:17

Choose a tag to compare

Features

Internal

0.133.0

24 Feb 09:52

Choose a tag to compare

Upgrades

0.132.1

24 Feb 09:33

Choose a tag to compare

Refactors

  • ♻️ Refactor logic to handle OpenAPI and Swagger UI escaping data. PR #14986 by @tiangolo.

Internal

0.132.0

23 Feb 17:55

Choose a tag to compare

Breaking Changes

  • 🔒️ Add strict_content_type checking for JSON requests. PR #14978 by @tiangolo.
    • Now FastAPI checks, by default, that JSON requests have a Content-Type header with a valid JSON value, like application/json, and rejects requests that don't.
    • If the clients for your app don't send a valid Content-Type header you can disable this with strict_content_type=False.
    • Check the new docs: Strict Content-Type Checking.

Internal

0.131.0

22 Feb 16:37

Choose a tag to compare

Breaking Changes

  • 🗑️ Deprecate ORJSONResponse and UJSONResponse. PR #14964 by @tiangolo.

0.130.0

22 Feb 16:19

Choose a tag to compare

Features

  • ✨ Serialize JSON response with Pydantic (in Rust), when there's a Pydantic return type or response model. PR #14962 by @tiangolo.

0.129.2

21 Feb 17:25

Choose a tag to compare

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]" or fastapi. PR #14957 by @tiangolo.
  • 🔧 Update pyproject.toml, remove unneeded lines. PR #14956 by @tiangolo.