Releases: mozilla/nunjucks
Releases · mozilla/nunjucks
v3.2.4
What's Changed
- fix: html encode backslashes if used with escape filter or autoescape by @fdintino in #1437. Fixes CVE-2023-2142
(bugzilla #1825980)
Full Changelog: v3.2.3...v3.2.4
v3.2.3
- Add support for nested attributes on
sort
filter; respectthrowOnUndefined
if sort attribute is undefined. - Add
base
arg toint
filter. - Move
chokidar
topeerDependencies
and mark itoptional
inpeerDependenciesMeta
. - Fix prototype pollution issue for template variables. Merge of #1330; fixes #1331. Thanks ChenKS12138!
v3.2.2
- Add
select
andreject
filters. Merge of #1278 and #1279; fixes #282. Thanks ogonkov! - Fix precompile binary script
TypeError: name.replace is not a function
. Fixes #1295. - Add support for nested attributes on
groupby
filter; respectthrowOnUndefined
option, if the groupby attribute is undefined. Merge of #1276; fixes #1198. Thanks ogonkov! - Fix bug that prevented errors in included templates from being raised when rendering templates synchronously. Fixes #1272.
- The
indent
filter no longer appends an additional newline. Fixes #1231.
v3.2.1
v3.2.0
- Adds
NodeResolveLoader
, a Loader that loads templates using node'srequire.resolve
. Fixes #1175. - Emit 'load' events on
Environment
instances, to allow runtime dependency tracking. Fixes #1153.
v3.1.7
v3.1.6
v3.1.5
v3.1.4
v3.1.3
-
Add
forceescape
filter. Fixes #782 -
Fix regression that prevented template errors from reporting line and column number. Fixes #1087 and #1095.
-
Fix "Invalid type: Is" error for
{% if value is defined %}
. Fixes #1110 -
Formally drop support for node v4 (the upgrade to babel 7 in v3.1.0 made the build process incompatible with node < 6.9.0).