sindresorhus / meow

🐈 CLI app helper
MIT License
3.53k stars 150 forks source link

Remove hard-rejection #250

Closed Exponential-Workload closed 7 months ago

Exponential-Workload commented 7 months ago

In node >= 16, the default behaviour of promises is to throw if not caught, resulting in hard-rejection being essentially entirely useless now, and just increasing the installed size of a project using this package; sadly specifying hardRejection:false does not result in the hard-rejection package being excluded from the installed packages when running a project with meow in it. Most tree-shaking tools (all that I know of) are unable to figure out that that option makes the package unnecessary, even despite of sideEffects:false.