Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency fs-extra to v5 #59

Merged
merged 4 commits into from Apr 23, 2018
Merged

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 24, 2018

This Pull Request updates dependency fs-extra from v0.30.0 to v5.0.0

Release Notes

v1.0.0

After five years of development, we finally have reach the 1.0.0 milestone! Big thanks goes
to Ryan Zim for leading the charge on this release!

Added
  • walkSync()
Changed
  • BREAKING: dropped Node v0.10 support.
  • disabled rimaf globbing, wasn't used. [#280]
  • deprecate copy()/copySync() option filter if it's a RegExp. filter should now be a function.
  • inline rimraf. This is temporary and was done because rimraf depended upon the beefy glob which fs-extra does not use. [#300]
Fixed

v2.0.0

Removed
  • BREAKING: Removed support for Node v0.12. The Node foundation stopped officially supporting it
    on Jan 1st, 2017.
  • BREAKING: Remove walk() and walkSync(). walkSync() was only part of fs-extra for a little
    over two months. Use klaw instead of walk(), in fact, walk() was just
    an alias to klaw. For walkSync() use klaw-sync. See: [#338], [#339]
Changed
  • BREAKING: Renamed clobber to overwrite. This affects copy(), copySync(), and move(). [#330], [#333]
  • Moved docs, to docs/. [#340]
Fixed
  • Apply filters to directories in copySync() like in copy(). [#324]
  • A specific condition when disk is under heavy use, copy() can fail. [#326]

v2.1.0

Thanks to Mani Maghsoudlou (@manidlou) & Jan Peer Stöcklmair (@JPeer264) for their extraordinary help with this release!

Added
  • moveSync() See [#309], #381. (@manidlou)
  • copy() and copySync()'s filter option now gets the destination path passed as the second parameter. #366 (@manidlou)
Changed
  • Use Buffer.alloc() instead of deprecated new Buffer() in copySync(). #380 (@manidlou)
  • Refactored entire codebase to use ES6 features supported by Node.js v4+ #355. (@JPeer264)
  • Refactored docs. (@manidlou)
Fixed
  • move() shouldn't error out when source and dest are the same. #377, #378 (@jdalton)

v2.1.1

Fixed
  • Reverted 5597bd, this broke compatibility with Node.js versions v4+ but less than v4.5.0.
  • Remove Buffer.alloc() usage in moveSync().

v2.1.2

Fixed
  • Weird windows bug that resulted in ensureDir()'s callback being called twice in some cases. This bug may have also affected remove(). See #392, #393

v3.0.0

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

v3.0.1

  • Fix bug in move() & moveSync() when source and destination are the same, and source does not exist. #415

v4.0.0

Changed
  • BREAKING: The promisified versions of fs.read() & fs.write() now return objects. See the docs for details. #436, #449
  • fs.move() now errors out when destination is a subdirectory of source. #458
  • Applied upstream fixes from rimraf to fs.remove() & fs.removeSync(). #459
Fixed
  • Got fs.outputJSONSync() working again; it was broken due to refactoring. #428

Also clarified the docs in a few places.


v4.0.1

Fixed
  • Previously, ensureFile() & ensureFileSync() would do nothing if the path was a directory. Now, they error out for consistency with ensureDir(). #465, #466, #470

v4.0.2

  • Added EOL option to writeJson* & outputJson* (via upgrade to jsonfile v4)
  • Added promise support to fs.copyFile() in Node 8.5+
  • Added .js extension to main field in package.json for better tooling compatibility. #485

v4.0.3

  • Fix wrong chmod values in fs.remove() #501
  • Fix TypeError on systems that don't have some fs operations like lchown #520

v5.0.0

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

Commits

v3.0.0

  • ed5dc63 Merge pull request #394 from jprichardson/buffer
  • afab94b Don't override move & moveSync test's timeouts
  • b549b04 Merge pull request #398 from jprichardson/windows-timeout
  • 77edbc9 Fix changelog markdown issues
  • 9f5a130 Merge pull request #405 from jprichardson/fix-changelog-markdown
  • c179797 Add else block to throw error from catch in removeSync()
  • acd8916 Merge pull request #408 from jprichardson/rmSync-patch
  • 03e1b47 BREAKING: Don't use spaces for JSON writing, remove global setting
  • dba0cbb Universalify native fs methods
  • 03b2080 Universalify fs-extra methods
  • d41ed1e Update README.md with promise support info
  • 1613f20 Update docs for promise support
  • 3f7988d Add pathExists() and pathExistsSync()
  • b209cab Update jsonfile dep
  • df125be Use pathExists() internally
  • 891f483 Upgrade standard
  • 04cfbd0 Merge pull request #409 from jprichardson/pathExists
  • 096a8e1 3.0.0

v3.0.1

  • c2ab3c5 Add standard-markdown to lint js code inside docs files
  • f26a946 Merge pull request #411 from jprichardson/markdown-linter
  • 5bfcb64 move() should error when src & dest are the same and src doesn't exist
  • 62d40b3 Merge pull request #415 from jprichardson/move-error
  • 44eb2c3 3.0.1

v4.0.0

  • dd85f38 Fix typo that broke outputJSONSync()
  • 40a2e71 Merge pull request #428 from jprichardson/outputJSONSync
  • 6eabb00 Fixed link to type definitions
  • 15db64f Merge pull request #429 from bennyn/patch-1
  • e4c3618 BREAKING: fs.read() & fs.write() should return objects
  • 5a8d568 Add docs for using promises with fs.read() & fs.write()
  • 5f888ba Skip copy & copySync timestamp tests on 32-bit computers
  • 85f531e Merge pull request #450 from jprichardson/windows-tests
  • 16dc81e Fix the issue of moving into itself
  • f8f441a Refactor isSrcSubdir() in move
  • d99d8a1 Fix isSrcSubdir() split bug
  • 33fbe78 Apply upstream rimraf fixes
  • 395f6b0 Document writeJson() & outputJson() options
  • ea2e2a4 Merge pull request #460 from jprichardson/docs
  • f015563 Merge pull request #459 from jprichardson/rimraf
  • df6aa07 Merge pull request #458 from jprichardson/prevent-move-into-itself
  • 9b624d2 Upgrade standard-markdown devDep
  • bd0a200 Merge pull request #449 from jprichardson/read-write-obj
  • eb16cda Fix docs lint error
  • 3d25473 4.0.0

v4.0.1

  • 28b7cfe Fix changelog move() notes (#463)
  • 3fc5894 ensureFile & ensureFileSync should error when the path is a directory
  • 463c65d Merge pull request #466 from jprichardson/ensure-file
  • ec85f4e Add links to issues & PRs in CHANGELOG.md
  • 9b5718c 4.0.1

v4.0.2

  • 5435252 Update & Optimize CI configs
  • ab2fae9 Merge pull request #473 from jprichardson/ci
  • f64e76c Added '.js' extension to the <main> attribute in package.json, for compatibility with various loaders or bundlers (webpack, systemjs, browserify,...) or any other independent lib which may use package.json.
  • bcc1986 Merge pull request #485 from lifaon74/master
  • 7a9bb17 Upgrade to jsonfile 4.0.0 for EOL option support
  • ef9ade4 Universalify fs.copyFile when available
  • 1dd5c18 4.0.2

v4.0.3

  • 4f01664 docs: update copy to show differences with cp
  • 41a33c2 Merge pull request #497 from nico29/docs/copy-improvements
  • d416fa7 typo fixed
  • cc6d425 Merge pull request #500 from revelt/patch-1
  • ddb5cb4 Use octal notation for chmod values in rimraf.js
  • 2599b67 Merge pull request #501 from jprichardson/rimraf-backports
  • fe0bfe2 Rewrite copy to use recursive pattern for dirs, add more tests
  • 166f4a7 Merge pull request #502 from jprichardson/rewrite-copy
  • 0bd5279 Add native fs.copyFile to copy()
  • 1abc2a3 Use native fs.copyFileSync in supported envs, add utimesMillisSync function to util/utimes.js
  • d8adc47 Merge pull request #505 from jprichardson/native-copyFile
  • 603b8bb BREAKING: Don't allow copy()/copySync()'s filter option to be a Regex (#512)
  • a6e8cd6 Add issue template (#514)
  • c59e0a6 Fix streams initialization in copyFileFallback (introduced by @unkelpehr)
  • b72ba64 Merge pull request #516 from jprichardson/fix-copy-streams
  • 199ec9f Apply filter before creating parent dir in copy
  • 03fba97 Merge pull request #517 from jprichardson/copy-parent-dir
  • fda912a Rewrite copySync, add more tests, remove fixtures folder
  • 546216c Remove setTimeout when preserveTimestamp is true
  • d6f6da1 Use srcStat param in copyFileFallback
  • 5d1f2d3 Use fs.chmodSync() before preserveTimestamp
  • 9732252 Allow copy's filter to return a Promise
  • 935e189 Merge pull request #518 from jprichardson/async-filter
  • d21da93 Fixes fs-extra on linux
  • 5bdbdc4 Skip copySync preserveTimestamp tests on older node versions
  • f934357 Merge pull request #520 from arcanis/patch-1
  • 86d2ad6 Merge pull request #519 from jprichardson/rewrite-copySync
  • a06f88b Apply the async filter to initial filter checking in copy
  • 42e42be Merge pull request #521 from jprichardson/async-filter
  • bd3376b 4.0.3

v5.0.0


This PR has been generated by Renovate Bot.

@renovate
Copy link
Author

renovate bot commented Apr 22, 2018

PR has been edited

As this PR has been edited, Renovate will stop updating it in order to not cause any conflicts or other problems. If you wish to abandon your edits and have Renovate recreate this PR then you should rename this PR and then close it.

@dotansimha dotansimha merged commit ee204be into master Apr 23, 2018
@dotansimha dotansimha deleted the renovate/fs-extra-5.x branch April 23, 2018 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants