Skip to content

Releases: sqlalchemy/mako

1.3.8

07 Dec 18:41
Compare
Choose a tag to compare

1.3.8

Released: Sat Dec 7 2024

bug

  • [bug] [lexer] Reverted the fix for #140 released in Mako 1.3.7 as it produced
    regressions in existing user code.

    References: #140, #415

1.3.7

03 Dec 18:58
Compare
Choose a tag to compare

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.

    References: #400, #401

1.3.6

21 Oct 21:53
Compare
Choose a tag to compare

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

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