v1.1.0.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132
  1. What's new in PyWebIO 1.1
  2. ==========================
  3. 2021 2/7
  4. ----------
  5. It's been a whole year since the first line of PyWebIO code was written. 🎂 There have been too many things in 2020, but it has a special meaning to me. In 2021, we will continue to work hard to make PyWebIO better and better.
  6. Highlights
  7. ^^^^^^^^^^^
  8. * Security support: `put_html() <pywebio.output.put_html>`, `put_markdown() <pywebio.output.put_markdown>` can use ``sanitize`` parameter to prevent XSS attack.
  9. * UI internationalization support
  10. * SEO support: Set SEO info through `pywebio.platform.seo()` or function docstring
  11. * CDN support, more convenient to web framework integration
  12. * Application access speed is improved, and no probe requests are used to determine the communication protocol
  13. Backwards-incompatible changes
  14. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  15. * Remove `disable_asyncio` parameter of `start_server()` in django and flask.
  16. * Deprecated `pywebio.session.data()`, use `pywebio.session.local` instead
  17. * Application integrated into the web framework, the access address changes, see :ref:`Web framework integration<integration_web_framework>`
  18. * Remove `max_height` parameter of `put_scrollable() <pywebio.output.put_scrollable>`, use `height` instead
  19. Detailed changes
  20. ^^^^^^^^^^^^^^^^^
  21. * `put_code() <pywebio.output.put_code>` add `rows` parameter to limit the maximum number of displayed lines
  22. * `put_scrollable() <pywebio.output.put_scrollable>` add `keep_bottom` parameter
  23. * `put_markdown() <pywebio.output.put_markdown>` add ``options`` to config Markdown parsing options.
  24. * Add html escaping for parameters of `put_code() <pywebio.output.put_code>`, `put_image() <pywebio.output.put_image>`, `put_link() <pywebio.output.put_link>`, `put_row() <pywebio.output.put_row>`, `put_grid() <pywebio.output.put_grid>`
  25. * Methods ``reset()``, ``append()``, ``insert()`` of `output() <pywebio.output.output>` accept string content
  26. * Fix: Parsing error in `max_size` and `max_total_size` parameters of `file_upload() <pywebio.input.file_upload>`
  27. * Fix: Auto open browser failed in python 3.6