Releases ยท fastapi/fastapi

0.135.2

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

  • ๐ŸŒ Update translations for zh (update-outdated). PR #15177 by @tiangolo.
  • ๐ŸŒ Update translations for zh-hant (update-outdated). PR #15178 by @tiangolo.
  • ๐ŸŒ Update translations for zh-hant (add-missing). PR #15176 by @tiangolo.
  • ๐ŸŒ Update translations for zh (add-missing). PR #15175 by @tiangolo.
  • ๐ŸŒ Update translations for ja (update-outdated). PR #15171 by @tiangolo.
  • ๐ŸŒ Update translations for ko (update-outdated). PR #15170 by @tiangolo.
  • ๐ŸŒ Update translations for tr (update-outdated). PR #15172 by @tiangolo.
  • ๐ŸŒ Update translations for ko (add-missing). PR #15168 by @tiangolo.
  • ๐ŸŒ Update translations for ja (add-missing). PR #15167 by @tiangolo.
  • ๐ŸŒ Update translations for tr (add-missing). PR #15169 by @tiangolo.
  • ๐ŸŒ Update translations for fr (update-outdated). PR #15165 by @tiangolo.
  • ๐ŸŒ Update translations for fr (add-missing). PR #15163 by @tiangolo.
  • ๐ŸŒ Update translations for uk (update-outdated). PR #15160 by @tiangolo.
  • ๐ŸŒ Update translations for uk (add-missing). PR #15158 by @tiangolo.
  • ๐ŸŒ Update translations for pt (add-missing). PR #15157 by @tiangolo.
  • ๐ŸŒ Update translations for pt (update-outdated). PR #15159 by @tiangolo.
  • ๐ŸŒ Update translations for es (update-outdated). PR #15155 by @tiangolo.
  • ๐ŸŒ Update translations for es (add-missing). PR #15154 by @tiangolo.
  • ๐ŸŒ Update translations for de (update-outdated). PR #15156 by @tiangolo.
  • ๐ŸŒ Update translations for ru (update-and-add). PR #15152 by @tiangolo.
  • ๐ŸŒ Update translations for de (add-missing). PR #15153 by @tiangolo.

Internal

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

  • ๐Ÿ‘ฅ Update FastAPI People - Experts. PR #15037 by @tiangolo.
  • ๐Ÿ‘ฅ Update FastAPI People - Contributors and Translators. PR #15029 by @tiangolo.
  • ๐Ÿ‘ฅ Update FastAPI GitHub topic repositories. PR #15036 by @tiangolo.

0.135.0

Features

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.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

Features

Internal

0.133.0

0.132.1

Refactors

  • โ™ป๏ธ Refactor logic to handle OpenAPI and Swagger UI escaping data. PR #14986 by @tiangolo.

Internal

0.132.0

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

  • โฌ† Bump flask from 3.1.2 to 3.1.3. PR #14949 by @dependabot[bot].
  • โฌ† Update all dependencies to use griffelib instead of griffe. PR #14973 by @svlandeg.
  • ๐Ÿ”จ Fix FastAPI People workflow. 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

Breaking Changes

  • ๐Ÿ—‘๏ธ Deprecate ORJSONResponse and UJSONResponse. PR #14964 by @tiangolo.

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.