Upgrading starlette 0.16 to 0.17
Breaking0.16.0 → 0.17.1Breaking1New2Fixed7
BreakingUpgrade verdict
1 breaking change.
In plain terms
- GraphQL integration is no longer included in Starlette.
Must act 1 item needs code or config changes
What you must change
Breaking1
Removes GraphQL support.
GraphQLAppAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- added:
variable T
- changed:
method ImmutableMultiDict.getlist(key: typing.Any) -> typing.List[str] → method ImmutableMultiDict.getlist(key: typing.Any) -> typing.List[typing.Any]
- removed:
async method GraphQLApp.execute(query, variables=…, context=…, operation_name=…) - removed:
async method GraphQLApp.handle_graphiql(request: Request) -> Response - removed:
async method GraphQLApp.handle_graphql(request: Request) -> Response - removed:
class GraphQLApp - removed:
constructor GraphQLApp(schema: graphene.Schema, executor_class: type=…, graphiql: bool=…) -> None - removed:
variable AsyncioExecutor - removed:
variable GRAPHIQL - removed:
variable GraphQLError - removed:
variable format_graphql_error - removed:
variable graphene
- changed:
method Response.delete_cookie(key: str, path: str=…, domain: str=…) -> None → method Response.delete_cookie(key: str, path: str=…, domain: str=…, secure: bool=…, httponly: bool=…, samesite: str=…) -> None
- changed:
async method StaticFiles.lookup_path(path: str) -> typing.Tuple[str, typing.Optional[os.stat_result]] → method StaticFiles.lookup_path(path: str) -> typing.Tuple[str, typing.Optional[os.stat_result]]
- changed:
constructor Jinja2Templates(directory: str) -> None → constructor Jinja2Templates(directory: typing.Union[str, PathLike]) -> None