您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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