Skip to content

Releases: EvanZhouDev/npm-confirm

NPM Confirm v2

27 Jul 21:57
eac21f1
Compare
Choose a tag to compare

v2 was essentially rewritten from the ground up, with fixes, improvements, and much more

What's New?

A brand new algorithm to detect when to trigger NPM Confirm has been implemented.

The previous algorithm always triggered confirmation, except for a certain few blocked words. This meant that there were a lot of times where you really meant to use another package manager, but NPMC would confirm with you.

Now, it only confirms with you if you use a certain set of commands such as install, uninstall, run, upgrade, and their equivalents. Furthermore, global installation always use whatever package manager you typed.

Fixes and Improvements

  • 🔀 install (i.e. install all packages) and add (i.e. add a package) are now treated separately
  • ✨ Instead of relying on code extracted from the detect-package-manager library, there is now a custom script to detect which package manager you're using
  • 📝 A slightly less confusing message now shows when Confirming (instead of a "yes" or "no" to a question above that one may be tempted to not read, it directly asks you if you wish to switch or keep your original package manager)