changelogs.md


power-assert-js/babel-plugin-espower

Repository  -  API  -  Source

3.0.0

Features

Breaking Changes

  • Babel7 is incompatible with Babel6. Babel6 is incompatible with Babel5.

For Babel6, you need to use the 2.x release of babel-plugin-espower.

$ npm install --save-dev babel-plugin-espower@2.3.2

For Babel5 or lower, you need to use the 1.x release of babel-plugin-espower.

$ npm install --save-dev babel-plugin-espower@1.1.1
  • An internal & interim module with-experimental-syntax.js is removed, since embedAst is true by default in 3.0.0.

Notice

Changing embedAst option's default to true does not break builds but may slow your build time down. If you are aware that you are not using non-ES-standard syntax, changing embedAst option to false restores the former behavior.

2.4.0

January 16, 2018

Features

Notice

with-experimental-syntax.js is an internal & interim module and will be removed from next major version, since embedAst will be true by default in next major.

2.3.2

January 13, 2017

2.3.1

June 21, 2016

Bug Fixes

  • stop capturing SequenceExpression itself since SequenceExpressions are not enclosed in parentheses in some cases (bf64b96a)

2.3.0

June 21, 2016

2.2.0

May 31, 2016

2.1.2

February 14, 2016

Bug Fixes

  • do not include comments in one-line format assertion (c5af6c55)

2.1.1

January 26, 2016

2.1.0

January 10, 2016

2.0.0

November 13, 2015

Features

Breaking Changes

Babel6 is incompatible with Babel5. For Babel 5 or lower, you need to use the 1.x release of babel-plugin-espower.

$ npm install --save-dev babel-plugin-espower@1.1.0

1.1.1

June 22, 2016

Bug Fixes

1.0.0

January 3, 2000

1.1.0

November 6, 2015

1.0.1

November 7, 2015

Bug Fixes

1.0.0

January 2, 2000

1.0.0

May 25, 2015

Features

  • use process.cwd() for sourceRoot option value (71016432)
  • update espower to 1.0.0 (337cdfd2)

0.4.1

May 21, 2015

Bug Fixes

  • eliminate remaining babel-core dependencies (7735ed5f)

0.4.0

May 21, 2015

Bug Fixes

  • avoid visiting replacement node (c4da8f8f)

Features

  • use new 5.2.0+ API with shared babel-core. No more peerDependencies. (39eb684b)

Breaking Changes

  • function returned by babel-plugin-espower/create takes babel instance as a first argument.

If you are customizing babel-plugin-espower using babel-plugin-espower/create, you may have to migrate.

To migrate, change your code from the following:

var babel = require('babel-core');
var createEspowerPlugin = require('babel-plugin-espower/create');
var transformed = babel.transform(jsCode, {
    plugins: [
        createEspowerPlugin({
            patterns: [
                'assert.isNull(object, [message])',
                'assert.same(actual, expected, [message])',
                'assert.near(actual, expected, delta, [message])'
            ]
        })
    ]
});

To:

var babel = require('babel-core');
var createEspowerPlugin = require('babel-plugin-espower/create');
var transformed = babel.transform(jsCode, {
    plugins: [
        createEspowerPlugin(babel, {
            patterns: [
                'assert.isNull(object, [message])',
                'assert.same(actual, expected, [message])',
                'assert.near(actual, expected, delta, [message])'
            ]
        })
    ]
});

(39eb684b)

0.3.1

May 18, 2015

Bug Fixes

  • use version range since babel-core 5.4.3 does not work. (3b586fa9

0.3.0

May 1, 2015

Bug Fixes

  • deal with babel 5.2.x internal changes. (17698583, closes #3)

0.2.2

April 24, 2015
  • update escallmatch to 1.3.2 (941c75c2)

0.2.1

April 21, 2015
  • down peerDependencies to minimum version to make dedupe friendly (093ce106)

0.2.0

April 19, 2015
  • export create.js to customize assertion patterns (092c3464)
  • docs about customizing assertion patterns via Babel API (f72a9b1)

0.1.0

April 18, 2015

The first release.