changelogs.md


b-strauss/clulib

Repository  -  API  -  Source

3.8.0

April 23, 2018

Features

  • feat(animation.rendering): waitForFrames, throttle (ea7e144)

3.7.0

April 17, 2018

Features

  • feat(math): rectangleIntersects (2444212)

3.6.0

April 16, 2018

Features

  • feat(dom): isElementVisible (024ed9a)

3.5.0

March 4, 2018

Features

  • feat(cm): ComponentManager.prototype.dispose (2d5cb5e)

3.4.1

February 26, 2018

Bug Fixes

  • remove(cm): deprecated annotations for addComponent and addComponentMap (3c1d5e6)

3.4.0

February 15, 2018

Features

  • feat(math): mapRange (b435668)
  • feat(collections): objectToMap, mapToObject (e9c3a42)
  • feat(l10n): ResourceBundle (fed6d09)
  • feat(l10n): ResourceManager (8b82ffd)
  • feat(animation): RenderLoop (b26a769)
  • feat(validation): validateAge, validateDate, validateFileSize, validateFileType, validateMaxStringLength, validateMinStringLength, validateMaxNumber, validateMinNumber, validateRegExp, validateValueRequired, validateEmail, validatePostcode (43928eb)

3.3.0

January 16, 2018

Features

  • feat(net): httpRequest, httpGetText, httpGetJson (237a15b)

3.2.0

January 12, 2018

Features

  • feature(functions): cacheAsyncValue (b924995)

3.1.0

September 14, 2017

Features

  • feature(cm): metadata getter for component metadata

    Component metadata like type and selector can now be defined inside a static getter on the component. This feature needs to be used in combination with the addClass and addClasses methods on the ComponentManager.

    Example:

    // inside 'ButtonComponent'
    static get metadata () {
      return {
        type: 'default-button',
        selector: 'button.default-button'
      };
    }
    
    // adding the component
    cm.addclass(ButtonComponent);
    

3.0.0

August 27, 2017

BREAKING CHANGES

  • feature(general): use goog.module for the whole codebase

    The whole library now uses goog.module instead of goog.provide. This makes the code more concise, easier to understand, and resembles ES2015 modules more closely. Most old goog.require namespaces have identical goog.module ids. Only the component manager code has been refactored into clulib.cm. See the closure wiki for more infos on how to use goog.module. goog.module code can still be used inside legacy goog.provide code.

  • feature(general): use ES2015 classes for the whole codebase

    All classes are now real ES2015 classes. The closure-compiler understands these, and can mix them with legacy goog.inherits classes. Please note that the classes do not yet use getters/setters, as the closure-compiler currently doesn't understand @template types on getters/setters.

2.0.0

July 30, 2017

BREAKING CHANGES

  • update(project): rename lib into src (7c7e14a)

    All source files now reside under ./src. Update your build script accordingly.

  • remove: clulib.async.forEach and clulib.async.forEachRight (94d45f3)

    Use clulib.array.asyncForEach and clulib.array.asyncForEachRight instead.

  • remove: clulib.sdks.loadFacebookSdk and clulib.sdks.loadGooglePlusSdk (3d21e3f)

    There is no replacement for these functions.

  • update: clulib.cm.ComponentManager to use Map instead ot the deprecated goog.structs.Map (84c75b7)

    • clulib.cm.ComponentManager.prototype.getRegistry now returns a Map
    • clulib.cm.ComponentManager.prototype.addComponentMap now accepts only an object of type !Object<string, function(new:clulib.cm.Component)>

Bug Fixes

  • fix(cm): node_tree superfluous require (75af17a)

1.3.1

July 25, 2017

Bug Fixes

  • fix(cm): node_tree superfluous require (75af17a)

1.3.0

July 14, 2017

Bug Fixes

  • fix: use strict equality check for all checks not comparing null (0ba012a)
  • fix(async): forEachRight to not change the original array (fc56665)

Deprecations

  • deprecate: clulib.async.forEach and clulib.async.forEachRight in favor of clulib.array.asyncForEach and clulib.array.asyncForEachRight (8fc8ecc)
  • deprecate: clulib.sdks.loadFacebookSdk and clulib.sdks.loadGooglePlusSdk (d12c232)

1.2.0

February 26, 2017

Features

  • feat(array): add clulib.array.removeHoles (61a698a)
  • feat(async): clulib.async.forEach + clulib.async.forEachRight (a9fc7df)
  • feat(dom): clulib.dom.matches + clulib.dom.closest (f674dba)

Bug Fixes

  • fix(ui): ToggleButton setChecked not being callable if disabled (1fd15cf)

Misc

  • docs(cm): clarify forbidden method calls on Component (a617175)

1.1.2

February 10, 2017

Bug Fixes

  • fix(cm): call addChild before decorate to prevent goog.ui.Component's repositioning (97d49e9)

1.1.1

February 9, 2017

Bug Fixes

  • fix(cm): make private apis package private (9232679)
  • fix Element.prototype.closest fallback calling hasAttribute on non Elements (0f04bca)

Misc

  • perf(cm): compiler optimizations (e4ec400)
  • perf: more const usages (aafd248)

1.1.0

February 2, 2017

Features

  • feature: add queryComponent/queryComponentAll on ComponentManager (debdcca)

1.0.2

January 25, 2017

Bug Fixes

  • fix: more compiler warnings (2baa8ec)
  • fix: compiler warning (ac58ea4)

Misc

1.0.1

January 22, 2017

Bug Fixes

  • use es2015 default params (128e9a9)

1.0.0

January 14, 2017
  • initial release