Skip to content

v1.7.0

Choose a tag to compare

@zspecza zspecza released this 09 Jan 15:34
· 104 commits to master since this release

New Features

onString

onString - transformers now accept an onString method which runs on each part of the template literal that is not marked as a substitution (i.e. not inside "${}").

replaceStringTransformer

replaceStringTransformer(replaceWhat, replaceWith)

Replaces the result of all strings (what's not in ${ ... }) with a new value. Same as for replaceResultTransformer, replaceWhat can be a string or regular expression and replaceWith is the new value.