Bump fastapi from 0.105.0 to 0.108.0
Bumps fastapi from 0.105.0 to 0.108.0.
Release notes
Sourced from fastapi's releases.
0.108.0
Upgrades
⬆ ️ Upgrade Starlette to>=0.29.0,<0.33.0
, update docs and usage of templates with new Starlette arguments. PR #10846 by@tiangolo
.0.107.0
Upgrades
⬆ ️ Upgrade Starlette to 0.28.0. PR #9636 by@adriangb
.Docs
📝 Add docs: Node.js script alternative to update OpenAPI for generated clients. PR #10845 by@alejsdev
.📝 Restructure Docs section in Contributing page. PR #10844 by@alejsdev
.0.106.0
Breaking Changes
Using resources from dependencies with
yield
in background tasks is no longer supported.This change is what supports the new features, read below.
🤓 Dependencies with
yield
,HTTPException
and Background TasksDependencies with
yield
now can raiseHTTPException
and other exceptions afteryield
.🎉 Read the new docs here: Dependencies with
yield
andHTTPException
.from fastapi import Depends, FastAPI, HTTPException from typing_extensions import Annotated app = FastAPI() data = { "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"}, "portal-gun": {"description": "Gun to create portals", "owner": "Rick"}, } class OwnerError(Exception): pass def get_username(): try: yield "Rick" except OwnerError as e: raise HTTPException(status_code=400, detail=f"Onwer error: {e}") </tr></table>
... (truncated)
Commits
-
fe0249a
🔖 Release version 0.108.0 -
43e2223
📝 Update release notes -
c55f90d
⬆ ️ Upgrade Starlette to>=0.29.0,<0.33.0
, update docs and usage of template... -
f933fd6
🔖 Release version 0.107.0 -
9090bf4
📝 Update release notes -
d633953
⬆ ️ Upgrade Starlette to 0.28.0 (#9636) -
a751032
📝 Update release notes -
505ae06
📝 Add docs: Node.js script alternative to update OpenAPI for generated client... -
4de60e1
📝 Update release notes -
8b5843e
📝 Restructure Docs section in Contributing page (#10844) - Additional commits viewable in compare view