UNPKG

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