Skip to content

v0.10.0

Choose a tag to compare

@matteosacchetto matteosacchetto released this 17 Feb 18:49
· 32 commits to main since this release
3be6732

What's changed

This version of node-zip-cli brings various changes and performance improvements

Overall

  • Removed unnecessary dependencies:
    • strip-ansi → replaced with node internal stripVTControlCharacters
    • figures → embedded the arrow down symbol in the code
  • Refactored logger to not rely on console, but operate directly on process.stdout and process.stderr. It should be now marginally faster.
  • Fully refactored the bash-completions.sh script to improve maintainability
  • Improved CLI color consistency
  • Updated documentation, fixing typos and improving clarity
  • Updated the following dependencies
    - @commander-js/extra-typings    ^12.1.0  → ^13.1.0
    - @inquirer/confirm               ^5.0.2  →  ^5.1.6
    - chalk                           ^5.3.0  →  ^5.4.1
    - commander                      ^12.1.0  → ^13.1.0
    - ignore                          ^6.0.2  →  ^7.0.3
    - ora                             ^8.1.1  →  ^8.2.0
    - yazl                            ^6.0.2  →  ^3.3.1
    

zip/find/tar

  • Fix an issue with find sub-command output when no file is found. It now behaves like the Linux find command, which exits with 0 and does not print anything.
  • Add presets for -s, --symlink and --disable-ignore options
    • -s, --symlink: when used without a parameter, it will behave as resolve (keep for the find command`)
    • --disable-ignore: when used without a parameter, it will behave as ignore-files
  • Performance improvements on walk function, used to traverse the file system. To evaluate this, I run hyperfine with the current version (. = 0.10.0) and the previous version (node-zip-cli = 0.9.0), both with node 18.20.6 and bun 1.2.2.
    Schermata del 2025-02-17 19-30-22
    Schermata del 2025-02-17 19-30-10
  • Symlink supported is now marked as stable

BREAKING CHANGES

  • Symlink supported is now marked as stable
  • Changed the behavior of the find command when no file is found
  • Changed how -s, --symlink and --disable-ignore flags behave, as now they can be used without a parameter

Pull Requests

Full Changelog: v0.9.0...v0.10.0