Releases: twigjs/twig.js
Releases · twigjs/twig.js
v1.17.1
v1.17.0
What's Changed
- Add string position of tokens in token trees by @synga-nl in #859
- Allow multiple spaces after elseif statement. by @antoineveldhoven in #870
- Make is empty return false for boolean true. by @antoineveldhoven in #869
- Add support for spaceship operator by @antoineveldhoven in #873
- Allow colon inside Twig.expression.type.key.brackets. by @antoineveldhoven in #879
- Bump @babel/traverse from 7.12.5 to 7.23.2 by @dependabot in #877
- Support variables in slice filter shorthand by @antoineveldhoven in #881
New Contributors
- @synga-nl made their first contribution in #859
- @antoineveldhoven made their first contribution in #870
Full Changelog: v1.16.0...v1.17.0
v1.16.0
What's Changed
- Fix macro changing context in loop by @mihkeleidast in #773
- Imported function PATHS.strip_slash() missing by @murageyun in #770
- Convert non-string values to string before replacing by @kmonahan in #797
- Fixed Twig official's URL on README.md by @Geolim4 in #822
- Add namespace support to
source
function by @willrowe in #823 - Add tests for whitespace in paths by @willrowe in #824
- Fix multiple includes with embeds by @willrowe in #828
- Use src/twig.js as package's main script instead of the compiled twig.js by @RobLoach in #829
- Update to Mocha 9.x by @RobLoach in #831
- Add test for issue #767 by @willrowe in #837
- Add support for
divisible by
test by @willrowe in #838 - Add support for
with
tag without context oronly
keyword by @willrowe in #839 - Use v3 of
actions/checkout
by @willrowe in #846 - Test on more node versions by @willrowe in #847
- Fix webpack 5 compatibility by @willrowe in #849
- Add test to confirm
renderFile
error handling by @willrowe in #851 - Fix casing of variables in docs by @willrowe in #852
- Fix passing context around by @willrowe in #850
- Update to v1.16.0 by @RobLoach in #858
- Bump dependencies by @dependabot
New Contributors
- @murageyun made their first contribution in #770
- @kmonahan made their first contribution in #797
- @Geolim4 made their first contribution in #822
Full Changelog: v1.15.4...v1.16.0
v1.15.4
What's Changed
- fix: fix lost context when calling a macro multiple times by @mihkeleidast in #760
- Update to 1.15.4 by @RobLoach in #761
Full Changelog: v1.15.3...v1.15.4
v1.15.3
v1.15.2
- Specify MimeType to always use for AJAX templates (#742) by MasterOdin
- Added token count validation (#745) by HakS
- Async renderFile error callback (#748) by ArnauMrJeff
- Ternary operator overrides context fix (#737) by oleg-andreyev
- Update lodash to
4.17.19
- Update elliptic to
6.5.3
1.15.0
Major improvements:
- Add support for arrays with
include
(#681 by @justafish) - Add babel preset on serverBuild (#707 by @stephane-r)
- Support for "do" tag (#703 by @drzraf)
- Update
xo
and code syntax by @RobLoach - Deprecate Node.js 8 from testing by @RobLoach
- Support for Source Maps (#700 by @drzraf)
- Search for block within all ascendants instead of parent only (#698 by @drzraf)
Minor improvements:
1.14.0
Major improvements
- Add Babel to the webpack build
Minor improvements
- Add
apply
tag (#656 by @maxhelias) - Add
spaceless
filter (#655 by @maxhelias) - Add
deprecated
tag (#675 by @josephineb) - Fix
starts with
andends with
expressions (#661 by @ilkkave) - Add
package.json
license field to fix npm warning (#672 by @WietseWind) - Update
strict_variables
option to match Twig's strict messages (#674 by @toptalo) - Fix
??
operator when used with arrays to return the array rather than its length (#653 by @diegorales)