Releases: polkadot-js/wasm
Releases · polkadot-js/wasm
v6.0.1
- Breaking change In this major version the commonjs outputs are moved to a sub-folder. Since the
export
map andmain
field inpackage.json
does reflect this change, there should be no usage changes. However the packages here will all need to be on the same version for internal linkage.
Changes:
- Update ed25519 secret key format return description
- Output commonjs files under the
cjs/**
root
v5.1.1
Changes:
- Swap from
libsecp256k1
tosecp256k1
(this aligns with the Substrate use) - Adjust
wasm-crypto/init*
to also exportinitWasm(): Promise<void>
(optional manual init) - Allow for
wasm-crypto/initNone
with no defined Wasm or Asm interfaces - Fix initialization on React Native with only ASM
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
v4.6.1
v4.5.1
v4.4.1
v4.3.1
Contributed:
- Updated package.json to include repo (Thanks to https://github.com/v-zhzhou)
Changes:
- Add
keccak512
function - Add
sha256
function
v4.2.1
Contributed:
- Add sr25519 agreement external (Thanks to https://github.com/shelvenzhou)
Changes:
- Adjust tests to align with JS coding standards
- Allow for optional build with Rust stable bootstrap