208 Commits

Author SHA1 Message Date
Ryan Zimmerman
e2615e501e
Fix git URL in package.json (#1062) 2025-12-18 15:20:58 -05:00
Ryan Zimmerman
1de81e98a8
11.3.3 2025-12-18 12:24:36 -05:00
Ryan Zimmerman
403e8aaf19
11.3.2 2025-09-15 14:05:10 -04:00
Ryan Zimmerman
5e62bb79e6
11.3.1 2025-08-05 11:20:46 -04:00
Ryan Zimmerman
176ad6a6db
11.3.0 2025-01-15 13:04:59 -05:00
Ryan Zimmerman
5d4bf0b1b9
11.2.0 2023-11-27 19:45:50 -05:00
Ryan Zimmerman
cc7b3b22a9
11.1.1 2023-03-20 10:53:11 -04:00
Ryan Zimmerman
0e76a72154
11.1.0 2022-11-29 18:38:59 -05:00
Manoah Tervoort
ab86a8aabc
Re-add package.json main field for TypeScript support (#981)
Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
2022-11-29 18:33:16 -05:00
Ryan Zimmerman
4daff17445
11.0.0 2022-11-28 14:10:53 -05:00
Ryan Zimmerman
fd50986b4c
BREAKING: ESM support (#974)
* Remove process.cwd() trick from test files

* BREAKING: Switch from main to exports

* Add fs-extra/esm ESM named import module, with just fs-extra methods

Fixes #746
2022-11-28 13:50:33 -05:00
Ryan Zimmerman
1d1622be96
Upgrade devDeps (#975)
* Upgrade standard

* Upgrade mocha
2022-10-31 15:04:54 -04:00
Ryan Zimmerman
5623ba3d5b
BREAKING: Drop Node v12 support; require v14.14+ (#969)
Resolves #968
2022-10-31 14:19:52 -04:00
Ryan Zimmerman
0220eac966 10.1.0 2022-04-16 14:46:01 -04:00
Ryan Zimmerman
69eb896462 10.0.1 2022-02-22 10:19:39 -05:00
Jacob Ebey
9568a6936f
Add "sideEffects": false to package.json (#941)
Add `"sideEffects": false` to package.json to allow frameworks that mix client and server code in the same files to tree-shake out fs-extra from client bundles.
2022-02-21 17:41:33 -05:00
Ryan Zimmerman
a84ef6dd89
Upgrade standard linter (#923) 2021-09-29 12:55:51 -04:00
Ryan Zimmerman
cbf2a49325
Remove old broken CI tooling; run nyc as part of normal tests (#924)
* Remove old broken CI tooling; now that we've switched to GH Actions

Refs https://github.com/jprichardson/node-fs-extra/issues/874

* Run nyc as part of normal tests
2021-09-22 20:37:47 -04:00
Ryan Zimmerman
fb6c0ca16b 10.0.0 2021-05-03 17:59:43 -04:00
Ryan Zimmerman
e6f8cb4be6
Move at-least-node to devDependencies (#896)
After #894 & #895
2021-05-01 11:03:06 -04:00
Ryan Zimmerman
d8c93b8978
BREAKING: Drop Node 10 support (#893)
* BREAKING: Drop Node 10 support

* Don't test Node 16 on AppVeyor, because it's not supported

* package.json engines
2021-04-30 16:19:25 -04:00
Ryan Zimmerman
1625838cdf 9.1.0 2021-01-19 11:56:33 -05:00
Ryan Zimmerman
6bffcd8188
Upgrade universalify (#825)
No breaking changes for us, just performance improvements
2020-07-29 14:09:17 -04:00
Ryan Zimmerman
7b12b058e2 9.0.1 2020-06-03 19:59:30 -04:00
Mani Maghsoudlou
b0eb751a75
Improve docs (#795)
* improve docs

* Update docs/ensureSymlink-sync.md

Co-authored-by: Ryan Zimmerman <17342435+RyanZim@users.noreply.github.com>

* Update docs/ensureSymlink.md

Co-authored-by: Ryan Zimmerman <17342435+RyanZim@users.noreply.github.com>

* add Error type to docs

Co-authored-by: Ryan Zimmerman <17342435+RyanZim@users.noreply.github.com>
2020-05-11 16:40:39 -04:00
Ryan Zimmerman
a571007f70 9.0.0 2020-03-19 10:22:04 -04:00
Ryan Zimmerman
a149f822c3
JSON updates (#768)
* Upgrade jsonfile

Fixes #745

* Test from main entry point

* Make outputJson() mutation-proof

Fixes #702

* Update outputJsonSync() to match async implementation
2020-03-11 15:18:23 -04:00
Ryan Zimmerman
92388f2e1d
Upgrade universalify (#767) 2020-03-06 19:45:41 -05:00
Ryan Zimmerman
cdc7745c9f
Use at-least-node instead of homespun version sniffing (#760)
* Use at-least-node instead of homespun version sniffing

* Remove semver devDep; use at-least-node in tests
2020-02-13 17:31:21 -05:00
Ryan Zimmerman
3c3865cad8
BREAKING: Drop old Node support (#751)
* BREAKING: Drop old Node support, require v10+

Update CI configs

* Remove references and test fencing for old Node versions

* Use object spread properties

* Use octal literal notation

* Use optional catch bindings
2020-02-04 17:30:40 -05:00
Ryan Zimmerman
a6c1547899
Switch from istanbul to nyc (#748) 2020-02-01 09:56:27 -05:00
Daniel Cassidy
2b97fe3e50 Add "promise" to keywords on npm (#730)
fs-extra is probably the most popular promise-supporting fs
library on npm, but if you search npmjs.com for "fs promise",
it doesn’t even show up. This change should hopefully fix
that :-).
2019-10-28 10:01:43 -04:00
Tomoaki Abe
d1a01e735e Upgrade 'standard' and run 'standard --fix' (#720)
* Upgrade 'standard' and run 'standard --fix'

* Fix with double quotes

If single quotes are included, enclose them in double quotes.
2019-09-06 11:23:34 -04:00
Tomoaki Abe
ca58cbc09f Upgrade 'standard' (#709)
I have fixed the following error.

```
  node-fs-extra/lib/ensure/symlink-paths.js:37:9: Unnecessarily quoted property 'toCwd' found.
  node-fs-extra/lib/ensure/symlink-paths.js:38:9: Unnecessarily quoted property 'toDst' found.
  node-fs-extra/lib/ensure/symlink-paths.js:48:11: Unnecessarily quoted property 'toCwd' found.
  node-fs-extra/lib/ensure/symlink-paths.js:49:11: Unnecessarily quoted property 'toDst' found.
  node-fs-extra/lib/ensure/symlink-paths.js:58:13: Unnecessarily quoted property 'toCwd' found.
  node-fs-extra/lib/ensure/symlink-paths.js:59:13: Unnecessarily quoted property 'toDst' found.
  node-fs-extra/lib/ensure/symlink-paths.js:73:7: Unnecessarily quoted property 'toCwd' found.
  node-fs-extra/lib/ensure/symlink-paths.js:74:7: Unnecessarily quoted property 'toDst' found.
  node-fs-extra/lib/ensure/symlink-paths.js:82:9: Unnecessarily quoted property 'toCwd' found.
  node-fs-extra/lib/ensure/symlink-paths.js:83:9: Unnecessarily quoted property 'toDst' found.
  node-fs-extra/lib/ensure/symlink-paths.js:89:9: Unnecessarily quoted property 'toCwd' found.
  node-fs-extra/lib/ensure/symlink-paths.js:90:9: Unnecessarily quoted property 'toDst' found.
  node-fs-extra/lib/mkdirs/__tests__/clobber.test.js:22:18: There should be no space after '['.
  node-fs-extra/lib/mkdirs/__tests__/clobber.test.js:22:29: There should be no space before ']'.
  node-fs-extra/lib/mkdirs/__tests__/race.test.js:24:18: There should be no space after '['.
  node-fs-extra/lib/mkdirs/__tests__/race.test.js:24:29: There should be no space before ']'.
```
2019-07-11 10:52:31 -04:00
Ryan Zimmerman
b7df7cce3f 8.1.0 2019-06-28 12:24:41 -04:00
Ryan Zimmerman
40c3d68eb4
Use graceful-fs everywhere (#700)
* Switch back to upgraded graceful-fs for copy & move

Fixes #664
Fixes #684

* Use graceful-fs for emptyDir*()
2019-06-28 12:18:50 -04:00
Ryan Zimmerman
fff04cba36
Use files array in package.json instead of .npmignore (#692)
Whitelists are better than blacklists. Tested to ensure the same files
are bundled with `npm pack`.
2019-05-23 08:50:19 -04:00
Ryan Zimmerman
f3a2eed496
Upgrade to standard v12 (#685) 2019-05-14 13:50:05 -04:00
Mani Maghsoudlou
32a65ffd91 8.0.1 2019-05-13 09:52:24 -07:00
Ryan Zimmerman
a7f303b9b7 8.0.0 2019-05-11 10:33:28 -04:00
Mani Maghsoudlou
0bc36ffd5e v8 release (#667)
* Remove secure-random from dev-deps (#610)

* fix ensureDir() doc

* moveSync: refactor to use renameSync

* copy*(): fix copying bind-mounted directories (#618)

* copy*(): fix copying bind-mounted dirs

* copy*(): fix case-insensitive-paths tests

* copy*(): refactor to check paths more efficiently

* destructure stats object after checking err

* move*(): check paths before moving

* move*(): add case-insensitive paths test

* remove unnecessary done callback from test

* copy*(): add new option checkPathsBeforeCopying

* update copy*() docs to include checkPathsBeforeCopying

* some reformatting

* copy*(): use fs.stat with bigint option

* move*(): refactor to use the internal stat functions

* move*(): add test for prevent moving identical

* disable graceful-fs in copy and move tests

* fix parsing node version

* tiny reformat

* update copy*() docs

* refactor parsing node version

* use semver to parse node version in tests
2019-05-11 10:08:57 -04:00
Ryan Zimmerman
a32c852821 7.0.1 2018-11-07 08:02:52 -05:00
Ryan Zimmerman
639291769e Temporarily disable standard-markdown 2018-11-07 07:53:00 -05:00
Ryan Zimmerman
fb3dda7f6e 7.0.0 2018-07-16 21:16:34 -04:00
Jan Peer Stöcklmair
3eceb915bf Chore: add supported engines (#580) 2018-05-14 14:16:51 -05:00
Ryan Zimmerman
10f3a88b76 6.0.1 2018-05-09 19:03:32 -04:00
Ryan Zimmerman
7d36349abe 6.0.0 2018-05-01 09:14:20 -04:00
Ryan Zimmerman
a631c53666 BREAKING: Drop builds for Node 4, 5, & 7; add OSX builds & Node 9 (#564) 2018-04-09 11:09:55 -05:00
Ryan Zimmerman
1018584133 Upgrade devDeps 2018-04-07 10:33:32 -04:00
RyanZim
80494ee95e 5.0.0 2017-12-11 11:38:36 -05:00