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 deprecatedfs.exists
.pathExists
has a normal error-first callback signature. Also addedpathExistsSync
, an alias tofs.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 forreadJsonSync()
; now does not throw filesystem errors whenthrows
isfalse
.
- BREAKING: Changed behavior of
- 💥 BREAKING:
writeJson()
,writeJsonSync()
,outputJson()
, &outputJsonSync()
now output minified JSON by default for consistency withJSON.stringify()
; set thespaces
option to2
to override this new behavior. #402 - 👉 Use
Buffer.allocUnsafe()
instead ofnew Buffer()
in environments that support it. #394
🛠 Fixed
- 🏁
removeSync()
silently failed on Windows in some cases. Now throws anEBUSY
error. #408