1 | ## [1.3.0](https://github.com/power-assert-js/espower/releases/tag/v1.3.0) (2016-06-21)
|
2 |
|
3 |
|
4 | * [Support SequenceExpression (i.e., comma operator)](https://github.com/power-assert-js/espower/pull/27)
|
5 |
|
6 |
|
7 | ### [1.2.1](https://github.com/power-assert-js/espower/releases/tag/v1.2.1) (2015-11-06)
|
8 |
|
9 |
|
10 | * [disambiguate between function calls and async/yield expressions](https://github.com/power-assert-js/espower/pull/23) (by [@jamestalmage](https://github.com/jamestalmage))
|
11 |
|
12 |
|
13 | ## [1.2.0](https://github.com/power-assert-js/espower/releases/tag/v1.2.0) (2015-11-05)
|
14 |
|
15 |
|
16 | * [Instrument ES7 AwaitExpression Nodes](https://github.com/power-assert-js/espower/pull/21) (by [@jamestalmage](https://github.com/jamestalmage))
|
17 |
|
18 |
|
19 | ## [1.1.0](https://github.com/power-assert-js/espower/releases/tag/v1.1.0) (2015-11-03)
|
20 |
|
21 |
|
22 | * [capture YieldExpressions](https://github.com/power-assert-js/espower/pull/20) (by [@jamestalmage](https://github.com/jamestalmage))
|
23 | * [make AssertionVisitor more overridable](https://github.com/power-assert-js/espower/pull/19)
|
24 |
|
25 |
|
26 | ### [1.0.7](https://github.com/power-assert-js/espower/releases/tag/v1.0.7) (2015-09-21)
|
27 |
|
28 |
|
29 | * update escodegen to 1.7.0 ([feb96b0](https://github.com/power-assert-js/espower/commit/feb96b004acd0c540ab76a2529d91582b2095433))
|
30 | * update source-map to 0.5.0 ([7bc824b](https://github.com/power-assert-js/espower/commit/7bc824ba9d808be7d25959822acceb9e04422373))
|
31 |
|
32 |
|
33 | ### [1.0.6](https://github.com/power-assert-js/espower/releases/tag/v1.0.6) (2015-06-07)
|
34 |
|
35 |
|
36 | * SourceMap's `sourceRoot` should have precedence over `options.sourceRoot` if `sourceRoot` is URL ([dcf9642d](https://github.com/power-assert-js/espower/commit/dcf9642de0becb8239d4c3a1b8366a980bddb585))
|
37 |
|
38 |
|
39 | ### [1.0.5](https://github.com/power-assert-js/espower/releases/tag/v1.0.5) (2015-06-05)
|
40 |
|
41 |
|
42 | * update escallmatch to 1.4.2 and espurify to 1.3.0 ([62973ed](https://github.com/power-assert-js/espower/commit/62973ed7392037e46dedf9d8c5e02a2c28ed95c2))
|
43 | * use licensify to prepend license header ([d3bc5e8](https://github.com/power-assert-js/espower/commit/d3bc5e860126826b60ef3108add145c5c076e9bf))
|
44 |
|
45 |
|
46 | ### [1.0.4](https://github.com/power-assert-js/espower/releases/tag/v1.0.4) (2015-06-04)
|
47 |
|
48 |
|
49 | * try to create relative path if sourceMap.sourceRoot is locating source files on on a server ([ec0a91ba](https://github.com/power-assert-js/espower/commit/ec0a91baac5f747bd49ca88ea963141485bdddde))
|
50 | * never show absolute path or URL in power-assert output ([252b043f](https://github.com/power-assert-js/espower/commit/252b043f32db00fbbd81b7a6eb98e9d85c5b9371))
|
51 |
|
52 |
|
53 | ### [1.0.3](https://github.com/power-assert-js/espower/releases/tag/v1.0.3) (2015-05-31)
|
54 |
|
55 |
|
56 | * use basename when `sourceRoot` in `options.sourceMap` is locating source files on a server ([7822df1b](https://github.com/power-assert-js/espower/commit/7822df1b2097625231b2d70f71c5909851399f1d))
|
57 |
|
58 |
|
59 | ### [1.0.2](https://github.com/power-assert-js/espower/releases/tag/v1.0.2) (2015-05-30)
|
60 |
|
61 |
|
62 | * use basename when incoming `options.path` is absolute and it conflicts with `options.sourceRoot` or `sourceRoot` in `options.sourceMap` ([02f7b35a](https://github.com/power-assert-js/espower/commit/02f7b35a5acad20994b745de32cf512c2b95f57a))
|
63 |
|
64 |
|
65 | ### [1.0.1](https://github.com/power-assert-js/espower/releases/tag/v1.0.1) (2015-05-29)
|
66 |
|
67 |
|
68 | * apply `options.sourceRoot` if and only if incoming `options.path` is absolute ([65b4012a](https://github.com/power-assert-js/espower/commit/65b4012ab4ef71131fa5c4ea3090ab3f625e32d9))
|
69 |
|
70 |
|
71 | ## [1.0.0](https://github.com/power-assert-js/espower/releases/tag/v1.0.0) (2015-05-25)
|
72 |
|
73 |
|
74 | #### Features
|
75 |
|
76 | * transfer to power-assert-js organization ([c3b79559](https://github.com/power-assert-js/espower/commit/c3b79559d1d5cd8ea6d66406b36749bbafe33637))
|
77 | * support `deepStrictEqual` and `notDeepStrictEqual` ([9d98bc17](https://github.com/power-assert-js/espower/commit/9d98bc178c0a21f41ff4888fba9c89139f8af195))
|
78 | * [`sourceRoot` option](https://github.com/power-assert-js/espower/pull/18). If set, filepath in power-assert output will be relative from `sourceRoot`
|
79 | * [`visitorKeys` option](https://github.com/power-assert-js/espower/pull/17) to customize AST traversal
|
80 |
|
81 |
|
82 | ## [0.11.0](https://github.com/power-assert-js/espower/releases/tag/v0.11.0) (2015-04-18)
|
83 |
|
84 |
|
85 | #### Bug Fixes
|
86 |
|
87 | * throw Error if AST is already instrumented ([1d47bdc3](https://github.com/power-assert-js/espower/commit/1d47bdc3169de7865e176ceb708a07247ab17703))
|
88 |
|
89 |
|
90 | #### Features
|
91 |
|
92 | * [ES6 support](https://github.com/power-assert-js/espower/pull/16)
|
93 |
|
94 |
|
95 | ## [0.10.0](https://github.com/power-assert-js/espower/releases/tag/v0.10.0) (2014-11-11)
|
96 |
|
97 |
|
98 | * **espower:**
|
99 | * update escodegen ([22b002e3](https://github.com/power-assert-js/espower/commit/22b002e3c8c99679f5b97ae104ed66d685a0ea59))
|
100 | * update estraverse ([ecb6c07d](https://github.com/power-assert-js/espower/commit/ecb6c07dec5fd3c9cbf2da4e82667d0077ef3909))
|
101 | * update espurify ([9a75c16f](https://github.com/power-assert-js/espower/commit/9a75c16ff91f952b26a373df4e96bdcc6e09cfd8))
|
102 | * update escallmatch ([dbf424b1](https://github.com/power-assert-js/espower/commit/dbf424b1d3236dd2ac9e4076aef1ecee3867e228))
|
103 |
|
104 |
|
105 | ### 0.9.1 (2014-09-15)
|
106 |
|
107 |
|
108 | #### Bug Fixes
|
109 |
|
110 | * **espower:** decide to be skipped first, then enter node ([9d0a778a](https://github.com/power-assert-js/espower/commit/9d0a778a1ae97bb5c522cbfc7b1b65250118f2ea))
|
111 |
|
112 |
|
113 | ## 0.9.0 (2014-08-21)
|
114 |
|
115 |
|
116 | #### Features
|
117 |
|
118 | * **espower:**
|
119 | * adjust filepath in power-assert output if sourceMap option is given ([f919d59d](https://github.com/power-assert-js/espower/commit/f919d59d6eea764881e0266f562724b7142f7695))
|
120 | * adjust line number in power-assert output if sourceMap option is given ([8c035d89](https://github.com/power-assert-js/espower/commit/8c035d89ae88c8554cb8ca0b6bd0f7d6fe2008b0))
|
121 |
|
122 |
|
123 | ## 0.8.0 (2014-08-12)
|
124 |
|
125 |
|
126 | #### Features
|
127 |
|
128 |
|
129 | * **espower:**
|
130 | * [built and modularized by browserify](https://github.com/power-assert-js/espower/pull/9)
|
131 | * [use escallmatch module to describe instrumentation target patterns](https://github.com/power-assert-js/espower/pull/10)
|
132 | * support chained callee like `browser.assert.element(selector)` ([ea0a3ce9](https://github.com/power-assert-js/espower/commit/ea0a3ce96f56034ab6735365184e1e397f6561c0))
|
133 |
|
134 |
|
135 | #### Breaking Changes
|
136 |
|
137 | * option `powerAssertVariableName` is now deprecated and ignored. Please use `patterns` option instead ([2f023f91](https://github.com/power-assert-js/espower/commit/2f023f91f3bbe8c6d9038e7237541112f2eaf143))
|
138 | * option `targetMethods` is now deprecated and ignored. Please use `patterns` option instead ([e75e5d35](https://github.com/power-assert-js/espower/commit/e75e5d35c33a7c128f14db224c5387520665b55e))
|
139 |
|
140 | If you already customize instrumentation pattern using `powerAssertVariableName` and `targetMethods`, you need to migarte. To migrate, change your code from the following:
|
141 |
|
142 | ```javascript
|
143 | var options = {
|
144 | powerAssertVariableName: 'yourAssert',
|
145 | targetMethods: {
|
146 | oneArg: [
|
147 | 'okay'
|
148 | ],
|
149 | twoArgs: [
|
150 | 'equal',
|
151 | 'customEqual'
|
152 | ]
|
153 | }
|
154 | };
|
155 | var modifiedAst = espower(jsAst, options);
|
156 | ```
|
157 |
|
158 | To:
|
159 |
|
160 | ```javascript
|
161 | var options = {
|
162 | patterns: [
|
163 | 'yourAssert(value, [message])',
|
164 | 'yourAssert.okay(value, [message])',
|
165 | 'yourAssert.equal(actual, expected, [message])',
|
166 | 'yourAssert.customEqual(actual, expected, [message])'
|
167 | ]
|
168 | };
|
169 | var modifiedAst = espower(jsAst, options);
|
170 | ```
|