Releases: lukeed/premove
Releases · lukeed/premove
v4.0.0
Breaking
- Always return
booleanandPromise<boolean>outputs (#4): 9ce980f
Previously, if a path did not exist, the async-version (premove) would returnfalsesynchronously.
Now, thepremoveutility will always return aPromise<boolean>(orbooleanforpremove/sync) that reflects the path's original existence.
Chores
- Add benchmarks (#3): 7602c12
- Update module size: 3fd3009
- Bump dev-dependency versions: e3c5e65, b8ae1b6
Full Changelog: v3.0.1...v4.0.0
v3.0.1
v3.0.0
Breaking
-
Migrated from
defaultto named export: 8904a14ESM/TypeScript
- import premove from 'premove'; + import { premove } from 'premove';
CommonJS
- const premove = require('premove'); + const { premove } = require('premove');
Features
-
Added CLI binary: e91f3b4, cd3c404, c076941
Cross-platformrm -rfalternative# remove "foo" and "bar" via `npx` $ npx premove foo bar # install globally, use whenever $ npm install premove -g $ premove foo bar