Opened 3 months ago

Closed 3 months ago

#5038 closed enhancement (fixed)

Jinja2-3.1.1

Reported by: Xi Ruoyao Owned by: lfs-book
Priority: normal Milestone: 11.2
Component: Book Version: git
Severity: normal Keywords:
Cc:

Description

Change History (3)

comment:1 by Xi Ruoyao, 3 months ago

Version 3.1.0

  • Drop support for Python 3.6.
  • Remove previously deprecated code.
    • WithExtension and AutoEscapeExtension are built-in now.
    • contextfilter and contextfunction are replaced by pass_context. evalcontextfilter and evalcontextfunction are replaced by pass_eval_context. environmentfilter and environmentfunction are replaced by pass_environment.
    • Markup and escape should be imported from MarkupSafe.
    • Compiled templates from very old Jinja versions may need to be recompiled.
    • Legacy resolve mode for Context subclasses is no longer supported. Override resolve_or_missing instead of resolve.
    • unicode_urlencode is renamed to url_quote.
  • Add support for native types in macros.
  • The {% trans %} tag can use pgettext and npgettext by passing a context string as the first token in the tag, like {% trans "title" %}.
  • Update valid identifier characters from Python 3.6 to 3.7.
  • Filters and tests decorated with @async_variant are pickleable.
  • Add items filter.
  • Subscriptions ([0], etc.) can be used after filters, tests, and calls when the environment is in async mode.
  • The groupby filter is case-insensitive by default, matching other comparison filters. Added the case_sensitive parameter to control this.
  • Windows drive-relative path segments in template names will not result in FileSystemLoader and PackageLoader loading from drive-relative paths.
Last edited 3 months ago by Bruce Dubbs (previous) (diff)

comment:2 by Bruce Dubbs, 3 months ago

Summary: Jinja2-3.1.0Jinja2-3.1.1

Now version 3.1.1.

comment:3 by Bruce Dubbs, 3 months ago

Resolution: fixed
Status: newclosed

Fixed at commit 676f0fdcecb3d53217a274db1138ff22005bea9a

Package updates.
    Update to sysvinit-3.02.
    Update to zlib-1.2.12.
    Update to expat-2.4.8.
    Update to Jinja2-3.1.1.
    Update to Python-3.10.4.
    Update to procps-ng-4.0.0.
    Update to iproute2-5.17.0.
    Update to meson-0.62.0.
    Update to linux-5.17.1.
    Update to util-linux-2.38.
Note: See TracTickets for help on using tickets.