fs-extra v5.0.0 Release Notes

Release Date: 2017-12-11 // about 4 years ago
  • ๐Ÿš€ Significant refactor of copy() & copySync(), 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()'s filter option can now be a function that returns a Promise. #518
    • ๐Ÿ‘ copy() & copySync() now use fs.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 the filter function aborts the copy() operation. #517
    • ๐Ÿ›  Fix writeStream not being closed if there was an error in copy(). #516