Upgrading starlette 0.1 to 0.2
Unknown0.1.17 → 0.2.3
UnknownUpgrade verdict
DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.
In plain terms
- DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
- Their commits are listed with this comparison.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
export asgi_application - added:
export App
- added:
class App - added:
constructor App(debug=…) -> None - added:
function request_response(func) - added:
function websocket_session(func) - added:
method App.add_exception_handler(exc_class: type, handler) -> None - added:
method App.add_route(path: str, route, methods=…) -> None - added:
method App.add_websocket_route(path: str, route) -> None - added:
method App.exception_handler(exc_class: type) - added:
method App.mount(path: str, app: ASGIApp, methods=…) -> None - added:
method App.route(path: str) - added:
method App.websocket_route(path: str) - added:
property App.debug -> bool
- added:
function get_debug_response(request, exc)
- removed:
function asgi_application(func)
- added:
class ExceptionMiddleware - added:
class HTTPException(Exception) - added:
constructor ExceptionMiddleware(app, debug=…) - added:
constructor HTTPException(status_code: int, detail: str=…) -> None - added:
method ExceptionMiddleware.add_exception_handler(exc_class, handler) - added:
method ExceptionMiddleware.http_exception(request: Request, exc: type) -> Response - added:
method ExceptionMiddleware.server_error(request: Request, exc: type) -> Response
- removed:
async method Middleware.handler(scope, receive, send) - removed:
class Middleware - removed:
constructor Middleware(app)
- changed:
constructor Path(path: str, app: ASGIApp, methods: typing.Sequence[str]=…) -> None → constructor Path(path: str, app: ASGIApp, methods: typing.Sequence[str]=…, protocol: str=…) -> None
- changed:
function TestClient(app: typing.Callable, base_url: str=…) -> _TestClient → function TestClient(app: typing.Callable, base_url: str=…, raise_server_exceptions=…) -> _TestClient - added:
method WebSocketTestSession.receive() - added:
method WebSocketTestSession.send(message)
- added:
async method View.dispatch(request: Request, **kwargs) -> Response - added:
async method View.method_not_allowed(request: Request, **kwargs) -> Response - added:
class View - added:
constructor View(scope: Scope)
- added:
class WebSocketClose - added:
constructor WebSocketClose(code=…)