Skip to content

Commit

Permalink
release 1.9
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Scherf <[email protected]>
  • Loading branch information
fscherf committed Jan 28, 2022
1 parent 39cf935 commit 990693e
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 1 deletion.
67 changes: 67 additions & 0 deletions doc/content/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
``<input data-lona-node-id="1" type=&quot;checkbox&quot; />``

* 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)


Expand Down
4 changes: 4 additions & 0 deletions doc/content/end-user-documentation/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ Server.get_view_class()
Server.get_views()
~~~~~~~~~~~~~~~~~~

.. note::

Added in 1.9

.. api-doc:: lona.server.LonaServer.get_views


Expand Down
4 changes: 4 additions & 0 deletions doc/content/end-user-documentation/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Testing
=======

.. note::

Testing is officially supported since 1.9

For testing Lona comes with a `pytest <http://docs.pytest.org>`_ plugin, based
on pytest-aiohttp. The plugin contains two fixtures:
`lona_app_context <#lona-app-context-example>`_ and
Expand Down
16 changes: 16 additions & 0 deletions doc/content/end-user-documentation/views.rst
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,10 @@ CHANGE
FOCUS
`````

.. note::

Added in 1.9

.. code-block:: python
from lona.html import HTML, TextInput, FOCUS
Expand All @@ -709,6 +713,10 @@ FOCUS
BLUR
````

.. note::

Added in 1.9

.. code-block:: python
from lona.html import HTML, TextInput, BLUR
Expand Down Expand Up @@ -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
Expand All @@ -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
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 @@
if e.name != 'typing_extensions':
raise

VERSION = (1, 8, 5)
VERSION = (1, 9)
VERSION_STRING = '.'.join(str(i) for i in VERSION)

0 comments on commit 990693e

Please sign in to comment.