Skip to content

Releases: fastapi/fastapi

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.

0.129.1

21 Feb 13:09

Choose a tag to compare

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

Internal

0.129.0

12 Feb 13:54

Choose a tag to compare

Breaking Changes

Refactors

Docs

  • 📝 Update highlights in webhooks docs. PR #14905 by @tiangolo.
  • 📝 Update source examples and docs from Python 3.9 to 3.10. PR #14900 by @tiangolo.

Internal

  • 🔨 Update docs.py scripts to migrate Python 3.9 to Python 3.10. PR #14906 by @tiangolo.