- Drop support for nodes before v20
- Add
--version
to CLI
- No default export, only named exports
- Provide Dirent or Stats object as second argument to filter
- Return boolean indicating whether the path was fully removed
- Add filter option
- bin: add --verbose, -v to print files as they are deleted
- bin: add --no-verbose, -V to not print files as they are deleted
- bin: add -i --interactive to be prompted on each deletion
- bin: add -I --no-interactive to not be prompted on each deletion
- 4.3.1 Fixed inappropriately following symbolic links to directories
- Brought back
glob
support, using the new and improved glob v9
- Improved hybrid module with no need to look at the
.default
dangly bit..default
preserved as a reference torimraf
for compatibility with anyone who came to rely on it in v4.0. - Accept and ignore
-rf
and-fr
arguments to the bin.
- Remove
glob
dependency entirely. This library now only accepts actual file and folder names to delete. - Accept array of paths or single path.
- Windows performance and reliability improved.
- All strategies separated into explicitly exported methods.
- Drop support for Node.js below version 14
- rewrite in TypeScript
- ship CJS/ESM hybrid module
- Error on unknown arguments to the bin. (Previously they were silently ignored.)
- Add
--preserve-root
option to executable (default true) - Drop support for Node.js below version 6
- Make
glob
an optional dependency
- Retry on EBUSY on non-windows platforms as well
- Make
rimraf.sync
10000% more reliable on Windows
- Handle Windows EPERM when lstat-ing read-only dirs
- Add glob option to pass options to glob
- Add EPERM to delay/retry loop
- Add
disableGlob
option
- Make maxBusyTries and emfileWait configurable
- Handle weird SunOS unlink-dir issue
- Glob the CLI arg for better Windows support
- Handle ENOENT properly on Windows
- Allow overriding fs methods
- Treat EPERM as indicative of non-empty dir
- Remove optional graceful-fs dep
- Consistently return null error instead of undefined on success
- win32: Treat ENOTEMPTY the same as EBUSY
- Add
rimraf
binary
- Fix SunOS error code for a non-empty directory
- Try rmdir before readdir
- Treat EISDIR like EPERM
- Remove chmod
- Remove lstat polyfill, node 0.7 is not supported
- Fix myGid call to check process.getgid
- Simplify the EBUSY backoff logic.
- Use fs.lstat in node >= 0.7.9
- Remove gently option
- remove fiber implementation
- Delete files that are marked read-only
- Allow ENOENT in sync method
- Throw when no callback is provided
- Make opts.gently an absolute path
- use 'stat' if 'lstat' is not available
- Consistent error naming, and rethrow non-ENOENT stat errors
- add fiber implementation