Skip to content

4.3.0

Compare
Choose a tag to compare
@miripiruni miripiruni released this 19 Jan 13:39
· 628 commits to master since this release

BEM-XJST will explicitly throw error if you try to pass arguments to shortcuts for predicates (attrs, bem, cls, content, js, mix, tag and etc).

// Incorrect!
block('b').tag('span'); // Will throw `BEMHTML error: Predicate should not have arguments`

// Correct:
block('b').tag()('span');

Commits:

  • [efa223d413] - Throw error if args passed to shortcut predicates (Vladimir Grinenko)·
  • [059c0b9bfb] - Context: Remove unused BEM field (Vladimir Grinenko)·
  • [351896b840] - util: Remove unused NAME_PATTERN variable (Vladimir Grinenko)·