7.6 KiB
7.6 KiB
2.3.2 (2017-01-13)
Bug Fixes
2.3.1 (2016-06-21)
Bug Fixes
- stop capturing SequenceExpression itself since SequenceExpressions are not enclosed in parentheses in some cases (bf64b96a)
2.3.0 (2016-06-21)
Features
2.2.0 (2016-05-31)
Features
embedAst
option to embed assertion's AST and tokens to make runtime side parser unnecessary- Make babel-plugin-espower customizable via plugin options
2.1.2 (2016-02-14)
Bug Fixes
- do not include comments in one-line format assertion (c5af6c55)
2.1.1 (2016-01-26)
Performance Improvements
2.1.0 (2016-01-10)
Features
2.0.0 (2015-11-13)
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 (2016-06-22)
Bug Fixes
- pin espower dependency to >=1.0.0 <1.3.0 since there was a little breaking change (f9a7d781)
1.1.0 (2015-11-06)
Features
1.0.1 (2015-11-07)
Bug Fixes
- pin espower dependency to >=1.0.0 <=1.2.0 since there was a little breaking change (6420b3dc, closes #8)
1.0.0 (2015-05-25)
Features
0.4.1 (2015-05-21)
Bug Fixes
- eliminate remaining babel-core dependencies (7735ed5f)
0.4.0 (2015-05-21)
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 (2015-05-18)
Bug Fixes
- use version range since babel-core 5.4.3 does not work. (3b586fa9
0.3.0 (2015-05-01)
Bug Fixes
0.2.2 (2015-04-24)
- update escallmatch to 1.3.2 (941c75c2)
0.2.1 (2015-04-21)
- down peerDependencies to minimum version to make dedupe friendly (093ce106)
0.2.0 (2015-04-19)
- export create.js to customize assertion patterns (092c3464)
- docs about customizing assertion patterns via Babel API (f72a9b1)
0.1.0 (2015-04-18)
The first release.