Trash Versions Save

Move files and directories to the trash

v5.2.0

5 years ago
  • Fix glob for nested directories (#80) 78e705c

https://github.com/sindresorhus/trash/compare/v5.1.0...v5.2.0

v5.1.0

5 years ago
  • Refactor TypeScript definition to CommonJS compatible export (#82) bdfbd07

https://github.com/sindresorhus/trash/compare/v5.0.0...v5.1.0

v5.0.0

5 years ago

Breaking:

  • Drop support for Iterable as input, use string | string[] aa29749
  • Require Node.js 8 6cd7609

Enhancements:

  • Add TypeScript definition (#81) c029c43

https://github.com/sindresorhus/trash/compare/v4.3.0...v5.0.0

v3.0.0

8 years ago

The command-line tool was extracted into a separate module called trash-cli. (https://github.com/sindresorhus/trash/commit/bb137049c992deab5eef388e08f40c93787dd3a1) (Note that it now requires Node.js 4. Make sure to upgrade your Node.js install)

Run this to migrate to the new CLI tool package:

$ npm uninstall --global trash && npm install --global trash-cli

You still use it as $ trash.

v2.0.0

8 years ago

We decided to change trash to not error on missing files. It was only in the way and made it harder to use trash in scripts. The --force flag was also removed as it's pretty moot now. #29 #26

https://github.com/sindresorhus/trash/compare/v1.4.1...v2.0.0

v1.4.0

9 years ago

Removed the sound effect when trashing on OS X and made the trashing much faster by rewriting it as a native binary. Fixes #18.

https://github.com/sindresorhus/trash/compare/v1.3.1...v1.4.0

v1.2.0

9 years ago

Got rid of the Python requirement for Linux as @kevva implemented xdg-trash which is now used.