From 655213eff9f7d9643e264df6d3fff411434a2d73 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 10 Sep 2015 16:00:39 -0500 Subject: [PATCH] 0.8 --- channels/__init__.py | 2 +- docs/index.rst | 1 + docs/releases/0.8.rst | 22 ++++++++++++++++++++++ docs/releases/index.rst | 7 +++++++ setup.py | 2 +- 5 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 docs/releases/0.8.rst create mode 100644 docs/releases/index.rst diff --git a/channels/__init__.py b/channels/__init__.py index 2ee5420..8fd164c 100644 --- a/channels/__init__.py +++ b/channels/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.1.1" +__version__ = "0.8" # Load backends, using settings if available (else falling back to a default) DEFAULT_CHANNEL_BACKEND = "default" diff --git a/docs/index.rst b/docs/index.rst index a1c8d5f..d246cee 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -31,3 +31,4 @@ Contents: scaling backends faqs + releases/index diff --git a/docs/releases/0.8.rst b/docs/releases/0.8.rst new file mode 100644 index 0000000..ddeac26 --- /dev/null +++ b/docs/releases/0.8.rst @@ -0,0 +1,22 @@ +0.8 (2015-09-10) +---------------- + +This release reworks a few of the core concepts to make the channel layer +more efficient and user friendly: + +* Channel names now do not start with ``django``, and are instead just ``http.request``, etc. + +* HTTP headers/GET/etc are only sent with ``websocket.connect`` rather than all websocket requests, + to save a lot of bandwidth in the channel layer. + +* The session/user decorators were renamed, and a ``@channel_session_user`` and ``transfer_user`` set of functions + added to allow moving the user details from the HTTP session to the channel session in the ``connect`` consumer. + +* A ``@linearize`` decorator was added to help ensure a ``connect``/``receive`` pair are not executed + simultanously on two different workers. + +* Channel backends gained locking mechanisms to support the ``linearize`` feature. + +* ``runwsserver`` will use asyncio rather than Twisted if it's available. + +* Message formats have been made a bit more consistent. diff --git a/docs/releases/index.rst b/docs/releases/index.rst new file mode 100644 index 0000000..231771f --- /dev/null +++ b/docs/releases/index.rst @@ -0,0 +1,7 @@ +Release Notes +------------- + +.. toctree:: + :maxdepth: 1 + + 0.8 diff --git a/setup.py b/setup.py index 845e3c1..d8c5394 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import find_packages, setup setup( name='channels', - version="0.7", + version="0.8", url='http://github.com/andrewgodwin/django-channels', author='Andrew Godwin', author_email='andrew@aeracode.org',