Skip to content

Releases: duniul/clean-modules

v4.0.0

Choose a tag to compare

@duniul duniul released this 23 May 15:24

Major Changes

  • BREAKING analyze() now returns { files, failures } instead of an array of per-file results. bc65618 @duniul
  • BREAKING Package is now ESM only. CLI usage works the same as before, but breaks CJS usage of the programmatic API. ac6de03 @duniul
  • BREAKING Minimum supported Node version is now v22. 6fd8cde @duniul

Minor Changes

  • Update picomatch dependency to v4. 00c3cd6 @duniul
  • Surface non-fatal filesystem failures instead of swallowing them silently. bc65618 @duniul
  • Add new --fail-on-error flag which exits with a non-zero status code when any failure is recorded. Exit code stays 0 by default, matching prior behavior. bc65618 @duniul

Patch Changes

v3.1.1

Choose a tag to compare

@github-actions github-actions released this 01 Oct 14:45

Patch Changes

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 14:22

Minor Changes

  • Add default patterns for GitHub Pages, JetBrains, airtap, husky, bmp, release-it, Windows, and GNU COPYING. #35 89fcb28 @sdavids

Patch Changes

  • Include up to 2 fraction digits when reporting reduced size. 89dd555 @duniul

v3.0.5

Choose a tag to compare

@github-actions github-actions released this 04 Mar 10:07

Patch Changes

v3.0.4

Choose a tag to compare

@github-actions github-actions released this 10 Aug 12:15

Patch Changes

v3.0.3

Choose a tag to compare

@github-actions github-actions released this 07 Aug 08:55

Patch Changes

  • Fix import.meta.url not being transpiled to an equivalent value for CJS builds. #22 efa65b5 @duniul

v3.0.2

Choose a tag to compare

@github-actions github-actions released this 09 Jul 17:16

(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

v3.0.1

Choose a tag to compare

@github-actions github-actions released this 09 Jul 17:10

Unpublished, see v3.0.2 instead.

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 09 Jul 16:48

Unpublished, see v3.0.2 instead.

v2.0.6

Choose a tag to compare

@duniul duniul released this 11 Aug 17:14

2.0.6

Patch Changes