Version 23.6.0
Version 23.6.0 🔶
Features
- #2670 Increase
KEEP_ALIVE_TIMEOUT
default to 120 seconds - #2716 Adding allow route overwrite option in blueprint
- #2724 and #2792 Add a new exception signal for ALL exceptions raised anywhere in application
- #2727 Add name prefixing to BP groups
- #2754 Update request type on middleware types
- #2770 Better exception message on startup time application induced import error
- #2776 Set multiprocessing start method early
- #2785 Add custom typing to config and ctx objects
- #2790 Add
request.client_ip
Bugfixes
- #2728 Fix traversals for intended results
- #2729 Handle case when headers argument of ResponseStream constructor is None
- #2737 Fix type annotation for
JSONREsponse
default content type - #2740 Use Sanic's serializer for JSON responses in the Inspector
- #2760 Support for
Request.get_current
in ASGI mode - #2773 Alow Blueprint routes to explicitly define error_format
- #2774 Resolve headers on different renderers
- #2782 Resolve pypy compatibility issues
Deprecations and Removals
- #2777 Remove Python 3.7 support
Developer infrastructure
Improved Documentation
- #2741 Better documentation examples about running Sanic
From that list, the items to highlight in the release notes:
What's Changed
- Fix JSONResponse default content type by @prryplatypus in #2737
- Fix issue in getting current request through classmethod when served through a different ASGI server by @Thirumalai in #2760
- Unpin setuptools version by @ChihweiLHBird in #2766
- Sanic on pypy by @deounix in #2682
- fix examples for freeze_support() issue on windows by @deounix in #2741
- fix #2757 - Improved error messaging on startup time application induced import error by @moshe742 in #2770
- Fix Inner bug: TypeError: init() got an unexpected keyword argument 'escape_forward_slashes' #2740 by @chidoben in #2772
- Add name prefixing to BP groups by @ahopkins in #2727
- Adding allow route overwrite option in blueprint by @ChihweiLHBird in #2716
- Fix traversals for intended results by @ahopkins in #2728
- Update request type on middleware types by @guacs in #2754
- Resolve headers on different renderers - Issue 2749 by @ahopkins in #2774
- Handle case when
headers
argument ofResponseStream
constructor isNone
by @liamcoatman in #2729 - Add a new exception signal for ALL exceptions raised anywhere in application by @ahopkins in #2724
- Alow Blueprint routes to explicitly define error_format by @moshe742 in #2773
- Remove Python3.7 support by @ahopkins in #2777
- Set multiprocessing start method early by @ahopkins in #2776
- Run keep alive tests in loop to get available port by @ahopkins in #2779
- Increase KEEP_ALIVE_TIMEOUT default to 120 seconds by @Tronic in #2670
- Update bug-report.yml by @ahopkins in #2787
- Update bug-report.yml by @ahopkins in #2788
- Add custom typing to config and ctx by @ahopkins in #2785
- Add request.client_ip by @Tronic in #2790
- Add convenience method for exception reporting by @ahopkins in #2792
- Prepare for v23.6 release by @ahopkins in #2797
New Contributors
- @Thirumalai made their first contribution in #2760
- @moshe742 made their first contribution in #2770
- @chidoben made their first contribution in #2772
- @guacs made their first contribution in #2754
- @liamcoatman made their first contribution in #2729
Full Changelog: v23.3.0...v23.6.0