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?
Replaced lodash.isequal with just-comapre: reduced function weight from 10KB to 600B, built-in typing and 3-5x faster object comparison.
Replacing flatten (deprecated) with just-flatten-it: 1.5 to 5 times speedier array flattening and built-in typing.
Replacing is-empty-object with just-is-empty - 1.5 to 2.5 times speedier check of empty objects and built-in typing.
Replacing debounce with just-debounce-it: built-in typing.
Replacing mkdir-promise with native mkdir: reduced memory usage and speeded up directory creation (see tests in attached repo).
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