domonic
domonic copied to clipboard
Bump sanic from 22.3.2 to 22.6.1
Bumps sanic from 22.3.2 to 22.6.1.
Release notes
Sourced from sanic's releases.
Version 22.6.1
Resolves #2477 and #2478 See also #2495 and https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6
Full Changelog: https://github.com/sanic-org/sanic/compare/v22.6.0...v22.6.1
Version 22.6.0
Features
- #2378 Introduce HTTP/3 and autogeneration of TLS certificates in
DEBUG
mode
- 👶 EARLY RELEASE FEATURE: Serving Sanic over HTTP/3 is an early release feature. It does not yet fully cover the HTTP/3 spec, but instead aims for feature parity with Sanic's existing HTTP/1.1 server. Websockets, WebTransport, push responses are examples of some features not yet implemented.
- 📦 EXTRA REQUIREMENT: Not all HTTP clients are capable of interfacing with HTTP/3 servers. You may need to install a HTTP/3 capable client.
- 📦 EXTRA REQUIREMENT: In order to use TLS autogeneration, you must install either mkcert or trustme.
- #2416 Add message to
task.cancel
- #2420 Add exception aliases for more consistent naming with standard HTTP response types (
BadRequest
,MethodNotAllowed
,RangeNotSatisfiable
)- #2432 Expose ASGI
scope
as a property on theRequest
object- #2438 Easier access to websocket class for annotation:
from sanic import Websocket
- #2439 New API for reading form values with options:
Request.get_form
- #2445 Add custom
loads
function- #2447, #2486 Improved API to support setting cache control headers
- #2453 Move verbosity filtering to logger
- #2475 Expose getter for current request using
Request.get_current()
Bugfixes
- #2448 Fix to allow running with
pythonw.exe
or places where there is nosys.stdout
- #2451 Trigger
http.lifecycle.request
signal in ASGI mode- #2455 Resolve typing of stacked route definitions
- #2463 Properly catch websocket CancelledError in websocket handler in Python 3.7
Deprecations and Removals
- #2487 v22.6 deprecations and changes
- Optional application registry
- Execution of custom handlers after some part of response was sent
- Configuring fallback handlers on the
ErrorHandler
- Custom
LOGO
settingsanic.response.stream
AsyncioServer.init
Developer infrastructure
Improved Documentation
- #2461 Update example to match current application naming standards
- #2466 Better type annotation for
Extend
- #2485 Improved help messages in CLI
New Contributors
@azimovMichael
made their first contribution in sanic-org/sanic#2432
... (truncated)
Commits
daa1f8f
Bump version0901d31
Use path.parts instead of match (#2508)0985d13
Use pathlib for path resolution (#2506)7e0b0de
Fix dotted teste54ac3c
Prevent directory traversion with static files (#2495)4429e76
Add to changeloge4be70b
Add custom loads function (#2445)13d5a44
Release 22.6 (#2487)aba333b
Improve API docs (#2488)b59da49
HTTP/3 Support (#2378)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.