Closed steida closed 2 hours ago
Adding dependency to save 500 bytes is not worth it.
Inlining all the way.
OK, but it's your dependency, so I don't understand why it should be a problem. Anyway, it was just an idea. Feel free to ignore it.
Imagine all packages incorporate utils tomorrow:
^1.0.0
). However, doing so would increase risk of supply chain attacks. Badly published utils
will be able to break all dependants at onceSo, overall, brings too much complexity. 500 bytes is not a huge deal.
I suppose it should be one library to save some bytes when people use both @noble/ciphers and @noble/hashes. Thank you very much for your work.