Skip to content

Releases: lukeed/premove

v4.0.0

10 Dec 05:27
Compare
Choose a tag to compare

Breaking

  • Always return boolean and Promise<boolean> outputs (#4): 9ce980f
    Previously, if a path did not exist, the async-version (premove) would return false synchronously.
    Now, the premove utility will always return a Promise<boolean> (or boolean for premove/sync) that reflects the path's original existence.

Chores


Full Changelog: v3.0.1...v4.0.0

v3.0.1

19 Aug 05:36
Compare
Choose a tag to compare

Patches

  • (types) Ensure premove/sync entry has resolvable definitions: 70a1474, 6c7f558

v3.0.0

17 Aug 18:47
Compare
Choose a tag to compare

Breaking

  • Migrated from default to named export: 8904a14

    ESM/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-platform rm -rf alternative

    # remove "foo" and "bar" via `npx`
    $ npx premove foo bar
    
    # install globally, use whenever
    $ npm install premove -g
    $ premove foo bar

Chores