wangweimin преди 3 години
родител
ревизия
c5f23f8391
променени са 3 файла, в които са добавени 39 реда и са изтрити 2 реда
  1. 1 0
      docs/releases.rst
  2. 36 0
      docs/releases/v1.5.rst
  3. 2 2
      pywebio/__version__.py

+ 1 - 0
docs/releases.rst

@@ -4,6 +4,7 @@ Release notes
 .. toctree::
    :maxdepth: 2
 
+   releases/v1.5
    releases/v1.4
    releases/v1.3.0
    releases/v1.2.0

+ 36 - 0
docs/releases/v1.5.rst

@@ -0,0 +1,36 @@
+What's new in PyWebIO 1.5
+==========================
+
+2021/11/20
+-----------
+
+Highlights
+^^^^^^^^^^^
+* theme support via :func:`pywebio.config()`, :demo_host:`demo </theme>`
+* deprecate :func:`pywebio.output.output()`, use `pywebio.output.use_scope()` instead (``output()`` still work)
+
+Detailed changes
+^^^^^^^^^^^^^^^^^
+* enable `lstrip` by default in `put_markdown() <pywebio.output.put_markdown>`,
+  and the behavior of `lstrip` is more clever than previous version. Deprecate `strip_indent` since `lstrip` is sufficient.
+* button disabled state support in `pywebio.output.put_buttons()` and `pywebio.output.put_button()`,
+  and button value can be any type
+* buttons in `pywebio.input.actions()` support color setting
+* russian language support for frontend labels and messages. Thanks to `@Priler <https://github.com/pywebio/PyWebIO/pull/173>`_.
+* improve default index page of `pywebio.platform.path_deploy()`: improve pywebio app detection and show app title.
+* compatible with latest aiohttp(v3.8)
+* enable `websocket_ping_interval` by default in tornado server to avoid idle connections being close in some
+  cloud platform (like heroku)
+* exception traceback will be show in page when enable debug
+* `slider <pywebio.input.slider>` input add indicator to show its current value
+
+Bug fix
+^^^^^^^^^^^^^^^^^
+* deep copy `options` and `buttons` parameters to avoid potential error - `81d57ba4 <https://github.com/pywebio/PyWebIO/commit/81d57ba46bec2ed2657f944f9cb594da9709d146>`_, `cb5ac8d5 <https://github.com/pywebio/PyWebIO/commit/cb5ac8d512386fc442abf6646621c3ef1e3ab26a>`_ - `e262ea43 <https://github.com/pywebio/PyWebIO/commit/e262ea43dc8a4fe3addd6c84f2fdd4f290a53f20>`_
+* fix page width exceeding screen width (mostly on mobile devices) - `536d09e3 <https://github.com/pywebio/PyWebIO/commit/536d09e3c432a750b24b9633f076ebf9a1875f79>`_
+* fix `put_buttons()` issue when buttons have same value - `cb5ac8d5 <https://github.com/pywebio/PyWebIO/commit/cb5ac8d512386fc442abf6646621c3ef1e3ab26a>`_
+* fix layout issue when use `put_markdown()` - `364059ae <https://github.com/pywebio/PyWebIO/commit/364059ae8ac02e6d77dc031eaa1139863b09a6e3>`_
+* fix style issue in `put_tabs()` widget - `f056f1ac <https://github.com/pywebio/PyWebIO/commit/f056f1aca3a10d8fe18bd49b21d52e073d08dcdc>`_
+* fix sibling import issue in `path_deploy()` - `35209a7e <https://github.com/pywebio/PyWebIO/commit/35209a7e79b9ef8d0fdc2b5833576b313830bc93>`_
+* fix "Address already in use" error when enable remote access in some cases - `8dd9877d <https://github.com/pywebio/PyWebIO/commit/8dd9877d81eba43eadce9c136125ffb08d8fe98a>`_
+

+ 2 - 2
pywebio/__version__.py

@@ -1,8 +1,8 @@
 __package__ = 'pywebio'
 __description__ = 'Write interactive web app in script way.'
 __url__ = 'https://pywebio.readthedocs.io'
-__version__ = "1.4.0"
-__version_info__ = (1, 4, 0, 0)
+__version__ = "1.5.0"
+__version_info__ = (1, 5, 0, 0)
 __author__ = 'WangWeimin'
 __author_email__ = 'wang0.618@qq.com'
 __license__ = 'MIT'