Skip to content

Commit

Permalink
release 1.16
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Scherf <mail@florianscherf.de>
  • Loading branch information
fscherf committed Oct 20, 2023
1 parent cac9089 commit 0092c93
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 3 deletions.
4 changes: 4 additions & 0 deletions doc/content/api-reference/html.rst
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,10 @@ select is no multi select, all other options get unselected automatically.
RadioGroup and RadioButton
++++++++++++++++++++++++++
.. note::
Added in 1.16
.. code-block:: python
from lona.html import RadioGroup, RadioButton, Label
Expand Down
8 changes: 8 additions & 0 deletions doc/content/api-reference/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,21 @@ Client
:name: CLIENT_AUTO_RECONNECT
:path: lona.default_settings.CLIENT_AUTO_RECONNECT

.. note::

Added in 1.16

When set to ``True`` the client will try to reconnect to the server
periodically when the websocket connection closes

.. setting::
:name: CLIENT_AUTO_RECONNECT_TIMEOUT
:path: lona.default_settings.CLIENT_AUTO_RECONNECT_TIMEOUT

.. note::

Added in 1.16

Auto reconnect timeout in ms

.. setting::
Expand Down
45 changes: 45 additions & 0 deletions doc/content/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,51 @@ is_template: False
Changelog
=========

.. changelog-header:: 1.16 (2023-10-20)

Changes
~~~~~~~

* Views

* All internal views use response classes instead of dict responses now
* dict based responses issue deprecation warnings now
* ``context`` in ``TemplateResponse`` and ``TemplateStringResponse`` are
optional now

* Server

* Default host and port now can be set using the environment variables
``LONA_DEFAULT_HOST`` and ``LONA_DEFAULT_PORT``.

* Live reload was added (``--live-reload``)

* Frontend

* Auto reconnect was added

* HTML

* ``lona.html.RadioButton`` and ``lona.html.RadioGroup`` were added


Bugfixes
~~~~~~~~

* Client & Client2

* Form submit in interactive views was fixed

* Previously, the ``onsubmit`` handler crashed because of an reference
error

* Client2

* Call stack limit problems in node cache were fixed

* Previously, the rendering of Client2 would crash when too many nodes
were removed at the same time


.. changelog-header:: 1.15 (2023-07-20)

Expand Down
2 changes: 1 addition & 1 deletion doc/content/roadmap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Getting Feature Complete

- [ ] Add missing inputs

- [ ] Add radio buttons and radio groups
- [x] Add radio buttons and radio groups

- [ ] Add date inputs

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 @@
from .view import View
from .app import App

VERSION = (1, 15)
VERSION = (1, 16)
VERSION_STRING = '.'.join(str(i) for i in VERSION)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"


[project]
version = "1.15"
version = "1.16"
name = "lona"
description = "Write responsive web apps in full python"

Expand Down

0 comments on commit 0092c93

Please sign in to comment.