v5.0.1
- Breaking change For users of React Native, you are now required to add
import '@polkadot/wasm-crypto/initOnlyAsm'
at your project top-level to ensure that asm.js is initialized. (Or alternativelyimport '@polkadot/wasm-crypto/initWasmAsm'
to future-proof when WASM does become available) - Breaking change For users who used to map the
data
andempty
of the internalwasm-crypto-{wasm, asmjs}
packages in their bundlers, swap to one of the@polkadot/wasm-crypto/init*
top-level imports to set the type of interfaces you would prefer. A full writeup of the rationale and other options can be found in the FAQ
Changes:
- Add (optional)
@polkadot/wasm-crypto/init{OnlyAsm, OnlyWasm, WasmAsm}
to allow specific interface types - Add work-around for lazy secp256k1 init in asm.js environments
- Optimize asm.js output size
- Use latest
wasm-bindgen
,binaryen
&wabt
packages in build - Additional workaround for Vite bundling