fs-extra v3.0.0 Release Notes

Release Date: 2017-04-27 // almost 7 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