From 70207b845925232669a30143feac266cfbd37dc2 Mon Sep 17 00:00:00 2001 From: Florian Scherf Date: Fri, 10 Feb 2023 12:22:54 +0100 Subject: [PATCH] release 1.12.1 Signed-off-by: Florian Scherf --- doc/content/changelog.rst | 38 ++++++++++++++++++++++++++++++++++++++ lona/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/doc/content/changelog.rst b/doc/content/changelog.rst index 9d00103d..f4ed6402 100644 --- a/doc/content/changelog.rst +++ b/doc/content/changelog.rst @@ -6,6 +6,44 @@ is_template: False Changelog ========= +.. changelog-header:: 1.12.1 (2023-02-10) + +Bugfixes +~~~~~~~~ + +* Views + + * Handling of redirects and HTTP redirects from event handlers were fixed + + * 1.12 introduced ``lona.responses.AbstractResponse`` as new data structure + for responses, but did not update all type checks in the event handler + code + + * Handling of feature flag ``STOP_DAEMON_WHEN_VIEW_FINISHES`` was fixed + + * Previously, only ``View.STOP_DAEMON_WHEN_VIEW_FINISHES`` worked, + ``settings.STOP_DAEMON_WHEN_VIEW_FINISHES`` had no effect + + * Handling of ``View.is_daemon`` was fixed + + * 1.12 changed the checks, if a view should be removed from the server, to + make short running deamon-views possible. + + When ``View.STOP_DAEMON_WHEN_VIEW_FINISHES`` was set to ``False`` and + ``View.is_daemon`` to ``True``, the view did not get removed from the + server when the user closed the tab, and got reconnected to the same + view, when reopening the tab. + + When ``View.STOP_DAEMON_WHEN_VIEW_FINISHES`` was set to ``True``, which + is the default, and ``View.is_daemon`` also to ``True``, the view should + be removed from the server, when it finishes, and the tab gets closed, + but instead the view remained on the server, but was not reconnected when + reopening the tab. + + That meant that the server created a new view on every access of a page, + and did neither reuse or close it, so they built up indefinitely. + + .. changelog-header:: 1.12 (2023-02-07) Changes diff --git a/lona/__init__.py b/lona/__init__.py index d06e10c8..7356d279 100644 --- a/lona/__init__.py +++ b/lona/__init__.py @@ -9,5 +9,5 @@ from .view import View from .app import App -VERSION = (1, 12) +VERSION = (1, 12, 1) VERSION_STRING = '.'.join(str(i) for i in VERSION) diff --git a/pyproject.toml b/pyproject.toml index 1fd23c50..43c543e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] -version = "1.12" +version = "1.12.1" name = "lona" description = "Write responsive web apps in full python"