Skip to content

Commit

Permalink
release 1.16.1
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Scherf <[email protected]>
  • Loading branch information
fscherf committed Nov 28, 2023
1 parent 33a2545 commit c486f0f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
12 changes: 12 additions & 0 deletions doc/content/api-reference/middlewares.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ Gets called on server shutdown.
Middleware.handle_http_request\(data\)
--------------------------------------

.. note::

Added in 1.16.1

Gets called with every incomming HTTP request, before any other routing or
handling happens. If ``data`` is not returned, Lona regards
``data.http_request`` as handled.
Expand Down Expand Up @@ -141,10 +145,18 @@ object shown.
Middleware.on_view_stop\(data\)
-------------------------------

.. note::

Added in 1.16.1

Gets called before `View.on_stop </api-reference/views.html#lonaview-on-stop-reason>`_


Middleware.on_view_cleanup\(data\)
----------------------------------

.. note::

Added in 1.16.1

Gets called before `View.on_cleanup </api-reference/views.html#lonaview-on-cleanup>`_
2 changes: 2 additions & 0 deletions doc/content/api-reference/views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,12 @@ Attributes

* ``request.user`` is writable since 1.4
* ``request.interactive`` was added in 1.4
* ``request.id`` was added in 1.16.1

.. table::

^Name ^Description
|id |(String) Unique identifier
|interactive |(Bool) Is true when the request came in over a websocket connection
|method |(String) Contains either 'GET' or 'POST'
|GET |(Dict) Contains the URL query
Expand Down
18 changes: 18 additions & 0 deletions doc/content/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ is_template: False
Changelog
=========

.. changelog-header:: 1.16 (2023-11-28)

Changes
~~~~~~~

* Buckets for file uploads were added

* Middlewares

* ``handle_http_request`` hook was added
* ``on_view_stop`` hook was added
* ``on_view_cleanup`` hook was added

* Requests

* ``Request.id`` was added


.. changelog-header:: 1.16 (2023-10-20)

Changes
Expand Down
2 changes: 1 addition & 1 deletion lona/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
from .view import View
from .app import App

VERSION = (1, 16)
VERSION = (1, 16, 1)
VERSION_STRING = '.'.join(str(i) for i in VERSION)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"


[project]
version = "1.16"
version = "1.16.1"
name = "lona"
description = "Write responsive web apps in full python"

Expand Down

0 comments on commit c486f0f

Please sign in to comment.