Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency fs-extra from
v0.30.0
tov5.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
rimaf
globbing, wasn't used. [#280]copy()/copySync()
optionfilter
if it's aRegExp
.filter
should now be a function.rimraf
. This is temporary and was done becauserimraf
depended upon the beefyglob
whichfs-extra
does not use. [#300]Fixed
utimesMillis()
[#271]copySync()
failed if user didn't own file. [Update dependency inquirer to v6.5.2 - autoclosed #199], [#301]v2.0.0
Removed
v0.12
. The Node foundation stopped officially supporting iton Jan 1st, 2017.
walk()
andwalkSync()
.walkSync()
was only part offs-extra
for a littleover two months. Use klaw instead of
walk()
, in fact,walk()
was justan alias to klaw. For
walkSync()
use klaw-sync. See: [#338], [#339]Changed
clobber
tooverwrite
. This affectscopy()
,copySync()
, andmove()
. [#330], [#333]docs/
. [#340]Fixed
copySync()
like incopy()
. [#324]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()
andcopySync()
'sfilter
option now gets the destination path passed as the second parameter. #366 (@manidlou)Changed
Buffer.alloc()
instead of deprecatednew Buffer()
incopySync()
. #380 (@manidlou)Fixed
move()
shouldn't error out when source and dest are the same. #377, #378 (@jdalton)v2.1.1
Fixed
5597bd
, this broke compatibility with Node.js versions v4+ but less thanv4.5.0
.Buffer.alloc()
usage inmoveSync()
.v2.1.2
Fixed
ensureDir()
's callback being called twice in some cases. This bug may have also affectedremove()
. See #392, #393v3.0.0
Added
pathExists()
, a replacement for the deprecatedfs.exists
.pathExists
has a normal error-first callback signature. Also addedpathExistsSync
, an alias tofs.existsSync
, for completeness. #406Removed
writeJson()
,writeJsonSync()
,outputJson()
, &outputJsonSync()
. This was undocumented. #402Changed
throws
option forreadJsonSync()
; now does not throw filesystem errors whenthrows
isfalse
.writeJson()
,writeJsonSync()
,outputJson()
, &outputJsonSync()
now output minified JSON by default for consistency withJSON.stringify()
; set thespaces
option to2
to override this new behavior. #402Buffer.allocUnsafe()
instead ofnew Buffer()
in environments that support it. #394Fixed
removeSync()
silently failed on Windows in some cases. Now throws anEBUSY
error. #408v3.0.1
move()
&moveSync()
when source and destination are the same, and source does not exist. #415v4.0.0
Changed
fs.read()
&fs.write()
now return objects. See the docs for details. #436, #449fs.move()
now errors out when destination is a subdirectory of source. #458rimraf
tofs.remove()
&fs.removeSync()
. #459Fixed
fs.outputJSONSync()
working again; it was broken due to refactoring. #428Also clarified the docs in a few places.
v4.0.1
Fixed
ensureFile()
&ensureFileSync()
would do nothing if the path was a directory. Now, they error out for consistency withensureDir()
. #465, #466, #470v4.0.2
EOL
option towriteJson*
&outputJson*
(via upgrade to jsonfile v4)fs.copyFile()
in Node 8.5+.js
extension tomain
field inpackage.json
for better tooling compatibility. #485v4.0.3
chmod
values infs.remove()
#501TypeError
on systems that don't have somefs
operations likelchown
#520v5.0.0
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.
filter
option can no longer be a RegExp (must be a function). This was deprecated since fs-extra v1.0.0. #512copy()
'sfilter
option can now be a function that returns a Promise. #518copy()
©Sync()
now usefs.copyFile()
/fs.copyFileSync()
in environments that support it (currently Node 8.5.0+). Older Node versions still get the old implementation. #505dest
's parent if thefilter
function aborts thecopy()
operation. #517writeStream
not being closed if there was an error incopy()
. #516Commits
v3.0.0
ed5dc63
Merge pull request #394 from jprichardson/bufferafab94b
Don't override move & moveSync test's timeoutsb549b04
Merge pull request #398 from jprichardson/windows-timeout77edbc9
Fix changelog markdown issues9f5a130
Merge pull request #405 from jprichardson/fix-changelog-markdownc179797
Add else block to throw error from catch in removeSync()acd8916
Merge pull request #408 from jprichardson/rmSync-patch03e1b47
BREAKING: Don't use spaces for JSON writing, remove global settingdba0cbb
Universalify native fs methods03b2080
Universalify fs-extra methodsd41ed1e
Update README.md with promise support info1613f20
Update docs for promise support3f7988d
Add pathExists() and pathExistsSync()b209cab
Update jsonfile depdf125be
Use pathExists() internally891f483
Upgrade standard04cfbd0
Merge pull request #409 from jprichardson/pathExists096a8e1
3.0.0v3.0.1
c2ab3c5
Add standard-markdown to lint js code inside docs filesf26a946
Merge pull request #411 from jprichardson/markdown-linter5bfcb64
move() should error when src & dest are the same and src doesn't exist62d40b3
Merge pull request #415 from jprichardson/move-error44eb2c3
3.0.1v4.0.0
dd85f38
Fix typo that broke outputJSONSync()40a2e71
Merge pull request #428 from jprichardson/outputJSONSync6eabb00
Fixed link to type definitions15db64f
Merge pull request #429 from bennyn/patch-1e4c3618
BREAKING: fs.read() & fs.write() should return objects5a8d568
Add docs for using promises with fs.read() & fs.write()5f888ba
Skip copy & copySync timestamp tests on 32-bit computers85f531e
Merge pull request #450 from jprichardson/windows-tests16dc81e
Fix the issue of moving into itselff8f441a
Refactor isSrcSubdir() in moved99d8a1
Fix isSrcSubdir() split bug33fbe78
Apply upstream rimraf fixes395f6b0
Document writeJson() & outputJson() optionsea2e2a4
Merge pull request #460 from jprichardson/docsf015563
Merge pull request #459 from jprichardson/rimrafdf6aa07
Merge pull request #458 from jprichardson/prevent-move-into-itself9b624d2
Upgrade standard-markdown devDepbd0a200
Merge pull request #449 from jprichardson/read-write-objeb16cda
Fix docs lint error3d25473
4.0.0v4.0.1
28b7cfe
Fix changelog move() notes (#463)3fc5894
ensureFile & ensureFileSync should error when the path is a directory463c65d
Merge pull request #466 from jprichardson/ensure-fileec85f4e
Add links to issues & PRs in CHANGELOG.md9b5718c
4.0.1v4.0.2
5435252
Update & Optimize CI configsab2fae9
Merge pull request #473 from jprichardson/cif64e76c
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/master7a9bb17
Upgrade to jsonfile 4.0.0 for EOL option supportef9ade4
Universalify fs.copyFile when available1dd5c18
4.0.2v4.0.3
4f01664
docs: update copy to show differences with cp41a33c2
Merge pull request #497 from nico29/docs/copy-improvementsd416fa7
typo fixedcc6d425
Merge pull request #500 from revelt/patch-1ddb5cb4
Use octal notation for chmod values in rimraf.js2599b67
Merge pull request #501 from jprichardson/rimraf-backportsfe0bfe2
Rewrite copy to use recursive pattern for dirs, add more tests166f4a7
Merge pull request #502 from jprichardson/rewrite-copy0bd5279
Add native fs.copyFile to copy()1abc2a3
Use native fs.copyFileSync in supported envs, add utimesMillisSync function to util/utimes.jsd8adc47
Merge pull request #505 from jprichardson/native-copyFile603b8bb
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-streams199ec9f
Apply filter before creating parent dir in copy03fba97
Merge pull request #517 from jprichardson/copy-parent-dirfda912a
Rewrite copySync, add more tests, remove fixtures folder546216c
Remove setTimeout when preserveTimestamp is trued6f6da1
Use srcStat param in copyFileFallback5d1f2d3
Use fs.chmodSync() before preserveTimestamp9732252
Allow copy's filter to return a Promise935e189
Merge pull request #518 from jprichardson/async-filterd21da93
Fixes fs-extra on linux5bdbdc4
Skip copySync preserveTimestamp tests on older node versionsf934357
Merge pull request #520 from arcanis/patch-186d2ad6
Merge pull request #519 from jprichardson/rewrite-copySynca06f88b
Apply the async filter to initial filter checking in copy42e42be
Merge pull request #521 from jprichardson/async-filterbd3376b
4.0.3v5.0.0
1212680
Merge branch 'develop'80494ee
5.0.0This PR has been generated by Renovate Bot.