pypi sanic 22.9.0
Version 22.9.0

latest releases: 24.6.0, 23.12.2, 23.12.1...
2 years ago

Features

  • #2445 Add custom loads function
  • #2490 Make WebsocketImplProtocol async iterable
  • #2499 Sanic Server WorkerManager refactor
  • #2506 Use pathlib for path resolution (for static file serving)
  • #2508 Use path.parts instead of match (for static file serving)
  • #2513 Better request cancel handling
  • #2516 Add request properties for HTTP method info:
    • request.is_safe
    • request.is_idempotent
    • request.is_cacheable
    • See MDN docs for more information about when these apply
  • #2522 Always show server location in ASGI
  • #2526 Cache control support for static files for returning 304 when appropriate
  • #2533 Refactor _static_request_handler
  • #2540 Add signals before and after handler execution
    • http.handler.before
    • http.handler.after
  • #2542 Add [redacted] to CLI :)
  • #2546 Add deprecation warning filter
  • #2550 Middleware priority and performance enhancements

Bugfixes

  • #2495 Prevent directory traversion with static files
  • #2515 Do not apply double slash to paths in certain static dirs in Blueprints

Deprecations and Removals

  • #2525 Warn on duplicate route names, will be prevented outright in v23.3
  • #2537 Raise warning and deprecation notice on duplicate exceptions, will be prevented outright in v23.3

Developer infrastructure

  • #2504 Cleanup test suite
  • #2505 Replace Unsupported Python Version Number from the Contributing Doc
  • #2530 Do not include tests folder in installed package resolver

Improved Documentation


New Contributors

Full Changelog: v22.6.0...v22.9.0

Don't miss a new sanic release

NewReleases is sending notifications on new releases.