pastelsky / bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project
https://bundlephobia.com
MIT License
8.89k stars 221 forks source link

refactor: replace old packages #800

Closed nakrovati closed 9 months ago

nakrovati commented 1 year ago

A small code cleanup: replaced old packages and removed unused ones.

Replaced lodash.isequal, flatten (deprecated), debounce and is-empty-object with alternatives from just (angus-c). Also replaced mkdir-promise with the native implementation of mkdir from node:fs.

I also removed unused packages: lodash, lodash.sortby, bfj, big-json, jsdom, koa-better-limiter.

Why did I do that?

Test results: https://github.com/nakrovati/lodash-vs-just-test and https://github.com/nakrovati/mkdir-promise-vs-fs-mkdir