Closed steveluscher closed 1 year ago
This is similar to https://github.com/paulmillr/noble-hashes/pull/67, which I'm really looking forward to being released, since it will let us tree-shake away the sha512_224
, sha512_256
, and sha384
exports that we don't use.
I'm really looking forward to being released
The exports are 15 lines of code. It's really not a big deal for any app. I think the release can wait until our ordinary release schedule, which is one release every month or two.
Every new release complicates amount of possible versions in use so I'd rather make slow releases instead.
This PR makes it so that if you only use one export:
…then only the
twistedEdwards
call that constructs that export will remain after bundling and tree-shaking.Before
Before this change, the compiled bundle contains all the code that constructs
ed25519ph
anded25519ctx
remains.After