Releases: polkadot-js/common
Releases · polkadot-js/common
v4.0.1
- 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 asObject.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
Changes:
- Remove the use of
chalk
(logger) for less overall dependencies string*
utilities now also allowsString
(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}
intocommon
repo
v3.6.1
Contributed:
- Add evmToAddress and addressToEvm
@polkadot/util-crypto
(Thanks to https://github.com/jnaviask) - Remove invalid link to docs (thanks to https://github.com/roccomuso)
Changes:
- Rename
mnemonicToBip39
tomnemonicToLegacySeed
(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
Contributed:
- Add Dock network identifiers (Thanks to https://github.com/lovesh)
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
v3.3.1
v3.2.1
- 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
- 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
- Add Katal ss58Format (Thanks to https://github.com/retotrinkler)
- Adjust JSON pair output with scrypt kdf (version 3 output)