0.141.1
Fixes π Fix support for background tasks and headers from dependencies in app.frontend(). PR #16105 by @tiangolo. Docs π Document FASTAPI_ENV in FastAPI CLI guide. PR #16104 by @tiangolo.
Fixes π Fix support for background tasks and headers from dependencies in app.frontend(). PR #16105 by @tiangolo. Docs π Document FASTAPI_ENV in FastAPI CLI guide. PR #16104 by @tiangolo.
Features β¨ Add app.frontend(check_dir="auto"), to make local development more convenient with fastapi dev. PR #16102 by @tiangolo.
Fixes π Fix status_code being ignored for SSE and JSONL streaming endpoints. PR #15937 by @SAURABHSALVE. Docs π Fix format_sse_event docstring rendering of \n\n terminator. PR #15613 by @AshNicolus. π Add API reference page for fastapi.sse. PR #15930 by @SAURABHSALVE.
Fixes π Fix line splitting in format_sse_event to comply with SSE spec. PR #15515 by @Zawwarsami16.
Fixes π Fix response_model_* params ignored for non-generator endpoints with Iterable[..] return type. PR #15093 by @YuriiMotov.
Fixes π Fix handling sequences with nested Annotated types. PR #14874 by @YuriiMotov. Internal π Accept any base test failure as regression. PR #16092 by @tiangolo. π Preserve pytest exit code in regression check. PR #16091 by @tiangolo. β Test PR regressions against base code. PR #16090 by @tiangolo.
Fixes π Fix exclude_defaults not propagated to dict keys and values in jsonable_encoder. PR #16043 by @MBGrao. Internal β¬ Bump gitpython from 3.1.50 to 3.1.54. PR #16047 by @dependabot[bot]. β¬ Bump pymdown-extensions from 10.21.3 to 11.0. PR #16048 by @dependabot[bot]. β¬ Bump pyasn1 from 0.6.3 to 0.6.4. PR #16045 by @dependabot[bot].
Fixes π Fix stream item type lost when using include_router(). PR #15077 by @alex-raw.
Refactors β‘οΈ Avoid flattening dependencies for OpenAPI. PR #16076 by @tiangolo. Internal β¬οΈ Upgrade latest-changes to 0.7.1. PR #16077 by @tiangolo. π· Add OpenAPI dependency benchmarks. PR #16075 by @tiangolo.
Refactors β‘οΈ Avoid flattening dependencies for request parameters, mainly for OpenAPI. PR #16073 by @tiangolo.
Refactors β‘οΈ Avoid flattening dependencies for body fields. PR #16071 by @tiangolo.
Refactors β‘οΈ Skip unused dependency repeat bookkeeping. PR #16069 by @tiangolo.
Refactors β‘οΈ Avoid repeated dependency flattening in OpenAPI. PR #16067 by @tiangolo.
Refactors β‘οΈ Stop retaining flat dependency trees. PR #16065 by @tiangolo. Internal π· Add new memory benchmark. PR #16064 by @tiangolo.
Refactors β»οΈ Update the lru_cache limit for dependencies to account for large apps. PR #16062 by @tiangolo.
Refactors β‘οΈ Reduce memory usage in dependencies. PR #16049 by @tiangolo. Docs π Fix links in docs. PR #15967 by @YuriiMotov. π Add Library Skills documentation. PR #16041 by @tiangolo. π Update docs to use uv projects by default. PR #16032 by @tiangolo. π Restructure FastAPI People and related pages. PR #16015 by @tiangolo. Internal π· Add CI memory benchmark. PR #16046 by @tiangolo. π₯ Update Fastβ¦
Fixes π Refactor router route building to make it thread-safe, mainly relevant for tests running in parallel threads (uncommon). PR #16013 by @tiangolo.
Fixes π Fix frontend fallback support for doted paths like /users/john.doe. PR #16011 by @tiangolo. Docs π Fix topic repository list not being displayed and skip_users not being applied. PR #15995 by @YuriiMotov. Translations π Update translations for tr (update-outdated). PR #16005 by @tiangolo. π Update translations for zh-hant (update-outdated). PR #15996 by @tiangolo. π Update translations forβ¦
Features β¨ Support dependencies in app.frontend(), e.g. for automatic cookie authentication for the frontend. PR #15908 by @tiangolo. Translations π Update translations for fr (update-outdated). PR #15897 by @tiangolo. π Update translations for ja (update-outdated). PR #15895 by @tiangolo. π Update translations for zh-hant (update-outdated). PR #15896 by @tiangolo. π Update translations for de (upβ¦
Refactors β»οΈ Make app.frontend() return 404 for methods other than GET or HEAD with no static file matches. PR #15863 by @tiangolo. Internal π§ Update sponsors: remove Stainless. PR #15862 by @tiangolo. β»οΈ Refactor how sponsors data is handled for banners. PR #15852 by @tiangolo.
Refactors β»οΈ Refactor Library Skills, make info easier to find for agents. PR #15841 by @tiangolo. Internal π· Simplify pull request workflow triggers. PR #15836 by @tiangolo. π· Update issue-manager to 0.7.1. PR #15833 by @tiangolo. β¬οΈ Update issue-manager to 0.7.0. PR #15831 by @tiangolo. π§ Update sponsors: Add TestMu again. PR #15830 by @tiangolo. ποΈ Update zizmor workflow security checks. PR #15β¦
Features β¨ Add support for app.frontend("/", directory="dist") and router.frontend("/", directory="dist"). PR #15800 by @tiangolo. Read the docs: Frontend. Docs π Fix typo in release notes. PR #15807 by @tiangolo. π Add app.frontend() instructions to Agent Library Skill. PR #15805 by @tiangolo. π Update release notes link. PR #15802 by @tiangolo. βοΈ Update white space characters in bigger apps. PRβ¦
Features β¨ Add iter_route_contexts() for advanced use cases that used to use router.routes (e.g. Jupyverse). PR #15785 by @tiangolo. Translations π Fix broken Markdown in Korean custom response docs. PR #15774 by @kooqooo. π Update translations for fr (update-outdated). PR #15761 by @tiangolo. π Update translations for zh-hant (update-outdated). PR #15760 by @tiangolo. π Update translations for deβ¦
Fixes π¨ Fix typing checks for APIRoute. PR #15765 by @tiangolo. π Fix bug, allow empty path in path operation in prefixless router. PR #15763 by @tiangolo.
Breaking Changes β»οΈ Refactor internals to preserve APIRouter and APIRoute instances. PR #15745 by @tiangolo. Unblocks β¨ SO MANY THINGS β¨ Before this, router.include_router(other_router) would take each path operation from other_router and "clone" it, or recreate it from scratch. This would mean that in the end there was only one top level router, part of the app. The way it is structured here is tβ¦
Refactors β»οΈ Do not accept underscore headers when using convert_underscores=True (the default). PR #15589 by @tiangolo.
Refactors β»οΈ Validate Server Sent Event fields to avoid applications from sending broken data. PR #15588 by @tiangolo. Docs π Document --entrypoint CLI option. PR #15464 by @YuriiMotov. π Update and simplify docs about help and management. PR #15583 by @tiangolo. π Add docs references to central contributing docs. PR #15580 by @tiangolo. π Update security policy. PR #15577 by @tiangolo. π± Update sβ¦
Upgrades β¬οΈ Update Pydantic v2 code to address deprecations. PR #15101 by @svlandeg. Internal π¨ Tweak translation script. PR #15174 by @YuriiMotov. β¬ Bump mkdocs-material from 9.7.1 to 9.7.6. PR #15408 by @dependabot[bot]. β¬ Bump inline-snapshot from 0.31.1 to 0.32.6. PR #15409 by @dependabot[bot]. β¬ Bump pytest-codspeed from 4.3.0 to 4.4.0. PR #15407 by @dependabot[bot]. β¬ Bump pytest-cov from 7.β¦
Upgrades β¬οΈ Support free-threaded Python 3.14t. PR #15149 by @svlandeg.