Upgrading starlette 0.44 to 0.45
Breaking0.44.0 → 0.45.3Breaking2Platform1Fixed4Other1
BreakingUpgrade verdict
2 breaking changes and a platform requirement change.
In plain terms
- Remove ExceptionMiddleware import proxy from starlette.exceptions module.
- Remove deprecated WS_1004_NO_STATUS_RCVD and WS_1005_ABNORMAL_CLOSURE.
- Drop Python 3.8.
Must act 3 items need code or config changes
Python requirement changed in 0.45.0: >=3.8 → >=3.9.
What you must change
Breaking2
Remove ExceptionMiddleware import proxy from starlette.exceptions module.
ExceptionMiddlewarestarlette.exceptionsRemove deprecated WS_1004_NO_STATUS_RCVD and WS_1005_ABNORMAL_CLOSURE.
WS_1004_NO_STATUS_RCVDWS_1005_ABNORMAL_CLOSUREPlatform1
Drop Python 3.8.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
constructor HTTPException(status_code: int, detail: str | None=…, headers: typing.Mapping[str, str] | None=…) -> None → constructor HTTPException(status_code: int, detail: str | None=…, headers: Mapping[str, str] | None=…) -> None
- removed:
property WebSocketTestSession.should_close -> anyio.Event