Releases: LinkedInAttic/dustjs-helpers
Releases · LinkedInAttic/dustjs-helpers
v1.7.0
Notable Changes
{@select}
New behavior:
key
is no longer required. If it is not provided,key
must be present on individual truth tests inside the select block.type
can be attached to the select to apply it to all truth tests inside (and a truth test can override the type)- If a provided key is
undefined
and atype
is provided, the undefined value will be cast totype
.
{@default}
{@default}
has been removed after being deprecated in 1.6.
You can replace {@default}
with {@none}
in your templates without any change in functionality (but you can have more than one {@none}
block, and only one {@default}
was allowed.)
{@size}
{@size}
will evaluate Dust template strings and provide the size of the result.
Your name has {@size key="{name}" /} letters.
{@math}
{@any}
and {@none}
now work inside {@math}
blocks.
v1.6.3
Notable Changes
- Fixes truth tests that were used with a context created from
dust.makeBase
in Dust <= 2.6.2 (most commonly seen if you use Adaro)
v1.6.2
Notable Changes
- Bugfixes around
{@select}
state handling.- Fixes #124
- dust.helpers.tap has been deprecated in favor of Context#resolve in Dust >= 2.6.2.
v1.6.0
The helpers can now be included as an AMD module alongside Dust 2.6.0 or newer.
New helpers:
{@any}
, which executes if any truth test in a{@select}
block passes.{@none}
, the opposite{@first}
, executes on the first iteration of a loop{@last}
... you get the idea
Removed helpers: https://github.com/linkedin/dustjs-helpers/wiki/Deprecated-Features
{@if}
(use other truth test helpers or context helpers instead){@idx}
(use {$idx}, a Dust core built-in, instead
v1.5.0
- #102 Deprecate {@if} and {@idx} helpers (@sethkinast)
- #105 Comparison helpers should still execute when their key parameter is set, but it resolves to undefined. (@sethkinast)
- #104 Coerce falsy values when a type is specified by a comparison helper. (@sethkinast)
- #101 Update README and add CHANGELOG (@sethkinast)
v1.4.0
v1.3.0
v1.2.0
- PR#62 Bump version of dependency
dustjs-linkedin
to~2.3.0
- PR #71 Fixes and improvements to
dust.helpers.tap
- Allows calling
dust.helpers.tap
on dust body functions - Functions in context will now have
chunk
andcontext
passed in as arguments when called viadust.helpers.tap
isFunction
flag is now ignored on functions defined in context, as well as, dust body functions
- Allows calling