Skip to content

Releases: polkadot-js/wasm

v6.0.1

09 Apr 07:31
Compare
Choose a tag to compare
  • Breaking change In this major version the commonjs outputs are moved to a sub-folder. Since the export map and main field in package.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

27 Mar 07:10
Compare
Choose a tag to compare

Changes:

  • Swap from libsecp256k1 to secp256k1 (this aligns with the Substrate use)
  • Adjust wasm-crypto/init* to also export initWasm(): 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

19 Mar 07:43
Compare
Choose a tag to compare
  • 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 alternatively import '@polkadot/wasm-crypto/initWasmAsm' to future-proof when WASM does become available)
  • Breaking change For users who used to map the data and empty of the internal wasm-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

12 Mar 08:01
Compare
Choose a tag to compare

Changes:

  • Adjust ed25519 internals, consistency in code
  • Ensure package path is available under ESM & CJS
  • JS wrapped bytes interoperability test
  • Adjust for bundlers where import.meta.url is undefined

v4.5.1

03 Dec 11:51
Compare
Choose a tag to compare

Changes:

  • Add secp256k1{Compress, Expand, Recover, Sign} functions
  • Remove all occurences of .unwrap() (match everywhere)
  • Adjust and optimize WASM function JS interface construction
  • Simplify base64 bytes decoding on construction

v4.4.1

22 Nov 05:05
Compare
Choose a tag to compare

Changes:

  • Add hmacSha256 & hmacSha512 functions

v4.3.1

19 Nov 13:40
Compare
Choose a tag to compare

Contributed:

Changes:

  • Add keccak512 function
  • Add sha256 function

v4.2.1

28 Aug 05:54
Compare
Choose a tag to compare

Contributed:

Changes:

  • Adjust tests to align with JS coding standards
  • Allow for optional build with Rust stable bootstrap

v4.1.2

09 Jul 06:05
Compare
Choose a tag to compare

Changes:

  • Bump @polkadot/dev to allow for bundles with new-format

v4.1.1

07 Jul 16:04
Compare
Choose a tag to compare

Changes:

  • Add an explicit engines field to package.json
  • Allow building as a completely stand-alone browser bundle