From 990693e3482bbe0686ce101c80331c12d759e679 Mon Sep 17 00:00:00 2001 From: Florian Scherf Date: Fri, 28 Jan 2022 19:52:04 +0100 Subject: [PATCH] release 1.9 Signed-off-by: Florian Scherf --- doc/content/changelog.rst | 67 +++++++++++++++++++ doc/content/end-user-documentation/server.rst | 4 ++ .../end-user-documentation/testing.rst | 4 ++ doc/content/end-user-documentation/views.rst | 16 +++++ lona/__init__.py | 2 +- 5 files changed, 92 insertions(+), 1 deletion(-) diff --git a/doc/content/changelog.rst b/doc/content/changelog.rst index 471d509c..83a552e5 100644 --- a/doc/content/changelog.rst +++ b/doc/content/changelog.rst @@ -5,6 +5,73 @@ search_index_weight: -10 Changelog ========= + +.. changelog-header:: 1.9 (2022-01-29) + + +Changes +~~~~~~~ + +* Input events + + * ``FOCUS`` and ``BLUR`` were added + +* Server + + * ``LonaServer.project_root`` was added + * ``LonaServer.template_dirs`` was added + * ``LonaServer.static_dirs`` was added + * ``LonaServer.get_views`` was added + +* Testing + + * Pytest based testing was added + + +Bugfixes +~~~~~~~~ + + +* Packaging + + * Import errors during installation were fixed + + * Previously an import error stating that ``typing-extensions`` is not + installed could occur while installing the Lona package + +* HTML + + * Quoting in Python representations were fixed + + * Previously representations looked like this: + ```` + +* Scripts + + * Return value of ``app.route`` decorator was fixed + + * Previously the decorator returned nothing which overwrote the given + view class with ``None`` + + + +Breaking Changes +~~~~~~~~~~~~~~~~ + +* Server + + * ``LonaServer.websockets`` is a private attribute now + * ``LonaServer.templating_engine`` is a private attribute now + * ``LonaServer.router`` is a private attribute now + * ``LonaServer.middleware_controller`` is a private attribute now + * ``LonaServer.view_loader`` is a private attribute now + * ``LonaServer.response_parser`` is a private attribute now + * ``LonaServer.view_runtime_controller`` is a private attribute now + * ``LonaServer.client_pre_compiler`` is a private attribute now + * ``LonaServer.static_file_loader`` is a private attribute now + * ``LonaServer.settings_paths`` is a read only property now + + .. changelog-header:: 1.8.5 (2021-12-15) diff --git a/doc/content/end-user-documentation/server.rst b/doc/content/end-user-documentation/server.rst index 4eb0791c..f11974a1 100644 --- a/doc/content/end-user-documentation/server.rst +++ b/doc/content/end-user-documentation/server.rst @@ -56,6 +56,10 @@ Server.get_view_class() Server.get_views() ~~~~~~~~~~~~~~~~~~ + .. note:: + + Added in 1.9 + .. api-doc:: lona.server.LonaServer.get_views diff --git a/doc/content/end-user-documentation/testing.rst b/doc/content/end-user-documentation/testing.rst index 0ba3ed27..9fd823f4 100644 --- a/doc/content/end-user-documentation/testing.rst +++ b/doc/content/end-user-documentation/testing.rst @@ -3,6 +3,10 @@ Testing ======= +.. note:: + + Testing is officially supported since 1.9 + For testing Lona comes with a `pytest `_ plugin, based on pytest-aiohttp. The plugin contains two fixtures: `lona_app_context <#lona-app-context-example>`_ and diff --git a/doc/content/end-user-documentation/views.rst b/doc/content/end-user-documentation/views.rst index a5993e66..17aca659 100644 --- a/doc/content/end-user-documentation/views.rst +++ b/doc/content/end-user-documentation/views.rst @@ -687,6 +687,10 @@ CHANGE FOCUS ````` +.. note:: + + Added in 1.9 + .. code-block:: python from lona.html import HTML, TextInput, FOCUS @@ -709,6 +713,10 @@ FOCUS BLUR ```` +.. note:: + + Added in 1.9 + .. code-block:: python from lona.html import HTML, TextInput, BLUR @@ -1067,6 +1075,10 @@ LonaView.await_change\(\*nodes, html=None\) LonaView.await_focus\(\*nodes, html=None\) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + .. note:: + + Added in 1.9 + Returns the next incoming focus event. When ``nodes`` is set, the next input event issued by one of the given @@ -1079,6 +1091,10 @@ LonaView.await_focus\(\*nodes, html=None\) LonaView.await_blur\(\*nodes, html=None\) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + .. note:: + + Added in 1.9 + Returns the next incoming blur event. When ``nodes`` is set, the next input event issued by one of the given diff --git a/lona/__init__.py b/lona/__init__.py index 3bcf3924..b6b19ade 100644 --- a/lona/__init__.py +++ b/lona/__init__.py @@ -10,5 +10,5 @@ if e.name != 'typing_extensions': raise -VERSION = (1, 8, 5) +VERSION = (1, 9) VERSION_STRING = '.'.join(str(i) for i in VERSION)