Skip to content

2.0.0

Compare
Choose a tag to compare
@narqo narqo released this 04 Mar 14:24
· 782 commits to v2 since this release

Breaking changes

  • All deprecated methods have been removed from i-bem.js and i-bem__dom.js (#318).
    The following methods were removed:
    • destruct, use onSetMod js '';
    • extractParams, use elemParams;
    • trigger, use emit;
    • afterCurrentEvent, use next-tick module;
    • channel, use events__channels module;
    • changeThis, use native Function.prototype.bind.
  • init and destruct events have been removed from i-bem.js in favor of modifiers changes events (see "Major changes" section below).
  • ecma was moved to separate repo; ES5-shims should be used
    for IE < 9 (#230).
  • vow module has been updated to 0.4.1 (#350).
    See Vow's changelog for changes.
  • Support for [email protected] has been added to i-bem.bemhtml (#385).

Major changes

  • Support for defining BEMDOM-blocks as ym modules has been added (#382).
  • Events for modifiers changes have been added to i-bem.js (#357).
  • Support for passing string values has been added to BEMDOM.init
    (#419).
    and BEMDOM.update methods (#420).
  • DOM helpers from i-bem__dom.js replace, append, prepend, before, after now return new context and update returns
    updated context as a jQuery object (#410).
  • New loader_type_bundle has been added (#358).
  • Default jQuery versions were updated to 2.1.0 and to 1.11.0, for IE < 9 (#356).

Other changes

  • i-bem.bemhtml now uses strings concatination instead of pushing to buffer in it's internals (#401).
  • jQuery no longer removes itself from global scope if it exists (#349).
  • jquery__event_type_pointerclick.js has been moved from touch level to common (#393).
  • Modifiers i-bem_elem-instances_yes and i-bem__dom_elem-instances_yes were renamed to boolean style (#352).
  • Runtime error in page template in development mode has been fixed (#417).
  • Usage of Function.prototype.bind has been droped from i-bem.js internals in favor of support
    for Android 2.3 (#404).
  • Some bugs in browser-js+bemhtml tech have been fixed (#392).
  • Up to [email protected] (#414).