You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
7.8 KiB

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