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: v4.4.1
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.0
Choose a head ref
  • 3 commits
  • 12 files changed
  • 1 contributor

Commits on Apr 9, 2023

  1. Copy the full SHA
    c7a3fd4 View commit details
  2. update to typescript 5

    isaacs committed Apr 9, 2023
    Copy the full SHA
    5d2b876 View commit details
  3. 5.0.0

    isaacs committed Apr 9, 2023
    Copy the full SHA
    98ee1e9 View commit details
Showing with 256 additions and 256 deletions.
  1. +4 −0 CHANGELOG.md
  2. +2 −6 README.md
  3. +1 −1 benchmark/create-fixture.js
  4. +1 −1 libtap-settings.js
  5. +209 −207 package-lock.json
  6. +6 −6 package.json
  7. +1 −1 src/bin.ts
  8. +0 −3 src/index-cjs.ts
  9. +17 −22 src/index.ts
  10. +12 −6 test/bin.js
  11. +2 −2 test/index.js
  12. +1 −1 tsconfig-esm.json
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 5.0

- No default export, only named exports

# 4.4

- Provide Dirent or Stats object as second argument to filter
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -22,12 +22,8 @@ Install with `npm install rimraf`.
Hybrid module, load either with `import` or `require()`.

```js
// default export is the main rimraf function, or use named imports
import rimraf from 'rimraf'
// or
const rimraf = require('rimraf')

// other strategies exported as well
// 'rimraf' export is the one you probably want, but other
// strategies exported as well.
import { rimraf, rimrafSync, native, nativeSync } from 'rimraf'
// or
const { rimraf, rimrafSync, native, nativeSync } = require('rimraf')
2 changes: 1 addition & 1 deletion benchmark/create-fixture.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { writeFile: writeFile_ } = require('fs')
const writeFile = async (path, data) => new Promise((res, rej) =>
writeFile_(path, data, er => er ? rej(er) : res()))
const mkdirp = require('mkdirp')
const { mkdirp } = require('mkdirp')
const { resolve } = require('path')

const create = async (path, start, end, maxDepth, depth = 0) => {
2 changes: 1 addition & 1 deletion libtap-settings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// use this module for tap's recursive directory removal, so that
// the windows tests don't fail with EBUSY.
const rimraf = require('./')
const { rimraf } = require('./')
module.exports = {
rmdirRecursiveSync: path => rimraf.sync(path),
rmdirRecursive(path, cb) {
Loading