Releases: sqlalchemy/mako
1.3.8
1.3.7
1.3.7
Released: Tue Dec 3 2024
bug
-
[bug] [codegen] [lexer] During the lexical analysis phase, add an additional prefix for undeclared
identifiers that have the same name as built-in flags, and determine the
final filter to be used during the code generation phase based on the
context provided by the user. Pull request by Hai Zhu.References: #140
-
[bug] [lexer] Support the direct passing of dictionary literals when calling functions
and fix the errors caused by nested braces. This revises the fix that was
released in 1.3.4 and then reverted in 1.3.5. Pull request by Hai Zhu and
Jose Galvez.
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