Skip to content

3.0.0

Choose a tag to compare

@azu azu released this 29 Aug 00:30
· 11 commits to master since this release

Features

  • generator: add useSpecReporter (#5) (ff9a773)

Improve assertion

See https://github.com/azu/jsdoc-to-assert/releases/tag/2.5.0 for more details

  • Support Generics type on Array
/**
 * @param {number[]} x 
 */

to be

Array.isArray(x) && x.every(function (item) {
    return typeof item === 'number';
});
  • Support RestType
/**
 * @param {...number} x 
 */

to be

Array.isArray(x) && x.every(function (item) {
    return typeof item === 'number';
});

Breaking Change

Change default reporter to use SpecReporter.
It make error more readble for human.

Node.js

textlint 2016-08-29 10-05-18

Browser

almin todomvc 2016-08-29 10-05-55