fs-extra v3.0.0 Release Notes

Release Date: 2017-04-27 // over 4 years ago
  • โž• Added

    • ๐Ÿ’ฅ BREAKING: Added Promise support. All asynchronous native fs methods and fs-extra methods now return a promise if the callback is not passed. #403
    • ๐Ÿ—„ pathExists(), a replacement for the deprecated fs.exists. pathExists has a normal error-first callback signature. Also added pathExistsSync, an alias to fs.existsSync, for completeness. #406

    โœ‚ Removed

    • ๐Ÿ’ฅ BREAKING: Removed support for setting the default spaces for writeJson(), writeJsonSync(), outputJson(), & outputJsonSync(). This was undocumented. #402

    ๐Ÿ”„ Changed

    • โฌ†๏ธ Upgraded jsonfile dependency to v3.0.0:
      • BREAKING: Changed behavior of throws option for readJsonSync(); now does not throw filesystem errors when throws is false.
    • ๐Ÿ’ฅ BREAKING: writeJson(), writeJsonSync(), outputJson(), & outputJsonSync() now output minified JSON by default for consistency with JSON.stringify(); set the spaces option to 2 to override this new behavior. #402
    • ๐Ÿ‘‰ Use Buffer.allocUnsafe() instead of new Buffer() in environments that support it. #394

    ๐Ÿ›  Fixed

    • ๐Ÿ removeSync() silently failed on Windows in some cases. Now throws an EBUSY error. #408