5.7 KiB
CHANGELOG
master
Changes:
- Add explcit
enginesfield topackage.json
4.0.2 Mar 5, 2021
Changes:
- Add import indirection for both CJS & ESM (where generated source file is commonjs)
4.0.1 Mar 4, 2021
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)
3.2.4 Feb 24, 2021
Changes:
- Cleanup implicit dependencies, perform base64 decoding using base64-js
3.2.3 Feb 16, 2021
Changes:
- Change package detect import to use
.jssource, not.json
3.2.2 Jan 24, 2021
Changes:
- Remove
modulefield inpackage.json
3.2.1 Jan 22, 2021
Contributed:
- Expose sr25519
ext_vrf_{sign, verify}methods (Thanks to https://github.com/stiiifff)
Changes:
- Add explicit
.editorconfigfor Rust sources - Remove unused code bundles (
vrf_{sign,verify}_extra,secp256k1with tests) - Test run wrapper cleanups
3.1.1 Dec 19, 2020
Changes:
- Single-instance package detection
- Adjust WASM inflate with localized methods
3.0.1 Dec 13, 2020
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
2.0.1 Nov 8, 2020
Changes:
- Rework generation of WASM interfaces (proper cross-platform JS support)
- Remove explicit
cryptodependency, 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
1.4.1 Aug 27, 2020
Changes:
- Re-add the BTC/ETH compatible
bip39ToSeeddropped in the previous version (ETH-compatible pairs)
1.3.1 Aug 9, 2020
Changes:
- Add
scryptfunction for KDF generation - Remove
bip39ToSeed, we only use thebip39ToMiniSecretvariant in Substrate - Update ed25519-dalek to 1.0.0-pre.4
- Rework generation based on latest wasm-pack generator
1.2.1 Feb 29, 2020
Changes:
- Adjust build process for smaller wasm bundle outputs (~50K dropped from base bundle)
- Unpin nightly from nightly-2020-02-17 version
- Swap to yarn 2 and add support for use by yarn 2 projects
1.1.1 Feb 24, 2020
- Important The sr25519 interface dropped the use of
verify_simple_preaudit_deprecatedfor signature verification, instead it now usesverify_simple. Only schnorrkel 0.8+ signatures will now pass verification. This is a follow-up of the 0.1 signing support that was dropped in a previous version.
Changes:
- Rework schnorrkel signatures test vectors based on the above change (Rust, WASM and ASM.js tests)
- Rust nightly pinned to last-known-working 2020-02-17 on CI (compiler issues, should to be reverted in a future release)
1.0.1 Feb 15, 2020
Changes:
- No functionality changes from 0.20.1. The interfaces here are stable in the current iteration.
0.20.1 Jan 30, 2020
Changes:
- Pull in schnorrkel 0.8.5 for full Substrate 2.x compatibility
0.14.1 Sep 09, 2019
Changes:
- No functionality changes at all, everything done is "under the hood" to give the codebase better maintainability
0.13.1 Jul 20, 2019
Changes:
- Added an asm.js fallback which is active for React Native via the
"react-native"entry inpackage.json. Ensure that you run the build step with theNODE_OPTIONS=--max_old_space_size=8192flags, since the asm.js bundle is large. (For RN the full command would therefore beNODE_OPTIONS=--max_old_space_size=8192 npm start)
0.12.1 Jul 17, 2019
Changes:
- Remove deprecated
@polkadot/wasm-schnorrkel&@polkadot/wasm-dalek-ed25519source (all combined in@polkadot/wasm-crypto, was kept for historical purposes) - Security dependency bumps
- Updated Rust
hex-literalfor recent versions of the compiler (used in tests only)
0.11.1 May 31, 2019
Changes:
- Security dependency bumps
0.10.1 May 09, 2019
Changes:
- w3f/schnorrkel updated to 0.1.1 as per substrate
- Added known subkey signature test (Rust & JS)
0.9.1 Apr 29, 2019
Changes:
- Dependency bumps
0.8.1 Mar 31, 2019
Changes:
- Pull ed25519 & sr25519 into
@polkadot/wasm-cryptoas well (smaller final size) - Disable build/publish of
wasm-dalek-ed25519&wasm-schnorrkel - Improve error messaging, instead of
__wasm_malloc of null
0.7.1 Mar 30, 2019
Changes:
- Fix build scripts to properly attach errors in the log (dropped in 0.6.1)
0.6.1 Mar 27, 2019
Changes:
- Log init errors for both non-WebAssembly usage as well as WebAssembly errors
0.5.1 Mar 23, 2019
Changes:
- Add password argument to bip39ToSeed
0.4.1 Mar 23, 2019
Changes:
- Add bip39ToSeed
0.3.1 Mar 23, 2019
Changes:
- Add wasm-dalek-ed25519 for all used crypto there
- Add keccak256
- Try secp256k1 (bloating code, not used atm)
0.2.1 Mar 20, 2019
Changes:
- Add basic crypto functions, creation of wasm-crypto package
- blake2, bip39, sha2, xxhash
0.1.1 Mar 18, 2019
Changes:
- Initial release