UNPKG

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