fs-extra v5.0.0 Release Notes
Release Date: 2017-12-11 // over 6 years ago-
๐ Significant refactor of
copy()
©Sync()
, including breaking changes. No changes to other functions in this release.Huge thanks to @manidlou for doing most of the work on this release.
- ๐ The
filter
option can no longer be a RegExp (must be a function). This was deprecated since fs-extra v1.0.0. #512 copy()
'sfilter
option can now be a function that returns a Promise. #518- ๐
copy()
©Sync()
now usefs.copyFile()
/fs.copyFileSync()
in environments that support it (currently Node 8.5.0+). Older Node versions still get the old implementation. #505 - Don't allow copying a directory into itself. #83
- ๐ Handle copying between identical files. #198
- Error out when copying an empty folder to a path that already exists. #464
- Don't create
dest
's parent if thefilter
function aborts thecopy()
operation. #517 - ๐ Fix
writeStream
not being closed if there was an error incopy()
. #516
- ๐ The