Releases: polkadot-js/wasm
v4.0.2
v4.0.1
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
v3.2.3
v3.2.1
Contributed:
- Expose sr25519
ext_vrf_{sign, verify}
methods (Thanks to https://github.com/stiiifff)
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
v3.0.1
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
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