All Versions
Latest Version
Avg Release Cycle
39 days
Latest Release
24 days ago

Changelog History
Page 1

  • v19.12.2

    January 02, 2020

    👀 Resolve forgotten slot, see #1743

  • v19.12.0

    December 27, 2019

    🛠 Bugfixes

    • 🛠 Fix blueprint middleware application

    Currently, any blueprint middleware registered, irrespective of which blueprint was used to do so, was being applied to all of the routes created by the :code:@app and :code:@blueprint alike.

    As part of this change, the blueprint based middleware application is enforced based on where they are registered.

    • If you register a middleware via :code:@blueprint.middleware then it will apply only to the routes defined by the blueprint.
    • If you register a middleware via :code:@blueprint_group.middleware then it will apply to all blueprint based routes that are part of the group.
    • If you define a middleware via :code:@app.middleware then it will be applied on all available routes (#37 <>__)
      • Fix url_for behavior with missing SERVER_NAME

    If the SERVER_NAME was missing in the app.config entity, the url_for on the request and app were failing due to an AttributeError. This fix makes the availability of SERVER_NAME on our app.config an optional behavior. (#1707 <>__)

    👌 Improved Documentation

    • 🚚 Move docs from RST to MD

    Moved all docs from markdown to restructured text like the rest of the docs to unify the scheme and make it easier in the future to update documentation. (#1691 <>__)

    • 🛠 Fix documentation for get and getlist of the request.args

    Add additional example for showing the usage of getlist and fix the documentation string for request.args behavior (#1704 <>__)

  • v19.9.0

    October 12, 2019
  • v19.6.3

    August 22, 2019

    🔋 Features

    • 👍 Enable Towncrier Support

    As part of this feature, towncrier is being introduced as a mechanism to partially automate the process of generating and managing change logs as part of each of pull requests. (#1631 <>__)

    👌 Improved Documentation

    • 📚 Documentation infrastructure changes

      • Enable having a single common CHANGELOG file for both GitHub page and documentation
      • Fix Sphinix deprecation warnings
      • Fix documentation warnings due to invalid rst indentation
      • Enable common contribution guidelines file across GitHub and documentation via CONTRIBUTING.rst (#1631 <>__)
  • v19.6.2

    July 08, 2019

    🔋 Features

    • #1562 <>_ Remove aiohttp dependencey and create new SanicTestClient based upon requests-async <>_

    • #1475 <>_ Added ASGI support (Beta)

    • #1436 <>_ Add Configure support from object string

    🛠 Bugfixes

    • #1587 <>_ Add missing handle for Expect header.

    • #1560 <>_ Allow to disable Transfer-Encoding: chunked.

    • #1558 <>_ Fix graceful shutdown.

    • #1594 <>_ Strict Slashes behavior fix

    🗄 Deprecations and Removals

    * #1544 <>_ Drop dependency on distutil

    • #1562 <>_ Drop support for Python 3.5

    • #1568 <>_ Deprecate route removal.

    ⚠ .. warning:: Sanic will not support Python 3.5 from version 19.6 and forward. However, version 18.12LTS will have its support period extended thru December 2020, and therefore passing Python's official support version 3.5, which is set to expire in September 2020.

  • v19.6.1

    July 06, 2019
  • v19.6.0

    June 21, 2019

    🚀 Sanic 19.6.0 is a standard release based on the CalVer versioning adopted in 2018.

    🔄 Changes:
    👍 #1475 ASGI support (Beta)
    🔧 #1436 Add Configure support from object string
    #1544 Drop dependency on distutil
    #1562 Switch to use request-async for test_client from aiohttp

    🛠 Fixes:
    #1587 Add missing handler for Expect header.
    #1560 Allow to disable Transfer-Encoding: chunked.
    #1558 Fix graceful shutdown.
    #1594 Fix strict slashes behavior.

    🗄 Deprecations:
    🗄 #1568 Deprecate route removal.
    👍 #1562 Drop Python3.5 support.

  • v19.03.1

    March 23, 2019

    🚀 A re-do of the 19.03 release

  • v19.3

    March 17, 2019

    🔋 Features

    • #1497 <>_ Add support for zero-length and RFC 5987 encoded filename for multipart/form-data requests.

    • #1484 <>_ The type of expires attribute of sanic.cookies.Cookie is now enforced to be of type datetime.

    • #1482 <>_ Add support for the stream parameter of sanic.Sanic.add_route() available to sanic.Blueprint.add_route().

    • #1481 <>_ Accept negative values for route parameters with type int or number.

    • #1476 <>_ Deprecated the use of sanic.request.Request.raw_args - it has a fundamental flaw in which is drops repeated query string parameters. Added sanic.request.Request.query_args as a replacement for the original use-case.

    • #1472 <>_ Remove an unwanted None check in Request class repr implementation. This changes the default repr of a Request from <Request> to <Request: None />

    • #1470 <>_ Added 2 new parameters to\ :

      • return_asyncio_server - whether to return an asyncio.Server.
      • asyncio_server_kwargs - kwargs to pass to loop.create_server for the event loop that sanic is using.

      This is a breaking change.

    • #1499 <>_ Added a set of test cases that test and benchmark route resolution.

    • #1457 <>_ The type of the "max-age" value in a sanic.cookies.Cookie is now enforced to be an integer. Non-integer values are replaced with 0.

    • #1445 <>_ Added the endpoint attribute to an incoming request\ , containing the name of the handler function.

    • #1423 <>_ Improved request streaming. is now a bounded-size buffer instead of an unbounded queue. Callers must now call await instead of await to read each portion of the body.

      This is a breaking change.

    🛠 Bugfixes

    • #1502 <>_ Sanic was prefetching time.time() and updating it once per second to avoid excessive time.time() calls. The implementation was observed to cause memory leaks in some cases. The benefit of the prefetch appeared to negligible, so this has been removed. Fixes #1500 <>_

    • #1501 <>_ Fix a bug in the auto-reloader when the process was launched as a module i.e. python -m init0.mod1 where the sanic server is started in init0/ with debug enabled and imports another module in init0.

    • #1376 <>_ Allow sanic test client to bind to a random port by specifying port=None when constructing a SanicTestClient

    • #1399 <>_ Added the ability to specify middleware on a blueprint group, so that all routes produced from the blueprints in the group have the middleware applied.

    • #1442 <>_ Allow the the use the SANIC_ACCESS_LOG environment variable to enable/disable the access log when not explicitly passed to This allows the access log to be disabled for example when running via gunicorn.

    Developer infrastructure

    • #1529 <>_ Update project PyPI credentials
    • #1515 <>_ fix linter issue causing travis build failures (fix #1514)
    • #1490 <>_ Fix python version in doc build
    • #1478 <>_ Upgrade setuptools version and use native docutils in doc build
    • #1464 <>_ Upgrade pytest, and fix caplog unit tests

    👌 Improved Documentation

    • #1516 <>_ Fix typo at the exception documentation
    • #1510 <>_ fix typo in Asyncio example
    • #1486 <>_ Documentation typo
    • #1477 <>_ Fix grammar in
    • #1489 <>_ Added "databases" to the extensions list
    • #1483 <>_ Add sanic-zipkin to extensions list
    • #1487 <>_ Removed link to deleted repo, Sanic-OAuth, from the extensions list
    • #1460 <>_ 18.12 changelog
    • #1449 <>_ Add example of amending request object
    • #1446 <>_ Update README
    • #1444 <>_ Update README
    • #1443 <>_ Update README, including new logo
    • #1440 <>_ fix minor type and pip install instruction mismatch
    • #1424 <>_ Documentation Enhancements

    🚀 Note: 19.3.0 was skipped for packagement purposes and not released on PyPI

  • v18.12.0

    December 27, 2018

    🔄 Changes:

    • Improved codebase test coverage from 81% to 91%.
    • Added stream_large_files and host examples in static_file document
    • Added methods to append and finish body content on Request (#1379)
    • Integrated with .appveyor.yml for windows ci support
    • Added documentation for AF_INET6 and AF_UNIX socket usage
    • Adopt black/isort for codestyle
    • Cancel task when connection_lost
    • Simplify request ip and port retrieval logic
    • Handle config error in load config file.
    • Integrate with codecov for CI
    • Add missed documentation for config section.
    • Deprecate Handler.log

    - Pinned httptools requirement to version 0.0.10+

    🛠 Fixes:

    • Fix remove_entity_headers helper function (#1415)
    • Fix TypeError when use to group blueprint with default url_prefix, Use os.path.normpath to avoid invalid url_prefix like api//v1
      🛠 f8a6af1 Rename the http module to helpers to prevent conflicts with the built-in Python http library (fixes #1323)
    • Fix unittests on windows
    • Fix Namespacing of sanic logger
    • Fix missing quotes in decorator example
    • Fix redirect with quoted param
    • Fix doc for latest blueprint code
    • Fix build of latex documentation relating to markdown lists
    • Fix loop exception handling in
    • Fix content length mismatch in windows and other platform
    • Fix Range header handling for static files (#1402)
    • Fix the logger and make it work (#1397)
    • Fix type pikcle->pickle in multiprocessing test
    • Fix pickling blueprints Change the string passed in the "name" section of the namedtuples in Blueprint to match the name of the Blueprint module attribute name. This allows blueprints to be pickled and unpickled, without errors, which is a requirment of running Sanic in multiprocessing mode in Windows. Added a test for pickling and unpickling blueprints Added a test for pickling and unpickling sanic itself Added a test for enabling multiprocessing on an app with a blueprint (only useful to catch this bug if the tests are run on Windows).
    • Fix document for logging