Skip to content

v8.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 08 Oct 17:52
· 2 commits to main since this release

Breaking

  • Require Node.js 22 9edb83a
  • Upgrade to del 9 9edb83a
    • Excluded paths now keep their directories. del dist '!dist/keep' keeps dist/keep and deletes the rest of dist. Before, it deleted all of dist.
    • A path reached through a symlink that points outside the current directory is now refused, unless --force is set.

Improvements

  • Check every matched path before deleting anything 9edb83a
    • Before, a path outside the current directory was only refused after other paths were already deleted.
  • Retry a deletion up to 3 times on temporary errors like EBUSY and EPERM, which occur on Windows 9edb83a

Fixes

  • Fix a path being listed twice for patterns that differ only by a trailing slash 9edb83a

v7.0.0...v8.0.0