Releases: polkadot-js/common
Releases · polkadot-js/common
v2.8.1
- Keypair will now throw an error when attempting to sign/derive using a locked pair (Thanks to https://github.com/h4x3rotab)
- Cleanup
isDevelopment
regex to cater for chains such asWestend Development
v2.7.1
v2.6.1
- Breaking change Following on the 2.0 release,
@polkadot/wasm
was updated to 1.1+. sr25510 now only verifies 0.8+ signatures, closing the loop on dropping Substrate 1.x-era support - Add
signatureVerify (message: Uint8Array | string, signature: Uint8Array | string, addressOrPublicKey: Uint8Array | string): VerifyResult
to verify any signature, regardless of type. Returns validity & detected crypto type. - Add
cryptoIsReady (): boolean
function to check status of initialization - Add
addressCheckChecksum (decoded: Uint8Array)
as an helper to extract and verify the ss58 checksum - Swap to yarn 2, allow use in yarn 2 projects
v2.5.1
- Breaking change (TypeScript only) The
*.d.ts
files now contain TypeScript 3.8 features,#private
, which is not usable in older versions - Add
isBigInt(value)
to allowBigInt
checks. Also add support inbnToBn
as well as number conversion utils - Add
isChildClass(Parent, Child?)
to check if a class extends the parent, asserting Child is Parent - (internal) Use
#<varname>
instead ofprivate _<varname>
for private class variables
v2.4.1
- Ensure that
formatBalance
does not apply unit overrides apply when no SI is applicable - Adjust
formatBalance(<balance>, <options>)
to take expandedwithUnit: string | boolean
option where string is an actual unit, e.g.KSM
- The
decimals
option toformatBalance
should now be passed as part of theoptions
(previous last-param deprecated) - The
.setSS58Format
on keyring will now just operate on pairs created on the keyring, not globally. The globalsetSS58Format
in@polkadot/util-crypto
will be deprecated. - The deprecated
addressPrefix
option to keyring has been belatedly removed (Usess58Format
rather)
v2.3.1
- Remove dependency on moment.js with
formatDate
function (Thanks to https://github.com/AndreasGassmann) - Move TypeScript
@types/*
to dev deps (Thanks to https://github.com/AndreasGassmann) - Update to
@polkadot/wasm-crypto
1.0 - Cleanup dependencies to pave the way for using yarnpkg 2 (Explicit instead of implicit)
v2.2.1
v2.1.1
v2.0.1
- Update w3f/schnorrkel to 0.8.5 (Full Substrate 2.x support, no 1.x support)
- Remove Alice session (ed2551) account from testing keyring (not applicable to Substrate 2.x)
- Remove
chainspec
,db
,trie-codec
,trie-db
andtrie-hash
packages (moved to client) - Renamed
assertSingletonPackage
todetectPackage
with inclusion of version listing - Swap to elliptic library for secp256k1 recovery (No node bindings)
v1.8.1
- Add cross-client encryption/decryption support (Thanks to https://github.com/hskang9)