RepoJournal
FastAPI & Pydantic

FastAPI & Pydantic

FastAPI and the Pydantic + SQLModel async-Python stack

Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

FASTAPI REWIRES ROUTER INTERNALS, UNBLOCKS MAJOR FEATURES

By RepoJournal · Filed · About FastAPI & Pydantic

1 person shipped this

FastAPI 0.137.0 shipped overnight with a breaking refactor that finally preserves APIRouter instances instead of cloning them on include_router calls.

This is the architectural fix the team has been chasing for years [1]. Before this release, every time you called `router.include_router(other_router)`, FastAPI would disassemble each path operation and rebuild it from scratch, collapsing your entire dependency graph into a single flat router [2]. That's gone now. The refactor preserves the original router and route instances through the include chain, which unblocks middleware at the router level, better performance on large apps with dozens of subrouters, and cleaner introspection tools. The breaking change here is real but surgical: if you're reaching into router internals to inspect or modify routes after include_router, your code will break. Most teams won't notice. But if you've built custom tooling around the old flat structure, audit your code before upgrading [3]. The release notes are still being finalized [4], so check the PR diffs for specifics before deploying to production.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] 0.137.0 ↗ fastapi/fastapi
  2. [2] ♻️ Refactor internals to preserve `APIRouter` and `APIRoute` instances ↗ fastapi/fastapi
  3. [3] 🔖 Release version 0.137.0 ↗ fastapi/fastapi
  4. [4] 📝 Update release notes ↗ fastapi/fastapi

Quick answers

What shipped in FastAPI & Pydantic on June 15, 2026?
FastAPI 0.137.0 shipped overnight with a breaking refactor that finally preserves APIRouter instances instead of cloning them on include_router calls. In total, 3 commits, 3 pull requests, and 1 releases landed.
Who contributed to FastAPI & Pydantic on June 15, 2026?
1 developer shipped this update, including tiangolo.
What were the notable FastAPI & Pydantic updates?
0.137.0, ♻️ Refactor internals to preserve `APIRouter` and `APIRoute` instances, and 🔖 Release version 0.137.0.

More from FastAPI & Pydantic

Daily updates, in your inbox

Follow FastAPI & Pydantic

Keep up with FastAPI & Pydantic in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.