1 | ## 0.9.0 (2014-09-02)
|
2 |
|
3 |
|
4 | #### Features
|
5 |
|
6 | * **power-assert-formatter:**
|
7 | * move built-in renderers to ./built-in/ ([acf85109](https://github.com/twada/power-assert-formatter/commit/acf85109bcb579109b80a36a8a6439c4e028066d))
|
8 | * customize rendering by using custom renderer constructor in `renderers` option ([265d3539](https://github.com/twada/power-assert-formatter/commit/265d353997f7321e9e24c5252c7aa0f4c696624a))
|
9 | * use EventEmitter to make renderers customizable ([7c190e11](https://github.com/twada/power-assert-formatter/commit/7c190e1170de8c96129a2ccd3e67fd9f14623732))
|
10 |
|
11 |
|
12 | #### Breaking Changes
|
13 |
|
14 | * built-in renderers are listed as relative path
|
15 |
|
16 | If you are customizing renderers by `options.renderers`, you may have to migrate.
|
17 |
|
18 | To migrate, change your code from the following:
|
19 |
|
20 | ```
|
21 | [
|
22 | 'file',
|
23 | 'assertion',
|
24 | 'diagram',
|
25 | 'binary-expression'
|
26 | ]
|
27 | ```
|
28 |
|
29 | To:
|
30 |
|
31 | ```
|
32 | [
|
33 | './built-in/file',
|
34 | './built-in/assertion',
|
35 | './built-in/diagram',
|
36 | './built-in/binary-expression'
|
37 | ]
|
38 | ```
|
39 |
|
40 | ([265d3539](https://github.com/twada/power-assert-formatter/commit/265d353997f7321e9e24c5252c7aa0f4c696624a)), ([acf85109](https://github.com/twada/power-assert-formatter/commit/acf85109bcb579109b80a36a8a6439c4e028066d))
|
41 |
|
42 |
|
43 | ## 0.8.0 (2014-08-12)
|
44 |
|
45 |
|
46 | #### Features
|
47 |
|
48 |
|
49 | * **power-assert-formatter:**
|
50 | * [built and modularized by browserify](https://github.com/twada/power-assert-formatter/pull/8)
|
51 | * [use spun-off stringifier module](https://github.com/twada/power-assert-formatter/pull/9)
|
52 |
|
53 |
|
54 | #### Breaking Changes
|
55 |
|
56 | * option `stringifyDepth` does not supported any more. use `maxDepth` option instead.
|
57 |
|
58 | If you already customize formatter config using `stringifyDepth`, you need to migarte. To migrate, change your code from the following:
|
59 |
|
60 | ```javascript
|
61 | var createFormatter = require('power-assert-formatter');
|
62 | var options = {
|
63 | stringifyDepth: 2
|
64 | };
|
65 | var formatter = createFormatter(options);
|
66 | ```
|
67 |
|
68 | To:
|
69 |
|
70 | ```javascript
|
71 | var createFormatter = require('power-assert-formatter');
|
72 | var options = {
|
73 | maxDepth: 1
|
74 | };
|
75 | var formatter = createFormatter(options);
|
76 | ```
|
77 |
|
78 | Beware that `stringifyDepth - 1 === maxDepth` !
|