1.6.0 is out!

Written by Sérgio Crisóstomo on 14 January 2016 – Posted underall,releases

Today marks the release of MooTools Core and More versions1.6.0. This is aminor revision that delivers a number of bug fixes as well as the introduction of new features.

The main new adition is Class.Thenable which is a new Class mixin that can be used in Promise style flows by using itsthen method. When implemented in a Class, it makes the class "thenable" in thePromises/A+ sense of the word, meaning it can be used in Promise style flows by using itsthen method.

The implementation, however, is more than just a "then" method. Any instance of a Class implementingClass.Thenable is aPromises/A+ compliant object (generally referred to as "a Promise") with only one exception: it is possible to reset the Class's value resolution state fully (rejecting pending reactions, and starting empty) to support a Class instance living for longer than just the lifetime of one value resolution.

Example using Request:

var request =new Request();request.send().then(function(response){ console.log(response.text); });

Example hooking into a native Promise:

var request =new Request();var promise = Promise.resolve(request);request.send();promise.then(function(response){ console.log(response.text); });

You can find this new version1.6.0 in the website or within thedist folder of the1.6.0 tag (Core).

Warnings:

IE warning: This will be the last version to support old IE browsers. Nextminor and/ormajor versions should be only IE11+ compatible. We might still release somepatch in the1.6.x version if needed.

Array.from deprecated, now called Array.convert: Following the conclusion of the ES6 specs we know now thatArray.from will have a different implementation than the one MooTools uses.
Because of this we renamedArray.from toArray.convert to not overwrite the Native implementation.
We kept it as it was though in thecompat layer for compatibility reasons if you really to use it still.

To keep the API consistency we changed also the name of the method inFunction,Number andString Types.


The main changes in this release are:

Core:

  • Rename.from method in Array, Function, String and Number(#2758)(#2760)
  • New feature: Class.Thenable(#2743)
  • Add Safari 9 to Sauce Labs tested browsers(#2749)
  • Added ESLint to Grunt specs to keep code styled and clean(#2748)
  • Gruntfile refactor(#2741)
  • MooTools specs goes Mocha(#2737)
  • Specs upgrade, refactor and cleanup. Huge specs cleanup by Tim(#2736)
  • Fix so the legacy$pick gets exported to global(#2735)
  • Fix soEvent Class gets exported to global(#2733)

More:

  • Add extra aliases to Assets package's description(#1335)
  • Added ESLint to Grunt specs to keep code styled and clean(#1327)
  • New feature: new optionkeepOpen to Accordion(#1333)
  • New feature: added sort order toonSort function arguments(#1332)
  • Fix String.extras regex to not mix self closing tags(#1328)
  • Fixvalidate-match "matchName" when containing spaces(#1186)
  • FixunDraggableTags in Drag(#1159)
  • Fix tovalidate-reqchk-byname(#1329)
  • New feature: added IPv6 compatibility to URI.regex(#1322)
  • Fix semicolon in end of file that broke packager(#1319)
comments powered byDisqus