diff --git a/doc/content/api-reference/middlewares.rst b/doc/content/api-reference/middlewares.rst index b297abb9..57cb6589 100644 --- a/doc/content/api-reference/middlewares.rst +++ b/doc/content/api-reference/middlewares.rst @@ -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. @@ -141,10 +145,18 @@ object shown. Middleware.on_view_stop\(data\) ------------------------------- +.. note:: + + Added in 1.16.1 + Gets called before `View.on_stop `_ Middleware.on_view_cleanup\(data\) ---------------------------------- +.. note:: + + Added in 1.16.1 + Gets called before `View.on_cleanup `_ diff --git a/doc/content/api-reference/views.rst b/doc/content/api-reference/views.rst index d6b9a3a5..2958308b 100644 --- a/doc/content/api-reference/views.rst +++ b/doc/content/api-reference/views.rst @@ -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 diff --git a/doc/content/changelog.rst b/doc/content/changelog.rst index 94c11b29..95b735ff 100644 --- a/doc/content/changelog.rst +++ b/doc/content/changelog.rst @@ -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 diff --git a/lona/__init__.py b/lona/__init__.py index 6d414d67..e0959921 100644 --- a/lona/__init__.py +++ b/lona/__init__.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index e3dd8a90..5ac8b821 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"