Skip to content

Releases: sqlalchemy/mako

1.3.5

14 May 12:22
Compare
Choose a tag to compare

1.3.5

Released: Tue May 14 2024

bug

  • [bug] [lexer] [regression] Reverted the fix for #400 as it caused new issues when traversing
    some bracketed situations.

    References: #400, #401

1.3.4

14 May 01:18
Compare
Choose a tag to compare

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

10 Apr 15:32
Compare
Choose a tag to compare

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

30 Jan 13:30
Compare
Choose a tag to compare

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

22 Jan 20:49
Compare
Choose a tag to compare

1.3.1

Released: Mon Jan 22 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. Pull request courtesy Hai
    Zhu.

    References: #323

1.3.0

08 Nov 19:27
Compare
Choose a tag to compare

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

15 Nov 14:37
Compare
Choose a tag to compare

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

22 Sep 19:55
Compare
Choose a tag to compare

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

29 Aug 18:03
Compare
Choose a tag to compare

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

1.2.1

30 Jun 15:46
Compare
Choose a tag to compare

1.2.1

Released: Thu Jun 30 2022

bug

  • [bug] [tests] Various fixes to the test suite in the area of exception message rendering
    to accommodate for variability in Python versions as well as Pygments.

    References: #360

misc

  • [performance] Optimized some codepaths within the lexer/Python code generation process,
    improving performance for generation of templates prior to their being
    cached. Pull request courtesy Takuto Ikuta.

    References: #361