Skip to content

Upgrading fastapi 0.23 to 0.24

Safe0.23.0 → 0.24.0New1Other1

SafeUpgrade verdict

Only new features and fixes in this range.

  • Nothing in this range needs changes to your code. It adds features and fixes.
Nothing to change

No breaking, platform, security or deprecated items in this range.

Nothing in this upgrade needs a code or configuration change.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: method FastAPI.add_api_websocket_route(path: str, endpoint: Callable, name: str=…) -> None
  • added: method FastAPI.websocket(path: str, name: str=…) -> Callable
  • changed: constructor Dependant(*, path_params: List[Field]=…, query_params: List[Field]=…, header_params: List[Field]=…, cookie_params: List[Field]=…, body_params: List[Field]=…, dependencies: List[Dependant]=…, security_schemes: List[SecurityRequirement]=…, name: str=…, call: Callable=…, request_param_name: str=…, background_tasks_param_name: str=…, security_scopes_param_name: str=…, security_scopes: Lis… → constructor Dependant(*, path_params: List[Field]=…, query_params: List[Field]=…, header_params: List[Field]=…, cookie_params: List[Field]=…, body_params: List[Field]=…, dependencies: List[Dependant]=…, security_schemes: List[SecurityRequirement]=…, name: str=…, call: Callable=…, request_param_name: str=…, websocket_param_name: str=…, background_tasks_param_name: str=…, security_scopes_param_name…
  • changed: async function solve_dependencies(*, request: Request, dependant: Dependant, body: Dict[str, Any]=…, background_tasks: BackgroundTasks=…) -> Tuple[Dict[str, Any], List[ErrorWrapper], Optional[BackgroundTasks]] → async function solve_dependencies(*, request: Union[Request, WebSocket], dependant: Dependant, body: Dict[str, Any]=…, background_tasks: BackgroundTasks=…) -> Tuple[Dict[str, Any], List[ErrorWrapper], Optional[BackgroundTasks]]
  • added: class APIWebSocketRoute(routing.WebSocketRoute)
  • added: constructor APIWebSocketRoute(path: str, endpoint: Callable, *, name: str=…) -> None
  • added: function get_websocket_app(dependant: Dependant) -> Callable
  • added: method APIRouter.add_api_websocket_route(path: str, endpoint: Callable, name: str=…) -> None
  • added: method APIRouter.websocket(path: str, name: str=…) -> Callable