Skip to content

Releases: azu/babel-plugin-jsdoc-to-assert

4.0.0

16 Sep 07:23
@azu azu

Choose a tag to compare

Features

BREAKING CHANGES

  • babel: Maybe require Babel 7>=

3.0.4

16 Jan 11:56
@azu azu

Choose a tag to compare

Fixes

  • Simplify spec generator assertion code #9

3.0.3

30 Dec 13:34
@azu azu

Choose a tag to compare

Bug Fixes

3.0.2

18 Nov 15:08
@azu azu

Choose a tag to compare

Bug Fixes

3.0.1

29 Aug 10:47
@azu azu

Choose a tag to compare

Bug Fixes

  • generator: use only console.assert (d72ee3b)

3.0.0

29 Aug 00:30
@azu azu

Choose a tag to compare

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

2.2.1

28 Aug 12:46
@azu azu

Choose a tag to compare

Bug Fixes

  • npm: revert to jsdoc-to-assert@2.4.0 (25c254a)
  • test: revert test code also (37e495a)

2.2.0

28 Aug 11:06
@azu azu

Choose a tag to compare

Bug Fixes

2.1.0

16 Aug 13:16
@azu azu

Choose a tag to compare

Features

  • plugin: suport FunctionExpression (25b7f4d)

2.0.2

16 Aug 01:29
@azu azu

Choose a tag to compare

Features

  • plugin: add checkAtType and checkAtParam option (e0b7f4f)