paulmillr / scure-base

Secure, audited & 0-deps implementation of bech32, base64, base32, base16 & base58
https://paulmillr.com/noble/#scure
MIT License
120 stars 13 forks source link

Improve tree-shaking, add more hardened compiler options #16

Closed paulmillr closed 1 year ago

paulmillr commented 1 year ago

Thanks to @jeetiss and @sambacha for initial contribution

sambacha commented 1 year ago

Thanks for the mention, dont forget to inherit the tsconfig for the esm build!

also enforcing registry usage via npmrc!

Question: ESM spec doesn't seem clear about SRI hash support, what is the recommended way if your using this via CDN on a simple HTML site?

Thanks for all the care you put into these libraries Paul, it is very much appreciated!

paulmillr commented 1 year ago

Question: ESM spec doesn't seem clear about SRI hash support, what is the recommended way if your using this via CDN on a simple HTML site?

I am not aware of it, would be great to know it as well.

paulmillr commented 1 year ago

also enforcing registry usage via npmrc!

Why? Lockfile, which is present in repo, already specifies package URLs and integrity.

paulmillr commented 1 year ago

I have also removed a bunch of options, since they are already included when "strict" is true: no need to write them twice.