fastapi breaking changes

pypi

10 curated breaking changes across major versions of fastapi. Use this as a migration checklist before bumping dependencies.

10
changes
Breaking changes by transition
  • 0.131.0 \u2192 0.132.0breaking

    🔒️ Add `strict_content_type` checking for JSON requests. PR [#14978](https://github.com/fastapi/fastapi/pull/14978) by [@tiangolo](https://github.com/tiangolo).

  • 0.131.0 \u2192 0.132.0breaking

    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.

  • 0.131.0 \u2192 0.132.0breaking

    If the clients for your app don't send a valid `Content-Type` header you can disable this with `strict_content_type=False`.

  • 0.131.0 \u2192 0.132.0breaking

    Check the new docs: [Strict Content-Type Checking](https://fastapi.tiangolo.com/advanced/strict-content-type/).

  • 0.130.0 \u2192 0.131.0breaking

    🗑️ Deprecate `ORJSONResponse` and `UJSONResponse`. PR [#14964](https://github.com/fastapi/fastapi/pull/14964) by [@tiangolo](https://github.com/tiangolo).

  • 0.128.8 \u2192 0.129.0breaking

    ➖ Drop support for Python 3.9. PR [#14897](https://github.com/fastapi/fastapi/pull/14897) by [@tiangolo](https://github.com/tiangolo).

  • 0.127.1 \u2192 0.128.0breaking

    ➖ Drop support for `pydantic.v1`. PR [#14609](https://github.com/fastapi/fastapi/pull/14609) by [@tiangolo](https://github.com/tiangolo).

  • 0.126.0 \u2192 0.127.0breaking

    🔊 Add deprecation warnings when using `pydantic.v1`. PR [#14583](https://github.com/fastapi/fastapi/pull/14583) by [@tiangolo](https://github.com/tiangolo).

  • unknown \u2192 0.125.0breaking

    🔧 Drop support for Python 3.8. PR [#14563](https://github.com/fastapi/fastapi/pull/14563) by [@tiangolo](https://github.com/tiangolo).

  • unknown \u2192 0.125.0breaking

    This would actually not be a _breaking_ change as no code would really break. Any Python 3.8 installer would just refuse to install the latest version of FastAPI and would only install 0.124.4. Only marking it as a "breaking change" to make it visible.

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/pypi/fastapi