Skip to content

v0.3.0

Choose a tag to compare

@JoernBerkefeld JoernBerkefeld released this 31 Jul 19:47
· 4 commits to main since this release

Features

  • Bracketed personalization strings ([First Name], [_subscriberkey]) are now tokenized as a new PERSONALIZATION token and emitted as an atomic PersonalizationString AST node, instead of being split into separate bracket and identifier tokens.
  • Works in all positions: assignment targets/values, function arguments, comparison operands, and inline %%=[...]=%% expressions.

Bugfixes

  • The bracket tokenizer is deliberately conservative: content containing =, quotes, %, , or ; is no longer mistaken for a personalization string, so constructs such as %%[ SET @a = "nested" ]%% degrade gracefully to raw tokens.
  • Unterminated brackets no longer swallow following statements.

Chores

  • Added test/personalization-string.test.mjs covering all supported positions and the degradation cases.
  • npm audit fix applied; CI workflow maintenance.

Full Changelog: v0.2.0...v0.3.0