Skip to content

Releases: polkadot-js/common

v4.0.1

08 Nov 12:52
Compare
Choose a tag to compare
  • Breaking change Polyfills are not injected by these libraries anymore to avoid clobbering external globals, the user should provide them if their environment is missing base functionality.

Changes:

  • Remove built-in utility polyfills for Array.fill, String.padStart, String.padEnd as well as Object.setPrototypeOf. These should be provided by the actual user of the libraries if so required.
  • Update @polkadot/wasm-crypto library (under-the-hood cleanups)
  • Remove explicit crypto polyfill injection (aligning with updated @polkadot/wasm-crypto)
  • Add cross-environment @polkadot/x-randomvalues (for use in @polkadot/wasm-crypto)

v3.7.1

01 Nov 13:58
Compare
Choose a tag to compare

Changes:

  • Remove the use of chalk (logger) for less overall dependencies
  • string* utilities now also allows String (class) inputs
  • Align bip39 use with wasm-crypto for English-only wordlist, default, non supplied)
  • Adjust elliptic imports for explicit paths (allows tree-shaking)
  • Add Totem (ss58 prefix 14) into @polkadot/networks
  • Move @polkadot/x-{fetch,textdecoder,textencoder,ws} into common repo

v3.6.1

18 Oct 11:57
Compare
Choose a tag to compare

Contributed:

Changes:

  • Rename mnemonicToBip39 to mnemonicToLegacySeed (used in non-Substrate compatible fashion)
  • Update pair signature verification to handle MultiSignature results
  • Move documentation to docs repo
  • Added @polkadot/networks for a list of known networks and their identifying information

v3.5.1

27 Sep 09:01
Compare
Choose a tag to compare

Contributed:

Changes:

  • Use cross-environment TextDecoder & TextEncoder from the polkadot-js polyfills
  • Add isBase{32, 58, 64} to @polkadot/util-crypto
  • Add base64{Pad, Trim} to add/remove padding characters
  • Add createFromJson(json) to keyring (create pair without adding)
  • Balance formatter now outputs 4 numbers after the decimal point

v3.4.1

31 Aug 15:20
Compare
Choose a tag to compare
  • Allow for WASM-as-available mnemonicToBip39 call (used for Ethereum-compatible keypairs)
  • Add isWasm utility to check for valid WASM headers
  • @polkadot/wasm-crypto 1.4.1

v3.3.1

24 Aug 07:12
Compare
Choose a tag to compare
  • Add addressRaw to Keyring interface (if address encoding is different to publicKey)
  • Allow for Ethereum pair signing and verification

v3.2.1

17 Aug 10:24
Compare
Choose a tag to compare
  • Allow for (optional, default blake2) hasher to secp256k1 sign/verify functions
  • Utilities for secp256k1 publicKey expansion and compression
  • Add basic Ethereum address utils (encode with checksum & checksum verification)
  • Add Ethereum-compatible mnemonicToBip39 seed creation function

v3.1.1

10 Aug 04:56
Compare
Choose a tag to compare
  • Add deriveAddress(<address>, '/<soft>/<soft-b>') via sr25519 soft
  • Use scrypt from WASM as available (JS fallback in place)
  • Add base32{Encode, Decode} utilities (IPFS-compatible alphabet)
  • Support IPFS compatibility flag in base58 encoding/decoding
  • Update to @polkadot/wasm-crypto 1.3.1

v3.0.1

27 Jul 06:27
Compare
Choose a tag to compare

v2.18.1

13 Jul 09:06
Compare
Choose a tag to compare
  • Add base64{Decode, Encode, Validate} as crypto utils
  • Extract base58Validate from base58 decode checks
  • Add isAscii to allow detection of printable ASCII sequences (including tab, newline)
  • Add isUtf8 to allow detection of valid Utf8 sequences