All Versions
Latest Version
Avg Release Cycle
86 days
Latest Release
715 days ago

Changelog History
Page 2

  • v3.1.1

    February 23, 2018
  • v3.1.0 Changes

    February 20, 2018

    πŸ‘Œ Support nunjucks.installJinjaCompat() with slim build. Fixes #1019

    πŸ›  Fix calling render callback twice when a conditional import throws an error. Solves #1029

    πŸ‘Œ Support objects created with Object.create(null). fixes #468

    πŸ‘Œ Support ESNext iterators, using Array.from. Merge of #1058

  • v3.0.1 Changes

    May 24, 2017
    • πŸ›  Fix handling methods and attributes of static arrays, objects and primitives. Solves the issue #937
    • βž• Add support for python-style array slices with Jinja compat enabled. Fixes #188; merge of #976.
    • πŸ›  Fix call blocks having access to their parent scope. Fixes #906; merge of #994.
    • πŸ›  Fix a bug that caused capturing block tags (e.g. set/endset, filter/endfilter) to write to the global buffer rather than capturing their contents. Fixes #914 and #972; merge of #990. Thanks Noah Lange.
  • v3.0.0 Changes

    November 05, 2016
    • πŸ‘ Allow including many templates without reaching recursion limits. Merge of #787. Thanks Gleb Khudyakov.

    • πŸ‘ Allow explicitly setting null (aka none) as the value of a variable; don't ignore that value and look on up the frame stack or context. Fixes #478. Thanks Jonny Gerig Meyer for the report.

    • Execute blocks in a child frame that can't write to its parent. This means that vars set inside blocks will not leak outside of the block, base templates can no longer see vars set in templates that inherit them, and super() can no longer set vars in its calling scope. Fixes the inheritance portion of #561, which fully closes that issue. Thanks legutierr for the report.

    • πŸ‘€ Prevent macros from seeing or affecting their calling scope. Merge of #667.

    • πŸ›  Fix handling of macro arg with default value which shares a name with another macro. Merge of #791.

    • βž• Add support for the spaces parameter in the dump template filter. Merge of #868. Thanks Jesse Eikema

    • βž• Add verbatim as an alias of raw for compatibility with Twig. Merge of #874.

    • βž• Add new nl2br filter. Thanks Marc-AurΓ¨le Darche

    • βž• Add support for python's list.append with Jinja compat enabled. Thanks Conor Flannigan.

    • βž• Add variables whitespace control.

  • v2.5.2 Changes

    September 14, 2016
    • Call .toString in safe filter. Merge of #849.
  • v2.5.1 Changes

    September 13, 2016
    • πŸ›  Fix undefined and null behavior in escape and safe filter. Merge of #843.
  • v2.5.0 Changes

    September 07, 2016
    • βž• Add elseif as an alias of elif for parity with Twig. Thanks kswedberg. Merge of #826.

    • βž• Add nunjucks env to express app settings as nunjucksEnv. Merge of #829.

    • βž• Add support for finding an object's "length" in length filter. Merge of #813.

    • πŸ’… Ensure that precompiling on Windows still outputs POSIX-style path separators. Merge of #761.

    • βž• Add support for strict type check comparisons (=== and !==). Thanks oughter. Merge of #746.

    • πŸ‘ Allow full expressions (incl. filters) in import and from tags. Thanks legutierr. Merge of #710.

    • πŸ”€ OS agnostic file paths in precompile. Merge of #825.

  • v2.4.3 Changes

    September 07, 2016
    • πŸ›  Fix potential cast-related XSS vulnerability in autoescape mode, and with escape filter. Thanks Matt Austin for the report and Thomas Hunkapiller for the fix. #836
  • v2.4.2 Changes

    April 15, 2016
    • πŸ›  Fix use of in operator with strings. Fixes #714. Thanks Zubrik for the report.

    • πŸ‘Œ Support ES2015 Map and Set in length filter. Merge of #705. Thanks ricordisamoa.

    • βœ‚ Remove truncation of long function names in error messages. Thanks Daniel Bendavid. Merge of #702.

  • v2.4.1 Changes

    March 17, 2016
    • πŸ”€ Don't double-escape. Thanks legutierr. Merge of #701.

    • πŸ”€ Prevent filter.escape from escaping SafeString. Thanks atian25. Merge of #623.

    • Throw an error if a block is defined multiple times. Refs #696.

    • πŸ”€ Officially recommend the .njk extension. Thanks David Kebler. Merge of #691.

    • πŸ‘ Allow block-set to wrap an inheritance block. Unreported; fixed as a side effect of the fix for #576.

    • πŸ›  Fix filter tag with non-trivial contents. Thanks Stefan Cruz and Fabien Franzen for report and investigation, Jan Oopkaup for failing tests. Fixes #576.