Skip to content

Releases: polkadot-js/wasm

v4.0.2

05 Mar 22:06
Compare
Choose a tag to compare

Changes:

  • Add import indirection for both CJS & ESM (where generated source file is commonjs)

v4.0.1

04 Mar 18:30
Compare
Choose a tag to compare

Important In the 4.0 version the default package type has been changed to ESM modules by default. This should not affect usage, however since the output formats changed, a new major version is required.

Changes:

  • Build to ESM by default (with cjs versions via export map)

v3.2.4

24 Feb 16:17
Compare
Choose a tag to compare

Changes:

  • Cleanup implicit dependencies, perform base64 decoding using base64-js

v3.2.3

16 Feb 11:15
Compare
Choose a tag to compare

Changes:

  • Change package detect import to use .js source, not .json

v3.2.1

22 Jan 08:58
Compare
Choose a tag to compare

Contributed:

Changes:

  • Add explicit .editorconfig for Rust sources
  • Remove unused code bundles (vrf_{sign,verify}_extra, secp256k1 with tests)
  • Test run wrapper cleanups

v3.1.1

19 Dec 13:14
Compare
Choose a tag to compare

Changes:

  • Single-instance package detection
  • Adjust WASM inflate with localized methods

v3.0.1

13 Dec 09:19
Compare
Choose a tag to compare

Important This assumes @polkadot/util 5+ peerDependencies
Important While this package contains no external interface changes, it doe now compile and ship both cjs and esm modules. This means that modern bundlers will have more information for tree-shaking available. Additionally when using Node with .mjs extensions, the esm version imports will be used on recent Node versions. Adding an export map, as here, may have some impacts so a major semver bump is advised. There may be (small) dragons hiding in the dark corners...

Changes:

  • Build and expose both cjs and esm via exports map
  • Split wasm and asmjs files into the @polkadot/wasm-crypto-{wasm,asmjs} packages
  • Add fflate WASM compression, with 180K raw savings (37K over-the-wire)
  • Convert the package to full TypeScript sources

v2.0.1

08 Nov 13:02
Compare
Choose a tag to compare

Changes:

  • Rework generation of WASM interfaces (proper cross-platform JS support)
  • Remove explicit crypto dependency, this is now applied by @polkadot/x-randomvalues
  • Build via xargo for panic abort, an overall small sizes without stack (Pinned nightly)
  • Move Rust library sources in to rs/ subfolder

v1.4.1

27 Aug 10:26
Compare
Choose a tag to compare
  • Re-add the BTC/ETH compatible bip39ToSeed dropped in the previous version (ETH-compatible pairs)

v1.3.1

09 Aug 12:33
Compare
Choose a tag to compare
  • Add scrypt function for KDF generation
  • Remove bip39ToSeed, we only use the bip39ToMiniSecret variant in Substrate
  • Update ed25519-dalek to 1.0.0-pre.4
  • Rework generation based on latest wasm-pack generator