Skip to content

Commit

Permalink
release 1.5
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Scherf <[email protected]>
  • Loading branch information
fscherf committed Sep 1, 2021
1 parent 7df79f2 commit 33c813c
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions doc/content/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,62 @@ toctree: False
Changelog
=========

`1.5 <https://github.com/lona-web-org/lona/releases/tag/1.5>`_ (2021-09-01)
---------------------------------------------------------------------------

Breaking Changes
~~~~~~~~~~~~~~~~

* html

* ``lona.html.HTML`` now parses HTML into high level nodes like
``lona.html.TextInput``

* All subclasses of ``lona.html.AbstractNode`` can implement
``handle_input_event()`` now

* Previously only ``lona.html.Widget`` classes could


Changes
~~~~~~~

* html

* All databinding widgets (``lona.html.TextInput``, ``lona.html.TextArea``,
``lona.html.CheckBox`` and ``lona.html.Select``) were ported to nodes

* Since ``lona.html.AbstractNode`` subclasses can handle their own input
events there is no need to implement them as widgets anymore

* ``lona.html.AbstractNode.handle_click()`` and
``lona.html.AbstractNode.handle_change()`` for more Javascript like
callback handling were added

* ``lona.html.HTML(use_high_level_nodes=True)`` was added to disable
parsing into high level nodes

* The Nodes ``lona.html.Html``, ``lona.html.Head`` and ``lona.html.Body``
were removed

* There is no way to use them with Lona without breaking HTML5 conventions

Bugfixes
~~~~~~~~

* html

* Parsing of the ``style`` attribute when using ``lona.html.HTML`` was fixed

* Previously parsing of HTML nodes that defined a ``style`` attribute
crashed with a ``ValueError``

* ``lona.html.TFood`` was renamed to ``lona.html.TFoot``
* ``lona.html.Fieldset`` had the tag name ``form`` set previously
* ``lona.html.TextArea`` preserves all whitespaces now when generated by
using ``lona.html.HTML``


`1.4.1 <https://github.com/lona-web-org/lona/releases/tag/1.4.1>`_ (2021-08-27)
-------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion lona/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@

pass

VERSION = (1, 4, 1)
VERSION = (1, 5)
VERSION_STRING = '{}'.format('.'.join([str(i) for i in VERSION]))

0 comments on commit 33c813c

Please sign in to comment.