1 | ### [0.10.1](https://github.com/twada/gulp-espower/releases/tag/v0.10.1) (2015-03-04)
|
2 |
|
3 |
|
4 | #### Bug Fixes
|
5 |
|
6 | * **gulp-espower:**
|
7 | * fix a bug that throw an error when the file has a syntax error ([603a681b](https://github.com/twada/gulp-espower/commit/603a681b9be2b809970c9aa89052d954feb2134b)) (by @bouzuya)
|
8 |
|
9 |
|
10 | ## [0.10.0](https://github.com/twada/gulp-espower/releases/tag/v0.10.0) (2014-11-11)
|
11 |
|
12 |
|
13 | * **gulp-espower:**
|
14 | * update espower and espower-source to 0.10.0 ([724aead0](https://github.com/twada/gulp-espower/commit/724aead0ac2ec8be7572eb133956729813d56518))
|
15 | * update vinyl-sourcemaps-apply ([c19ca9ab](https://github.com/twada/gulp-espower/commit/c19ca9abe9da0eec3c8134e63ccd72ec240092e5))
|
16 |
|
17 |
|
18 | ### 0.9.1 (2014-09-17)
|
19 |
|
20 |
|
21 | #### Features
|
22 |
|
23 | * **gulp-espower:** update espower and espower-source to 0.9.1 ([681f1ab9](https://github.com/twada/gulp-espower/commit/681f1ab9b786066fd66236686f0f118470851ef5))
|
24 |
|
25 |
|
26 | ## 0.9.0 (2014-09-02)
|
27 |
|
28 |
|
29 | #### Features
|
30 |
|
31 | * **gulp-espower:**
|
32 | * gulp-sourcemaps support ([caf2a275](https://github.com/twada/gulp-espower/commit/caf2a275aa26a1ce2ff43b024d73a8dc055feb3d))
|
33 | * keep paths relative until the end of chain ([9dc8f50b](https://github.com/twada/gulp-espower/commit/9dc8f50b0ecf3a0d77c472bf75e7730a54748c9f))
|
34 |
|
35 |
|
36 | ## 0.8.0 (2014-08-12)
|
37 |
|
38 |
|
39 | #### Features
|
40 |
|
41 | * **gulp-espower:**
|
42 | * update espower-source to 0.8.0 ([a9ab1f7d](https://github.com/twada/gulp-espower/commit/a9ab1f7de7275b717589bd8eb8048b89bc575763))
|
43 | * now supports streams as well ([ada19f90](https://github.com/twada/gulp-espower/commit/ada19f90f0dfc674405342310259e31ddd3a6dd0))
|
44 |
|
45 |
|
46 | #### Breaking Changes
|
47 |
|
48 | * update espower-source to 0.8.0 ([a9ab1f7d](https://github.com/twada/gulp-espower/commit/a9ab1f7de7275b717589bd8eb8048b89bc575763))
|
49 |
|
50 | If you already customize instrumentation pattern using `powerAssertVariableName` and `targetMethods`, you need to migarte. To migrate, change your code from the following:
|
51 |
|
52 | ```javascript
|
53 | var espower = require("gulp-espower");
|
54 |
|
55 | gulp.src("./test/*.js")
|
56 | .pipe(espower({
|
57 | powerAssertVariableName: 'yourAssert',
|
58 | targetMethods: {
|
59 | oneArg: [
|
60 | 'okay'
|
61 | ],
|
62 | twoArgs: [
|
63 | 'equal',
|
64 | 'customEqual'
|
65 | ]
|
66 | }
|
67 | }))
|
68 | .pipe(gulp.dest("./dist"));
|
69 | ```
|
70 |
|
71 | To:
|
72 |
|
73 | ```javascript
|
74 | var espower = require("gulp-espower");
|
75 |
|
76 | gulp.src("./test/*.js")
|
77 | .pipe(espower({
|
78 | patterns: [
|
79 | 'yourAssert(value, [message])',
|
80 | 'yourAssert.okay(value, [message])',
|
81 | 'yourAssert.equal(actual, expected, [message])',
|
82 | 'yourAssert.customEqual(actual, expected, [message])'
|
83 | ]
|
84 | }))
|
85 | .pipe(gulp.dest("./dist"));
|
86 | ```
|