diff --git a/doc/content/api-reference/html.rst b/doc/content/api-reference/html.rst index 3c7f8c6e..d2165353 100644 --- a/doc/content/api-reference/html.rst +++ b/doc/content/api-reference/html.rst @@ -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 diff --git a/doc/content/api-reference/settings.rst b/doc/content/api-reference/settings.rst index d0d4480f..9f78b300 100644 --- a/doc/content/api-reference/settings.rst +++ b/doc/content/api-reference/settings.rst @@ -138,6 +138,10 @@ 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 @@ -145,6 +149,10 @@ Client :name: CLIENT_AUTO_RECONNECT_TIMEOUT :path: lona.default_settings.CLIENT_AUTO_RECONNECT_TIMEOUT + .. note:: + + Added in 1.16 + Auto reconnect timeout in ms .. setting:: diff --git a/doc/content/changelog.rst b/doc/content/changelog.rst index e9494848..94c11b29 100644 --- a/doc/content/changelog.rst +++ b/doc/content/changelog.rst @@ -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) diff --git a/doc/content/roadmap.rst b/doc/content/roadmap.rst index 1d7c3251..d92d929e 100644 --- a/doc/content/roadmap.rst +++ b/doc/content/roadmap.rst @@ -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 diff --git a/lona/__init__.py b/lona/__init__.py index 51bfda59..fb8b9645 100644 --- a/lona/__init__.py +++ b/lona/__init__.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 30271299..75c8bb37 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"