Path to this page:
Subject: CVS commit: pkgsrc/textproc/py-jinja2
From: Adam Ciarcinski
Date: 2024-12-25 22:58:16
Message id: 20241225215817.0F5DFFC1D@cvs.NetBSD.org
Log Message:
py-jinja2: updated to 3.1.5
Version 3.1.5
The sandboxed environment handles indirect calls to str.format, such as by \
passing a stored reference to a filter that calls its argument. \
GHSA-q2x7-8rv6-6q7h
Escape template name before formatting it into error messages, to avoid issues \
with names that contain f-string syntax.
Sandbox does not allow clear and pop on known mutable sequence types.
Calling sync render for an async template uses asyncio.run.
Avoid unclosed auto_aiter warnings.
Return an aclose-able AsyncGenerator from Template.generate_async.
Avoid leaving root_render_func() unclosed in Template.generate_async.
Avoid leaving async generators unclosed in blocks, includes and extends.
The runtime uses the correct concat function for the current environment when \
calling block references.
Make |unique async-aware, allowing it to be used after another async-aware filter.
|int filter handles OverflowError from scientific notation.
Make compiling deterministic for tuple unpacking in a {% set ... %} call.
Fix dunder protocol (copy/pickle/etc) interaction with Undefined objects.
Fix copy/pickle support for the internal missing object.
Environment.overlay(enable_async) is applied correctly.
The error message from FileSystemLoader includes the paths that were searched.
PackageLoader shows a clearer error message when the package does not contain \
the templates directory.
Improve annotations for methods returning copies.
urlize does not add mailto: to values like @a@b.
Tests decorated with @pass_context` can be used with the |select filter.
Using set for multiple assignment (a, b = 1, 2) does not fail when the target is \
a namespace attribute.
Using set in all branches of {% if %}{% elif %}{% else %} blocks does not cause \
the variable to be considered initially undefined.
Files: