Skip to content

Migration guide from v7.x to v8.x

Slava Oliyanchuk edited this page Feb 1, 2017 · 5 revisions

v8.0.0 release notes

Steps to migrate

  1. You need to replace mix() to addMix(), attrs() to addAttrs(), js() to addJs(). Behaviour will be the same.

  2. If you develop common library you must use add*-modes as users may need to extend template values via BEMJSON.

  3. You should use mix() or attrs() to override third-party code (for example from block library) to skip mixes or attributes that you don’t need.

  4. You can flip priority from template value to BEMJSON value by template like this:

block('b').attrs()(function() {
  return this.extend({ some: 'prop' }, applyNext());
});