Releases: duniul/clean-modules
Releases · duniul/clean-modules
Release list
v4.0.0
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
picomatchdependency to v4.00c3cd6@duniul - Surface non-fatal filesystem failures instead of swallowing them silently.
bc65618@duniul - Add new
--fail-on-errorflag which exits with a non-zero status code when any failure is recorded. Exit code stays0by default, matching prior behavior.bc65618@duniul
Patch Changes
- Remove potentially unsafe
doc/anddocs/from default patterns.293e149@duniul - Remove
pretty-bytes,pretty-ms,supports-color, andclipaniondependencies.d428e3461b97e7dfb87bc@duniul - Replace
clipanionwith Node's built-inparseArgsfor CLI args parsing.61b97e7dfb87bc@duniul - Clearly indicate which steps were skipped in
--dry-runoutput.c3bd4b2@duniul - Set
"sideEffects": falsein package.json.f67c2c9@duniul - Fix
repositorydefinition in package.json.47b01ae@duniul - Fix the default hint shown for the
--directoryoption.b44d0ef@duniul - Fix globs not starting with
/being incorrectly prefixed with an extra**.34a3b27@duniul - Ensure
--keep-emptyis respected bycleancommand.695f83e@duniul - Skip confirmation prompt in CI/without TTY, require --yes or -y.
b0a1838@duniul - Avoid parsing default globs twice in
analyze.6f878df@duniul - Avoid redundant
readdircalls when removing empty parent directories.540c372@duniul - Update minor dependency versions.
7491637@duniul - Update the default file patterns.
9ab2ba3@duniul
v3.1.1
v3.1.0
v3.0.5
v3.0.4
v3.0.3
v3.0.2
(includes 3.0.0 and 3.0.1, which were unpublished)
Major Changes
-
BREAKING Replace
-i,--includeand-e,--excludewith globs passed as positional arguments. This makes them consistent with the glob file patterns.de47cf2@duniulTo 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
yargswithclipanionfor CLI parsing.de47cf2@duniul - Don't remove
tsconfig.jsonfiles by default, as they can be shared.17603eb@duniul - Update
pretty-bytes,pretty-msandsupports-color.e198b46@duniul - Remove
argas a runtime dependency.95b0dcf@duniul - Try to avoid test util files when cleaning up test files.
cf7ede5@duniul - Fix issue where
--glob-filecould be passed as an array, causing a crash.de47cf2@duniul