GitHub
12/23/2024, 6:15 PM3.1.5
This is the Jinja 3.1.5 security fix release, which fixes security issues and bugs but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.
PyPI: https://pypi.org/project/Jinja2/3.1.5/Changes: https://jinja.palletsprojects.com/changes/#version-3-1-5Milestone: https://github.com/pallets/jinja/milestone/16?closed=1
• The sandboxed environment handles indirect calls to, such as by passing a stored reference to a filter that calls its argument. GHSA-q2x7-8rv6-6q7hstr.format
• Escape template name before formatting it into error messages, to avoid issues with names that contain f-string syntax. #1792, GHSA-gmj6-6f8f-6699
• Sandbox does not allowandclearon known mutable sequence types. #2032pop
• Calling syncfor an async template usesrender. #1952asyncio.run
• Avoid unclosedwarnings. #1960auto_aiter
• Return an-ableaclosefromAsyncGenerator. #1960Template.generate_async
• Avoid leavingunclosed inroot_render_func(). #1960Template.generate_async
• Avoid leaving async generators unclosed in blocks, includes and extends. #1960
• The runtime uses the correctfunction for the current environment when calling block references. #1701concat
• Makeasync-aware, allowing it to be used after another async-aware filter. #1781|unique
•filter handles|intfrom scientific notation. #1921OverflowError
• Make compiling deterministic for tuple unpacking in acall. #2021{% set ... %}
• Fix dunder protocol (`copy`/`pickle`/etc) interaction withobjects. #2025Undefined
• Fix `copy`/`pickle` support for the internalobject. #2027missing
•is applied correctly. #2061Environment.overlay(enable_async)
• The error message fromincludes the paths that were searched. #1661FileSystemLoader
•shows a clearer error message when the package does not contain the templates directory. #1705PackageLoader
• Improve annotations for methods returning copies. #1880
•does not addurlizeto values likemailto:. #1870@a@b
• Tests decorated withcan be used with the@pass_contextfilter. #1624|select
• Usingfor multiple assignment (set) does not fail when the target is a namespace attribute. #1413a, b = 1, 2
• UsingChangelog Sourced from jinja2's changelog.in all branches ofsetblocks does not cause the variable to be considered initially undefined. #1253{% if %}{% elif %}{% else %}
Version 3.1.5
Released 2024-12-21
• The sandboxed environment handles indirect calls to, such as by passing a stored reference to a filter that calls its argument. ghsastr.formatq2x7-8rv6-6q7h
• Escape template name before formatting it into error messages, to avoid issues with names that contain f-string syntax. issue, ghsa1792gmj6-6f8f-6699
• Sandbox does not allowandclearon known mutable sequence types. issuepop2032
• Calling syncfor an async template usesrender. prasyncio.run1952
• Avoid unclosedwarnings. prauto_aiter1960
• Return an-ableaclosefrom`Template.generate_async`. prAsyncGenerator1960
• Avoid leavingunclosed in`Template.generate_async`. prroot_render_func()1960
• Avoid leaving async generators unclosed in blocks, includes and extends. pr1960
• The runtime uses the correctfunction for the current environment when calling block references. issueconcat1701
• Makeasync-aware, allowing it to be used after another async-aware filter. issue|unique1781
•filter handles|intfrom scientific notation. issueOverflowError1921
• Make compiling deterministic for tuple unpacking in a `{% set ... %}`call. issue2021
• Fix dunder protocol (`copy`/`pickle`/etc) interaction with `Undefined`objects. issue2025
• Fix `copy`/`pickle` support for the internalobject. issuemissing2027
•is applied correctly. prEnvironment.overlay(enable_async)2061
• The error message fromincludes the paths that were searched. issueFileSystemLoader1661
•shows a clearer error message when the package does not contain the templates directory. issuePackageLoader1705
• Improve annotations for methods returning copies. pr1880
•does not addurlizeto values likemailto:. pr@a@b1870
• Tests decorated with ``` @pass_context`` can be used with the ``|select`` filter. issue ```1624`
• Usingfor multiple assignment (set) does not fail when the target is a namespace attribute. issuea, b = 1, 21413
• UsingCommits •in all branches ofsetblocks does not cause the variable to be considered initially undefined. issue{% if %}{% elif %}{% else %}1253
877f6e5 release version 3.1.5
• 8d58859 remove test pypi
• eda8fe8 update dev dependencies
• c8fdce1 Fix bug involving calling set on a template parameter within all branches of ...
• 66587ce Fix bug where set would sometimes fail within if
• fbc3a69 Add support for namespaces in tuple parsing (#1664)
• b8f4831 more comments about nsref assignment
• ee83219 Add support for namespaces in tuple assignment
• 1d55cdd Triple quotes in docs (#2064)
• <https://github.com/pallets/jinja/c…
meltano/meltano
✅ All checks have passed
30/30 successful checksGitHub
12/30/2024, 3:39 AM