Skip to content

Releases: polkadot-js/common

v5.6.1

07 Feb 11:25
Compare
Choose a tag to compare

Contributed:

Changes:

  • Conform to new ss58 encoding with ids up to 16,383 (>= 64 as 2 bytes)
  • Use JS sqrt inside bnSqrt when value <= MAX_SAFE_INTEGER
  • Adjust all Buffer.from usages, prefer Uint8Array where possible
  • Expand tests for keyring with vrf{Sign, Verify}
  • Align @polkadot/networks with latest ss58 registry

v5.5.2

02 Feb 14:50
Compare
Choose a tag to compare

Changes:

  • Expose BN_{MILLION, BILLION} constants (in addition to 2-9)

v5.5.1

31 Jan 08:01
Compare
Choose a tag to compare

Changes:

  • Added hdLedger to util-crypto for Ledger-compatible bip32+ed25519 derivation
  • Added hmac{Sha256, 512} to util-crypto
  • Add slip44 indices for Ledger into @polkadot/networks
  • Remove module entry in package.json (only rely on exports map)
  • Remove direct references to global object, use @polkadot/x-global
  • Update @ledgerhq dependencies to latest

v5.4.1

24 Jan 11:09
Compare
Choose a tag to compare

Contributed:

Changes:

  • Allow decimals as number[] & symbol as string[] in balanceFormat defaults
  • Add schnorrkelVrf{Sign, Verify} to @polkadot/util-crypto
  • Export vrf{Sign, Verify} on keyring interface
  • Move @polkadot/x-rxjs packages from the api repo
  • Align @polkadot/networks with Substrate master
  • Explicit edcsa tests for derivation
  • @polkadot/wasm-crypto 3.2.1

v5.3.1

17 Jan 14:25
Compare
Choose a tag to compare

Important For users of the @polkadot/ledger package, it is now included in this repo (since it is a general utility) and renamed to @polkadot/hw-ledger

Contributed:

Changes:

  • Move @polkadot/ledger packages into common
  • Update @polkadot/networks to align with latest Substrate ss58-registry

v5.2.1

27 Dec 07:44
Compare
Choose a tag to compare

Changes:

  • Add arrayFlatten to merge a series of arrays into a single
  • Add arrayChunk to chunk an array into multiples of defined size
  • Add bitLength param (allowed 256, 512) to keccakAs{Hex, U8a}
  • Align @polkadot/networks with Substrate master

v5.1.1

19 Dec 14:24
Compare
Choose a tag to compare

Changes:

  • detectPackage now can take a path-retrieval callback as second argument
  • Adjust blake2js imports to consistently cater for esm & cjs usage
  • Explicitly mark detectPackage usage as having side-effects
  • @polkadot/wasm-crypto 3.1.1

v5.0.1

13 Dec 14:24
Compare
Choose a tag to compare

Important While this package contains no external interface changes, it does 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
  • Use import type { ... } form for all type imports
  • Align with Substrate master network list
  • Debug logs now don't depend on NODE_ENV, but rather DEBUG=<type,type,...> (* logs all)
  • Limit debug console output via DEBUG_MAX=<number> value, trimming when passed
  • Add memoize util, allowing for function memoization (as used in the API)

v4.2.1

23 Nov 11:56
Compare
Choose a tag to compare

Changes:

  • Rename default Mega to Million, Giga to Billion and Tera to Trillion in formatter
  • Dedupe bn.js by aligning versions between different libraries
  • Add explicit link to base Substrate ss58 formats (as managed in @polkadot/util)

v4.1.1

16 Nov 09:21
Compare
Choose a tag to compare

Contributed:

Changes:

  • Replace pbkdf2 imports with explicit use from sync-only package
  • Adjust secp256k1 imports with shared elliptic
  • Expand crypto tests for explicit wasm vs JS compares in all cases