Skip to content

v3.0.2

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Jul 17:16
· 35 commits to main since this release

(includes 3.0.0 and 3.0.1, which were unpublished)

Major Changes

  • BREAKING Replace -i,--include and -e,--exclude with globs passed as positional arguments. This makes them consistent with the glob file patterns. de47cf2 @duniul

    To migrate, move included and excluded globs to the end of the command, and prefix any exclusion globs with !.

    # before
    clean-modules --include "foo" "bar" --exclude "baz" "qux"
    
    # after
    clean-modules "foo" "bar" "!baz" "!qux"
  • BREAKING Replace old programmatic API with one that better correspond to the CLI commands. See the README for information on how to import them. 6c8dfff @duniul

  • BREAKING Drop support for Node 12, require Node >= 14. 0ebf930 @duniul

Patch Changes

  • Replace yargs with clipanion for CLI parsing. de47cf2 @duniul
  • Don't remove tsconfig.json files by default, as they can be shared. 17603eb @duniul
  • Update pretty-bytes, pretty-ms and supports-color. e198b46 @duniul
  • Remove arg as a runtime dependency. 95b0dcf @duniul
  • Try to avoid test util files when cleaning up test files. cf7ede5 @duniul
  • Fix issue where --glob-file could be passed as an array, causing a crash. de47cf2 @duniul