fs-extra, a popular Node.js package extending the core fs module, saw a notable update between versions 0.14.0 and 0.15.0. Both versions offer convenient file system operations like recursive directory creation (mkdir -p), file copying (cp -r), and forceful removal (rm -rf), simplifying common tasks.
However, the key difference lies in the dependencies. Version 0.15.0 replaces the ncp dependency found in 0.14.0 with graceful-fs. graceful-fs improves file system access reliability, particularly in scenarios involving high file descriptor usage or network file systems. This change suggests a focus on robustness and stability in version 0.15.0, potentially addressing issues related to file access errors that some users may have encountered with ncp in earlier versions. Developers should consider this when choosing between the two versions, especially if their application frequently interacts with files or operates in environments with limited resources.
Both versions share common development dependencies, including mocha for testing, testutil for utility functions in testing, secure-random for generating random data, and read-dir-files for reading directory contents. They also depend on rimraf for cross-platform file deletion and jsonfile for simplifying JSON file reading and writing. Therefore, the API and core functionality of fs-extra remains consistent across these versions, with the improvement coming from the way the file system is accessed under the hood.
The are not vulnerabilities for the version 0.15.0 of the package fs-extra