Bump sanic from 21.3.2 to 22.12.0
Bumps sanic from 21.3.2 to 22.12.0.
Release notes
Sourced from sanic's releases.
Version 22.12.0
Features
- #2569 Add
JSONResponseclass with some convenient methods when updating a response object- #2598 Change
uvlooprequirement to>=0.15.0- #2609 Add compatibility with
websocketsv11.0- #2610 Kill server early on worker error
- Raise deadlock timeout to 30s
- #2617 Scale number of running server workers
- #2621 #2634 Send
SIGKILLon subsequentctrl+cto force worker exit- #2622 Add API to restart all workers from the multiplexer
- #2624 Default to
spawnfor all subprocesses unless specifically set:from sanic import SanicSanic.start_method = "fork"
- #2625 Filename normalisation of form-data/multipart file uploads
- #2626 Move to HTTP Inspector:
- Remote access to inspect running Sanic instances
- TLS support for encrypted calls to Inspector
- Authentication to Inspector with API key
- Ability to extend Inspector with custom commands
- #2632 Control order of restart operations
- #2633 Move reload interval to class variable
- #2636 Add
prioritytoregister_middlewaremethod- #2639 Add
unquotetoadd_routemethod- #2640 ASGI websockets to receive
textorbytesBugfixes
- #2607 Force socket shutdown before close to allow rebinding
- #2590 Use actual
StrEnumin Python 3.11+- #2615 Ensure middleware executes only once per request timeout
- #2627 Crash ASGI application on lifespan failure
- #2635 Resolve error with low-level server creation on Windows
Deprecations and Removals
- #2608 #2630 Signal conditions and triggers saved on
signal.extra- #2626 Move to HTTP Inspector
- 🚨 BREAKING CHANGE: Moves the Inspector to a Sanic app from a simple TCP socket with a custom protocol
- DEPRECATE: The
--inspect*commands have been deprecated in favor ofinspect ...commands- #2628 Replace deprecated
distutils.strtoboolDeveloper infrastructure
... (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
4ad8168Version 22.12 release notes (#2637)28f5b3cAdd better inspector arg parsing (#2642)c573019ASGI websocket recv text or bytes (#2640)029f564Pass unquote thru add_route (#2639)2abe66bAdd priority to register_middleware method (#2636)911485dFix Windows sock share (#2635)4744a89Fix double ctrl-c kill (#2634)f7040ccImplement restart ordering (#2632)518152dReload interval on class variable (#2633)0e44e9cMove to HTTP Inspector (#2626)- 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)