Skip to content

Migration guide from v6.x to v7.x

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

v7.0.0 release notes

Steps to migrate

  1. Replace this.isArray(argument) to Array.isArray(argument).

  2. Remove once() from your code. You don’t need it at all.

  3. For safety: modifiers value should be String type. In BEMJSON and in template. If not so - we must warn you. Comare sandbox example in v6.x and v7.x https://goo.gl/auhOOV

  4. Optional: for backwards capability use xhtml: true option value in all bemxjst.compile() functions.