Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: isaacs/rimraf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.0
Choose a base ref
...
head repository: isaacs/rimraf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.1
Choose a head ref
  • 4 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 16, 2023

  1. Copy the full SHA
    21e15b0 View commit details

Commits on May 17, 2023

  1. update glob, remove skipLibCheck: true

    This requires the minipass with the fixed EventEmitter types, and also
    the tsconfig setting that let the error slip past in the first place.
    
    Re: isaacs/node-glob#529
    Re: isaacs/minipass#49
    isaacs committed May 17, 2023
    Copy the full SHA
    13f0172 View commit details
  2. add some keywords to package.json

    Fix: #273
    isaacs committed May 17, 2023
    Copy the full SHA
    5c33c70 View commit details
  3. 5.0.1

    isaacs committed May 17, 2023
    Copy the full SHA
    bfda548 View commit details
Showing with 245 additions and 47 deletions.
  1. +12 −3 README.md
  2. +220 −40 package-lock.json
  3. +13 −3 package.json
  4. +0 −1 tsconfig-base.json
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,11 +2,18 @@ The [UNIX command](<http://en.wikipedia.org/wiki/Rm_(Unix)>) `rm -rf` for node.

Install with `npm install rimraf`.

## Major Changes from v3 to v4
## Major Changes

### v4 to v5

- There is no default export anymore. Import the functions directly
using, e.g., `import { rimrafSync } from 'rimraf`.

### v3 to v4

- The function returns a `Promise` instead of taking a callback.
- Globbing requires the `--glob` option to be set. (Removed in
4.0 and 4.1, opt-in support added in 4.2.)
- Globbing requires the `--glob` CLI option or `glob` option property
to be set. (Removed in 4.0 and 4.1, opt-in support added in 4.2.)
- Functions take arrays of paths, as well as a single path.
- Native implementation used by default when available, except on
Windows, where this implementation is faster and more reliable.
@@ -73,6 +80,8 @@ Options:
`fs.rm` because that implementation does not support abort
signals.

- `glob` Boolean flag to treat path as glob pattern, or an object
specifying [`glob` options](https://github.com/isaacs/node-glob).
- `filter` Method that returns a boolean indicating whether that
path should be deleted. With async rimraf methods, this may
return a Promise that resolves to a boolean. (Since Promises
Loading