Bump sanic from 21.3.2 to 22.6.2
Bumps sanic from 21.3.2 to 22.6.2.
Release notes
Sourced from sanic's releases.
Version 22.6.2
#2522 Always show server location in ASGI
Full Changelog: https://github.com/sanic-org/sanic/compare/v22.6.1...v22.6.2
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
DEBUGmode
- 👶 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
scopeas a property on theRequestobject- #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
loadsfunction- #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.exeor places where there is nosys.stdout- #2451 Trigger
http.lifecycle.requestsignal 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
LOGOsettingsanic.response.streamAsyncioServer.initDeveloper infrastructure
Improved Documentation
... (truncated)
Changelog
Sourced from sanic's changelog.
.. note::
CHANGELOG files are maintained in
./docs/sanic/releases. To view the full CHANGELOG, please visit https://sanic.readthedocs.io/en/stable/sanic/changelog.html.Version 21.6.1
Bugfixes
[#2178](https://github.com/sanic-org/sanic/issues/2178) <https://github.com/sanic-org/sanic/pull/2178>_ Update sanic-routing to allow for better splitting of complex URI templates[#2183](https://github.com/sanic-org/sanic/issues/2183) <https://github.com/sanic-org/sanic/pull/2183>_ Proper handling of chunked request bodies to resolve phantom 503 in logs[#2181](https://github.com/sanic-org/sanic/issues/2181) <https://github.com/sanic-org/sanic/pull/2181>_ Resolve regression in exception logging[#2201](https://github.com/sanic-org/sanic/issues/2201) <https://github.com/sanic-org/sanic/pull/2201>_ Cleanup request info in pipelined requestsVersion 21.6.0
Features
[#2094](https://github.com/sanic-org/sanic/issues/2094) <https://github.com/sanic-org/sanic/pull/2094>_ Addresponse.eof()method for closing a stream in a handler
[#2097](https://github.com/sanic-org/sanic/issues/2097) <https://github.com/sanic-org/sanic/pull/2097>_ Allow case-insensitive HTTP Upgrade header
[#2104](https://github.com/sanic-org/sanic/issues/2104) <https://github.com/sanic-org/sanic/pull/2104>_ Explicit usage of CIMultiDict getters
[#2109](https://github.com/sanic-org/sanic/issues/2109) <https://github.com/sanic-org/sanic/pull/2109>_ Consistent use of error loggers
[#2114](https://github.com/sanic-org/sanic/issues/2114) <https://github.com/sanic-org/sanic/pull/2114>_ Newclient_ipaccess of connection info instance
[#2119](https://github.com/sanic-org/sanic/issues/2119) <https://github.com/sanic-org/sanic/pull/2119>_ Alternatate classes on instantiation forConfigandSanic.ctx
[#2133](https://github.com/sanic-org/sanic/issues/2133) <https://github.com/sanic-org/sanic/pull/2133>_ Implement new version of AST router
- Proper differentiation between
alphaandstringparam types- Adds a
slugparam type, example:<foo:slug>- Deprecates
<foo:string>in favor of<foo:str>- Deprecates
<foo:number>in favor of<foo:float>- Adds a
route.uriaccessor
[#2136](https://github.com/sanic-org/sanic/issues/2136) <https://github.com/sanic-org/sanic/pull/2136>_ CLI improvements with new optional params
[#2137](https://github.com/sanic-org/sanic/issues/2137) <https://github.com/sanic-org/sanic/pull/2137>_ Addversion_prefixto URL builders
[#2140](https://github.com/sanic-org/sanic/issues/2140) <https://github.com/sanic-org/sanic/pull/2140>_ Event autoregistration withEVENT_AUTOREGISTER
... (truncated)
Commits
b2c0eedBump version3abe4f8Always show server location in ASGI (#2522)f4c8252Always show server location in ASGIdaa1f8fBump version0901d31Use path.parts instead of match (#2508)0985d13Use pathlib for path resolution (#2506)7e0b0deFix dotted teste54ac3cPrevent directory traversion with static files (#2495)4429e76Add to changeloge4be70bAdd custom loads function (#2445)- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)