From 497dd940aa9bcac6e761307f89920303b26e9955 Mon Sep 17 00:00:00 2001 From: Florian Scherf Date: Mon, 6 Sep 2021 11:01:00 +0200 Subject: [PATCH] release 1.6 Signed-off-by: Florian Scherf --- doc/content/changelog.rst | 59 +++++++++++++++++++++++++++++++++++++++ lona/__init__.py | 2 +- 2 files changed, 60 insertions(+), 1 deletion(-) diff --git a/doc/content/changelog.rst b/doc/content/changelog.rst index 8c8f3718..09ffe4d0 100644 --- a/doc/content/changelog.rst +++ b/doc/content/changelog.rst @@ -1,6 +1,65 @@ toctree: False +Changelog +========= + +`1.6 `_ (2021-09-06) +------------------------------------------------------------------------------- + +Changes +~~~~~~~ + +* html + + * ``Node.handle_change()`` now gets called with ``Node.value`` already + changed in input nodes + + * Previously ``Node.handle_input_event()`` didn't set ``Node.value`` + so a custom ``handle_change()`` handler had to do it itself which + produced unnecessary boilerplate code + + * ``lona.html.Reset`` was removed + + * This node never worked as expected, also using reset buttons should be + avoided anyways (Source: `developer.mozilla.org `_) + + * All boolean attributes use empty strings instead of ``'true'`` now + + * All boolean attributes raise a ``TypeError`` now if they get initialized + with a non-boolean value + + * ``lona.html.Select.multiple`` was added + + * A ``readonly`` property was added to all input nodes + + * ``lona.html.Node`` accepts ``handle_change`` and ``handle_click`` event + handler in its constructor now + + +Bugfixes +~~~~~~~~ + +* html + + * All Python ``in`` checks are thread safe now + + * All boolean attributes (``disabled``, ``checked``, ``multiple`` etc) were + fixed + + * Previously they were treated as string attributes. When initialized with + ``False`` (``Button(disabled=False)``) the button was disabled in the + browser anyway, because the renderer only checks if ``disabled`` is set, + not its value. + + * Handling of ``id``, ``class`` and ``style`` while parsing HTML using + ``lona.html.HTML`` was fixed + +* client + + * Non node related input events were fixed + + Changelog ========= diff --git a/lona/__init__.py b/lona/__init__.py index c9a4b4ab..d37c7a68 100644 --- a/lona/__init__.py +++ b/lona/__init__.py @@ -10,5 +10,5 @@ pass -VERSION = (1, 5, 1) +VERSION = (1, 6) VERSION_STRING = '.'.join(str(i) for i in VERSION)