Releases: sqlalchemy/mako
1.3.6
1.3.6
Released: Mon Oct 21 2024
bug
-
[bug] [lexer] Fixed long standing bug where the sequence
<&
would be misinterpreted
by the lexer. It's not clear why the ampersand character was part of the
characters being consumed here and it may have been an inadvertent bit of
code from one of Mako's predecessor languages.References: #412
1.3.5
1.3.4
1.3.4
Released: Mon May 13 2024
bug
-
[bug] [parser] Fixed regression caused by the fix for #320 where new logic added
to interpret list and dictionary comprehensions would fail for expression
oriented keys. As the parsing in question was not necessary for these
keys, it's been removed. Pull request courtesy Sébastien Granjoux.References: #398
-
[bug] [lexer] Fixed issue where a parsed expression which contained sub-brackets, such as
dictionary literals, would fail to be interpreted correctly even though the
initial parsing is correct. Pull request courtesy Jose Galvez.References: #400
1.3.3
1.3.3
Released: Wed Apr 10 2024
bug
-
[bug] [codegen] Fixed unexpected error when use control lines which the
first control block with no bodies other than comments,
as pass is now added to the first empty block.
Pull request courtesy Hai Zhu.References: #146
-
[bug] [parser] Fixed unexpected syntax error in strict_undefined mode that occurred
when using comprehensions within a function in a Mako Python code block.
Now, the local variable in comprehensions won't be added to the checklist
when using strict_undefined mode.
Pull request courtesy Hai Zhu.References: #320
1.3.2
1.3.2
Released: Tue Jan 30 2024
bug
-
[bug] [lexer] Fixed parsing issue where attempting to render a single percent sign %
using an escaped percent %% would not function correctly if the escaped
percent were not the first character on a line. Note that this is a revised
version of a similar change made in Mako 1.3.1 which caused unexpected
parsing regressions, resulting in the release being yanked.
Pull request courtesy Hai Zhu.References: #323
1.3.1
1.3.0
1.3.0
Released: Wed Nov 8 2023
- [change] [installation] Mako 1.3.0 bumps the minimum Python version to 3.8, as 3.7 is EOL as of
2023-06-27. Python 3.12 is now supported explicitly.
1.2.4
1.2.4
Released: Tue Nov 15 2022
bug
-
[bug] [codegen] Fixed issue where unpacking nested tuples in a for loop using would raise a
"couldn't apply loop context" error if the loop context was used. The regex
used to match the for loop expression now allows the list of loop variables
to contain parenthesized sub-tuples. Pull request courtesy Matt Trescott.References: #368
1.2.3
1.2.3
Released: Thu Sep 22 2022
bug
-
[bug] [lexer] Fixed issue in lexer in the same category as that of #366 where
the regexp used to match an end tag didn't correctly organize for matching
characters surrounded by whitespace, leading to high memory / interpreter
hang if a closing tag incorrectly had a large amount of unterminated space
in it. Credit to Sebastian Chnelik for locating the issue.As Mako templates inherently render and directly invoke arbitrary Python
code from the template source, it is never appropriate to create
templates that contain untrusted input.References: #367
1.2.2
1.2.2
Released: Mon Aug 29 2022
bug
-
[bug] [lexer] Fixed issue in lexer where the regexp used to match tags would not
correctly interpret quoted sections individually. While this parsing issue
still produced the same expected tag structure later on, the mis-handling
of quoted sections was also subject to a regexp crash if a tag had a large
number of quotes within its quoted sections.References: #366