Skip to content

Releases: fastapi/fastapi

0.135.3

01 Apr 16:23

Choose a tag to compare

Features

Docs

  • ✏️ Fix typo for client_secret in OAuth2 form docstrings. PR #14946 by @bysiber.

Internal

0.135.2

23 Mar 14:11

Choose a tag to compare

Upgrades

  • ⬆️ Increase lower bound to pydantic >=2.9.0. and fix the test suite. PR #15139 by @svlandeg.

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.toml with entrypoint. 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=_blank for 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_digits and decimal_places. PR #14944 by @YuriiMotov.
  • 📝 Add dates to release notes. PR #15001 by @YuriiMotov.

Translations

Internal

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.