Skip to content

Migration guide from v4.x to v5.x

Slava Oliyanchuk edited this page Oct 19, 2016 · 2 revisions

v5.0.0 release notes

Steps to migrate

  1. Replace elemMatch(argument) to elem('*').match(function() { ... }).

  2. behavior mods and elemMods BEMJSON fields are changed. bem-xjst should not treat elemMods as mods.

  3. API changed: require('bem-xjst') now returns two engines bemhtml and bemtree. Replace require('bem-xjst') to require('bem-xjst').bemhtml.