1 | 6.0.1 / 2020-03-07
|
2 | ------------------
|
3 |
|
4 | - Update dependency ([#130](https://github.com/jprichardson/node-jsonfile/pull/130))
|
5 | - Fix code style ([#129](https://github.com/jprichardson/node-jsonfile/pull/129))
|
6 |
|
7 | 6.0.0 / 2020-02-24
|
8 | ------------------
|
9 |
|
10 | - **BREAKING:** Drop support for Node 6 & 8 ([#128](https://github.com/jprichardson/node-jsonfile/pull/128))
|
11 | - **BREAKING:** Do not allow passing `null` as options to `readFile()` or `writeFile()` ([#128](https://github.com/jprichardson/node-jsonfile/pull/128))
|
12 | - Refactor internals ([#128](https://github.com/jprichardson/node-jsonfile/pull/128))
|
13 |
|
14 | 5.0.0 / 2018-09-08
|
15 | ------------------
|
16 |
|
17 | - **BREAKING:** Drop Node 4 support
|
18 | - **BREAKING:** If no callback is passed to an asynchronous method, a promise is now returned ([#109](https://github.com/jprichardson/node-jsonfile/pull/109))
|
19 | - Cleanup docs
|
20 |
|
21 | 4.0.0 / 2017-07-12
|
22 | ------------------
|
23 |
|
24 | - **BREAKING:** Remove global `spaces` option.
|
25 | - **BREAKING:** Drop support for Node 0.10, 0.12, and io.js.
|
26 | - Remove undocumented `passParsingErrors` option.
|
27 | - Added `EOL` override option to `writeFile` when using `spaces`. [#89]
|
28 |
|
29 | 3.0.1 / 2017-07-05
|
30 | ------------------
|
31 |
|
32 | - Fixed bug in `writeFile` when there was a serialization error & no callback was passed. In previous versions, an empty file would be written; now no file is written.
|
33 |
|
34 | 3.0.0 / 2017-04-25
|
35 | ------------------
|
36 |
|
37 | - Changed behavior of `throws` option for `readFileSync`; now does not throw filesystem errors when `throws` is `false`
|
38 |
|
39 | 2.4.0 / 2016-09-15
|
40 | ------------------
|
41 | ### Changed
|
42 | - added optional support for `graceful-fs` [#62]
|
43 |
|
44 | 2.3.1 / 2016-05-13
|
45 | ------------------
|
46 | - fix to support BOM. [#45][#45]
|
47 |
|
48 | 2.3.0 / 2016-04-16
|
49 | ------------------
|
50 | - add `throws` to `readFile()`. See [#39][#39]
|
51 | - add support for any arbitrary `fs` module. Useful with [mock-fs](https://www.npmjs.com/package/mock-fs)
|
52 |
|
53 | 2.2.3 / 2015-10-14
|
54 | ------------------
|
55 | - include file name in parse error. See: https://github.com/jprichardson/node-jsonfile/pull/34
|
56 |
|
57 | 2.2.2 / 2015-09-16
|
58 | ------------------
|
59 | - split out tests into separate files
|
60 | - fixed `throws` when set to `true` in `readFileSync()`. See: https://github.com/jprichardson/node-jsonfile/pull/33
|
61 |
|
62 | 2.2.1 / 2015-06-25
|
63 | ------------------
|
64 | - fixed regression when passing in string as encoding for options in `writeFile()` and `writeFileSync()`. See: https://github.com/jprichardson/node-jsonfile/issues/28
|
65 |
|
66 | 2.2.0 / 2015-06-25
|
67 | ------------------
|
68 | - added `options.spaces` to `writeFile()` and `writeFileSync()`
|
69 |
|
70 | 2.1.2 / 2015-06-22
|
71 | ------------------
|
72 | - fixed if passed `readFileSync(file, 'utf8')`. See: https://github.com/jprichardson/node-jsonfile/issues/25
|
73 |
|
74 | 2.1.1 / 2015-06-19
|
75 | ------------------
|
76 | - fixed regressions if `null` is passed for options. See: https://github.com/jprichardson/node-jsonfile/issues/24
|
77 |
|
78 | 2.1.0 / 2015-06-19
|
79 | ------------------
|
80 | - cleanup: JavaScript Standard Style, rename files, dropped terst for assert
|
81 | - methods now support JSON revivers/replacers
|
82 |
|
83 | 2.0.1 / 2015-05-24
|
84 | ------------------
|
85 | - update license attribute https://github.com/jprichardson/node-jsonfile/pull/21
|
86 |
|
87 | 2.0.0 / 2014-07-28
|
88 | ------------------
|
89 | * added `\n` to end of file on write. [#14](https://github.com/jprichardson/node-jsonfile/pull/14)
|
90 | * added `options.throws` to `readFileSync()`
|
91 | * dropped support for Node v0.8
|
92 |
|
93 | 1.2.0 / 2014-06-29
|
94 | ------------------
|
95 | * removed semicolons
|
96 | * bugfix: passed `options` to `fs.readFile` and `fs.readFileSync`. This technically changes behavior, but
|
97 | changes it according to docs. [#12][#12]
|
98 |
|
99 | 1.1.1 / 2013-11-11
|
100 | ------------------
|
101 | * fixed catching of callback bug (ffissore / #5)
|
102 |
|
103 | 1.1.0 / 2013-10-11
|
104 | ------------------
|
105 | * added `options` param to methods, (seanodell / #4)
|
106 |
|
107 | 1.0.1 / 2013-09-05
|
108 | ------------------
|
109 | * removed `homepage` field from package.json to remove NPM warning
|
110 |
|
111 | 1.0.0 / 2013-06-28
|
112 | ------------------
|
113 | * added `.npmignore`, #1
|
114 | * changed spacing default from `4` to `2` to follow Node conventions
|
115 |
|
116 | 0.0.1 / 2012-09-10
|
117 | ------------------
|
118 | * Initial release.
|
119 |
|
120 | [#89]: https://github.com/jprichardson/node-jsonfile/pull/89
|
121 | [#45]: https://github.com/jprichardson/node-jsonfile/issues/45 "Reading of UTF8-encoded (w/ BOM) files fails"
|
122 | [#44]: https://github.com/jprichardson/node-jsonfile/issues/44 "Extra characters in written file"
|
123 | [#43]: https://github.com/jprichardson/node-jsonfile/issues/43 "Prettyfy json when written to file"
|
124 | [#42]: https://github.com/jprichardson/node-jsonfile/pull/42 "Moved fs.readFileSync within the try/catch"
|
125 | [#41]: https://github.com/jprichardson/node-jsonfile/issues/41 "Linux: Hidden file not working"
|
126 | [#40]: https://github.com/jprichardson/node-jsonfile/issues/40 "autocreate folder doesn't work from Path-value"
|
127 | [#39]: https://github.com/jprichardson/node-jsonfile/pull/39 "Add `throws` option for readFile (async)"
|
128 | [#38]: https://github.com/jprichardson/node-jsonfile/pull/38 "Update README.md writeFile[Sync] signature"
|
129 | [#37]: https://github.com/jprichardson/node-jsonfile/pull/37 "support append file"
|
130 | [#36]: https://github.com/jprichardson/node-jsonfile/pull/36 "Add typescript definition file."
|
131 | [#35]: https://github.com/jprichardson/node-jsonfile/pull/35 "Add typescript definition file."
|
132 | [#34]: https://github.com/jprichardson/node-jsonfile/pull/34 "readFile JSON parse error includes filename"
|
133 | [#33]: https://github.com/jprichardson/node-jsonfile/pull/33 "fix throw->throws typo in readFileSync()"
|
134 | [#32]: https://github.com/jprichardson/node-jsonfile/issues/32 "readFile & readFileSync can possible have strip-comments as an option?"
|
135 | [#31]: https://github.com/jprichardson/node-jsonfile/pull/31 "[Modify] Support string include is unicode escape string"
|
136 | [#30]: https://github.com/jprichardson/node-jsonfile/issues/30 "How to use Jsonfile package in Meteor.js App?"
|
137 | [#29]: https://github.com/jprichardson/node-jsonfile/issues/29 "writefile callback if no error?"
|
138 | [#28]: https://github.com/jprichardson/node-jsonfile/issues/28 "writeFile options argument broken "
|
139 | [#27]: https://github.com/jprichardson/node-jsonfile/pull/27 "Use svg instead of png to get better image quality"
|
140 | [#26]: https://github.com/jprichardson/node-jsonfile/issues/26 "Breaking change to fs-extra"
|
141 | [#25]: https://github.com/jprichardson/node-jsonfile/issues/25 "support string encoding param for read methods"
|
142 | [#24]: https://github.com/jprichardson/node-jsonfile/issues/24 "readFile: Passing in null options with a callback throws an error"
|
143 | [#23]: https://github.com/jprichardson/node-jsonfile/pull/23 "Add appendFile and appendFileSync"
|
144 | [#22]: https://github.com/jprichardson/node-jsonfile/issues/22 "Default value for spaces in readme.md is outdated"
|
145 | [#21]: https://github.com/jprichardson/node-jsonfile/pull/21 "Update license attribute"
|
146 | [#20]: https://github.com/jprichardson/node-jsonfile/issues/20 "Add simple caching functionallity"
|
147 | [#19]: https://github.com/jprichardson/node-jsonfile/pull/19 "Add appendFileSync method"
|
148 | [#18]: https://github.com/jprichardson/node-jsonfile/issues/18 "Add updateFile and updateFileSync methods"
|
149 | [#17]: https://github.com/jprichardson/node-jsonfile/issues/17 "seem read & write sync has sequentially problem"
|
150 | [#16]: https://github.com/jprichardson/node-jsonfile/pull/16 "export spaces defaulted to null"
|
151 | [#15]: https://github.com/jprichardson/node-jsonfile/issues/15 "`jsonfile.spaces` should default to `null`"
|
152 | [#14]: https://github.com/jprichardson/node-jsonfile/pull/14 "Add EOL at EOF"
|
153 | [#13]: https://github.com/jprichardson/node-jsonfile/issues/13 "Add a final newline"
|
154 | [#12]: https://github.com/jprichardson/node-jsonfile/issues/12 "readFile doesn't accept options"
|
155 | [#11]: https://github.com/jprichardson/node-jsonfile/pull/11 "Added try,catch to readFileSync"
|
156 | [#10]: https://github.com/jprichardson/node-jsonfile/issues/10 "No output or error from writeFile"
|
157 | [#9]: https://github.com/jprichardson/node-jsonfile/pull/9 "Change 'js' to 'jf' in example."
|
158 | [#8]: https://github.com/jprichardson/node-jsonfile/pull/8 "Updated forgotten module.exports to me."
|
159 | [#7]: https://github.com/jprichardson/node-jsonfile/pull/7 "Add file name in error message"
|
160 | [#6]: https://github.com/jprichardson/node-jsonfile/pull/6 "Use graceful-fs when possible"
|
161 | [#5]: https://github.com/jprichardson/node-jsonfile/pull/5 "Jsonfile doesn't behave nicely when used inside a test suite."
|
162 | [#4]: https://github.com/jprichardson/node-jsonfile/pull/4 "Added options parameter to writeFile and writeFileSync"
|
163 | [#3]: https://github.com/jprichardson/node-jsonfile/issues/3 "test2"
|
164 | [#2]: https://github.com/jprichardson/node-jsonfile/issues/2 "homepage field must be a string url. Deleted."
|
165 | [#1]: https://github.com/jprichardson/node-jsonfile/pull/1 "adding an `.npmignore` file"
|