Skip to content

0.12.0

Latest

Choose a tag to compare

@github-actions github-actions released this 10 Nov 17:32
· 4 commits to master since this release
  • Drop support for Python 3.10 and older.
  • Add support for Python 3.13, 3.14 and 3.15.
  • Add support for WTForms 3.3.
  • Fix WTForms 3.3 deprecation warnings in SelectField, SelectMultipleField
    and SelectWidget. SelectField.iter_choices() now yields flat choices and
    the optgroup structure is available via has_groups() and iter_groups().
    SelectWidget.render_optgroup() was removed, and SelectWidget.render_option()
    now takes (value, label, selected, **render_kw) where selected is a
    boolean.
  • SelectWidget no longer puts newlines between options inside an
    optgroup.
  • Fix __all__ containing objects instead of names, which broke
    from wtforms_components import *.
  • SelectWidget no longer double-escapes Markup option labels, matching
    WTForms' own Select widget.
  • SelectWidget now renders per-choice render_kw attributes. Previously
    they raised TypeError on WTForms 3.1 and 3.2 and were ignored on 3.3.
  • Iterating over a SelectField with optgroups now yields one option per
    choice instead of one option per group.
  • Bump minimum MarkupSafe version to 2.0.
  • Remove unused timezone and ipaddress extras (#58).
  • Remove the test extra. Test dependencies are now in the test
    dependency group (pip install --group test .).