Upgrading starlette 0.5 to 0.6
Unknown0.5.5 → 0.6.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:
function request_response(func: typing.Callable) -> ASGIApp - removed:
function websocket_session(func: typing.Callable) -> ASGIApp - changed:
method Starlette.add_graphql_route(path: str, schema: typing.Any, executor: typing.Any=…) -> None → method Starlette.add_graphql_route(path: str, schema: typing.Any) -> None - changed:
method Starlette.add_route(path: str, route: typing.Callable, methods: typing.Sequence[str]=…) -> None → method Starlette.add_route(path: str, route: typing.Callable, methods: typing.List[str]=…) -> None - changed:
method Starlette.mount(path: str, app: ASGIApp, methods: typing.Sequence[str]=…) -> None → method Starlette.mount(path: str, app: ASGIApp) -> None - changed:
method Starlette.route(path: str, methods: typing.Sequence[str]=…) -> typing.Callable → method Starlette.route(path: str, methods: typing.List[str]=…) -> typing.Callable - added:
method Starlette.url_path_for(name: str, **path_params: str) -> URL - added:
property Starlette.routes -> typing.List[BaseRoute]
- changed:
constructor URL(url: str=…, scope: Scope=…) -> None → constructor URL(url: str=…, scope: Scope=…, **components: typing.Any) -> None - added:
method MutableHeaders.append(key: str, value: str) -> None - added:
property URL.is_secure -> bool
- changed:
async method HTTPEndpoint.dispatch(request: Request, **kwargs: typing.Any) -> Response → async method HTTPEndpoint.dispatch(request: Request) -> Response - changed:
async method HTTPEndpoint.method_not_allowed(request: Request, **kwargs: typing.Any) -> Response → async method HTTPEndpoint.method_not_allowed(request: Request) -> Response - changed:
async method WebSocketEndpoint.on_connect(websocket: WebSocket, **kwargs: typing.Any) -> None → async method WebSocketEndpoint.on_connect(websocket: WebSocket) -> None
- added:
async method BaseHTTPMiddleware.asgi(receive: Receive, send: Send, scope: Scope) -> None - added:
async method BaseHTTPMiddleware.call_next(request: Request) -> ASGIInstance - added:
async method BaseHTTPMiddleware.dispatch(request: Request, call_next: typing.Callable) -> ASGIInstance - added:
class BaseHTTPMiddleware - added:
constructor BaseHTTPMiddleware(app: ASGIApp) -> None
- added:
async method SessionMiddleware.asgi(receive: Receive, send: Send, scope: Scope) -> None - added:
class SessionMiddleware - added:
constructor SessionMiddleware(app: ASGIApp, secret_key: str, session_cookie: str=…) -> None
- added:
variable ENFORCE_DOMAIN_WILDCARD
- changed:
constructor WSGIResponder(app: typing.Callable, executor: ThreadPoolExecutor, scope: Scope) -> None → constructor WSGIResponder(app: typing.Callable, scope: Scope) -> None
- added:
async function empty_receive() -> Message - added:
method Request.url_for(name: str, **path_params: typing.Any) -> URL - added:
property Request.path_params -> dict - added:
property Request.receive -> Receive - added:
property Request.session -> dict
- removed:
class Path(Route) - removed:
class PathPrefix(Route) - removed:
class ProtocolRouter - removed:
constructor Path(path: str, app: ASGIApp, methods: typing.Sequence[str]=…, protocol: str=…) -> None - removed:
constructor PathPrefix(path: str, app: ASGIApp, methods: typing.Sequence[str]=…) -> None - removed:
constructor ProtocolRouter(protocols: typing.Dict[str, ASGIApp]) -> None - removed:
method Path.matches(scope: Scope) -> typing.Tuple[bool, Scope] - removed:
method PathPrefix.matches(scope: Scope) -> typing.Tuple[bool, Scope] - changed:
class Route → class Route(BaseRoute) - changed:
constructor Router(routes: typing.List[Route], default: ASGIApp=…) -> None → constructor Router(routes: typing.List[BaseRoute]=…, default: ASGIApp=…) -> None - changed:
method Route.matches(scope: Scope) -> typing.Tuple[bool, Scope] → method Route.matches(scope: Scope) -> typing.Tuple[Match, Scope] - added:
class BaseRoute - added:
class Match(Enum) - added:
class Mount(BaseRoute) - added:
class NoMatchFound(Exception) - added:
class WebSocketRoute(BaseRoute) - added:
constructor Mount(path: str, app: ASGIApp) -> None - added:
constructor Route(path: str, *, endpoint: typing.Callable, methods: typing.List[str]=…) -> None - added:
constructor WebSocketRoute(path: str, *, endpoint: typing.Callable) -> None - added:
field Match.FULL - added:
field Match.NONE - added:
field Match.PARTIAL - added:
function get_name(endpoint: typing.Callable) -> str - added:
function replace_params(path: str, **path_params: str) -> typing.Tuple[str, dict] - added:
function request_response(func: typing.Callable) -> ASGIApp - added:
function websocket_session(func: typing.Callable) -> ASGIApp - added:
method BaseRoute.matches(scope: Scope) -> typing.Tuple[Match, Scope] - added:
method BaseRoute.url_path_for(name: str, **path_params: str) -> URL - added:
method Mount.matches(scope: Scope) -> typing.Tuple[Match, Scope] - added:
method Mount.url_path_for(name: str, **path_params: str) -> URL - added:
method Route.url_path_for(name: str, **path_params: str) -> URL - added:
method Router.add_graphql_route(path: str, schema: typing.Any, executor: typing.Any=…) -> None - added:
method Router.add_route(path: str, endpoint: typing.Callable, methods: typing.List[str]=…) -> None - added:
method Router.add_websocket_route(path: str, endpoint: typing.Callable) -> None - added:
method Router.mount(path: str, app: ASGIApp) -> None - added:
method Router.route(path: str, methods: typing.List[str]=…) -> typing.Callable - added:
method Router.url_path_for(name: str, **path_params: str) -> URL - added:
method Router.websocket_route(path: str) -> typing.Callable - added:
method WebSocketRoute.matches(scope: Scope) -> typing.Tuple[Match, Scope] - added:
method WebSocketRoute.url_path_for(name: str, **path_params: str) -> URL - added:
property Mount.routes -> typing.List[BaseRoute]
- removed:
class StaticFile - removed:
constructor StaticFile(*, path: str) -> None
- added:
method WebSocket.url_for(name: str, **path_params: typing.Any) -> URL - added:
property WebSocket.path_params -> dict