unstale

pypi / fastapi

fastapi

What changed in fastapi 0.129 to 0.143, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.

9 breaking2 deprecations12 new APIs and options2 performance3 behavior and defaults21 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

fastapi 0.1435 changes

Breaking changes 2

  • Set this environment variable to true to retain automatic OpenTelemetry exporter setup from OTEL_* environment variables.

    0.143.0release notes

  • Set auto_configure to true in the FastAPI telemetry configuration to retain automatic OpenTelemetry exporter setup.

    0.143.0release notes

Fixes and other changes 3

  • Fixes serialization of non-finite floats in JSONL and SSE streams.

    0.143.3release notes

  • Fixes blocking frontend fallback file checks.

    0.143.2release notes

  • Fixes included route metadata in iter_route_contexts().

    0.143.1release notes

fastapi 0.1425 changes

New APIs and options 1

Fixes and other changes 4

  • FastAPI telemetry is isolated for excluded requests.

    0.142.4release notes

  • Cache OpenTelemetry tracers to preserve warning deduplication.

    0.142.3release notes

  • Startup is allowed to continue when automatic OpenTelemetry configuration fails.

    0.142.2release notes

  • Fixes repeated endpoint wrapping in included routers.

    0.142.1release notes

fastapi 0.1412 changes

New APIs and options 1

  • Adds app.frontend with check_dir="auto" to make local development more convenient with fastapi dev.

    0.141.0release notes

Fixes and other changes 1

  • Fix support for background tasks and headers from dependencies in app.frontend().

    0.141.1release notes

fastapi 0.1407 changes

Performance 1

  • Reduced memory usage in dependencies, which may lower FastAPI’s runtime memory consumption.

    0.140.0release notes

Fixes and other changes 6

  • Fixes status_code being ignored for SSE and JSONL streaming endpoints.

    0.140.13release notes

  • Fixes line splitting to comply with the SSE spec.

    0.140.12release notes

  • Fixes response_model_* parameters being ignored for non-generator endpoints with Iterable return types.

    0.140.11release notes

  • Fix handling sequences with nested Annotated types.

    0.140.10release notes

  • Fixes exclude_defaults not being propagated to dictionary keys and values during encoding.

    0.140.9release notes

  • Fixes the stream item type being lost when using include_router().

    0.140.8release notes

fastapi 0.1393 changes

New APIs and options 1

  • app.frontend() now supports dependencies, for example to enable automatic cookie authentication for the frontend.

    0.139.0release notes

Fixes and other changes 2

  • Router route building is thread-safe, mainly benefiting tests running in parallel threads.

    0.139.2release notes

  • Frontend fallback now supports dotted paths such as /users/john.doe.

    0.139.1release notes

fastapi 0.1383 changes

Breaking changes 1

  • Returns 404 for methods other than GET or HEAD when there are no static file matches.

    0.138.2release notes

New APIs and options 2

  • Adds support for serving a frontend from a directory using app.frontend, allowing developers to configure the frontend at a path such as /.

    0.138.0release notes

  • Adds support for serving a frontend from a directory using router.frontend, allowing developers to configure the frontend at a path such as /.

    0.138.0release notes

fastapi 0.1378 changes

Breaking changes 1

  • router.routes can now contain intermediate objects forming a tree, not just APIRoute objects; treat it as an internal implementation detail rather than iterating or modifying it as a flat list.

    0.137.0release notes

New APIs and options 3

  • Adds iter_route_contexts() for advanced use cases that previously used router.routes.

    0.137.2release notes

  • APIRouter adds an experimental handle method, allowing a router to customize how it handles requests.

    0.137.0release notes

  • APIRouter adds an experimental matches method, allowing a router to customize how it matches requests, such as matching on a specific header.

    0.137.0release notes

Behavior and default changes 2

  • APIRouter instances are preserved when included instead of having their routes copied, enabling router customization and saving memory in some cases.

    0.137.0release notes

  • Included routers and routes are no longer copied, so routes added after inclusion are reflected, and a subrouter can be included before its routes are added.

    0.137.0release notes

Fixes and other changes 2

  • Typing checks for APIRoute are fixed.

    0.137.1release notes

  • Path operations in a prefixless router now allow an empty path.

    0.137.1release notes

fastapi 0.1363 changes

Breaking changes 1

  • With the default convert_underscores=True, underscore headers are no longer accepted.

    0.136.3release notes

Fixes and other changes 2

  • Server Sent Event fields are validated to prevent applications from sending broken data.

    0.136.2release notes

  • FastAPI supports free-threaded Python 3.14t.

    0.136.0release notes

fastapi 0.1355 changes

Breaking changes 2

  • The April Fool's @app.vibe() decorator was removed.

    0.135.4release notes

  • The minimum supported Pydantic version is now 2.9.0, affecting which versions can be installed with FastAPI.

    0.135.2release notes

New APIs and options 2

  • Adds support for the @app.vibe() decorator.

    0.135.3release notes

  • FastAPI adds support for Server-Sent Events (SSE).

    0.135.0release notes

Fixes and other changes 1

  • Avoids yielding from a TaskGroup; it is used only as an async context manager and closed in the request async exit stack.

    0.135.1release notes

fastapi 0.1341 changes

New APIs and options 1

  • Endpoints can stream JSON Lines and binary data with yield.

    0.134.0release notes

fastapi 0.1332 changes

New APIs and options 1

  • Adds a FastAPI Agent Skill for use with library agent skills.

    0.133.1release notes

Behavior and default changes 1

  • FastAPI now supports Starlette 1.0.0 and later.

    0.133.0release notes

fastapi 0.1321 changes

Breaking changes 1

  • FastAPI now rejects JSON requests without a valid JSON Content-Type header by default; set strict_content_type=False to disable the check.

    0.132.0release notes

fastapi 0.1312 changes

Deprecations 2

fastapi 0.1301 changes

Performance 1

  • JSON responses are serialized with Pydantic in Rust when there is a Pydantic return type or response model, resulting in a 2x or greater performance increase.

    0.130.0release notes

fastapi 0.1291 changes

Breaking changes 1

  • Support for fastapi-slim is dropped and no further versions will be released; use fastapi[standard] or fastapi instead.

    0.129.2release notes