Skip to content

Releases: polkadot-js/common

v2.8.1

09 Apr 13:17
Compare
Choose a tag to compare
  • 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 as Westend Development

v2.7.1

31 Mar 12:24
Compare
Choose a tag to compare
  • Add bnSqrt to calculate the integer sqrt via Newton iteration
  • Allow for optional wasm-crypto, specifically via @polkadot/util-crypto/noWasm
  • Misc. CI infrastructure cleanups

v2.6.1

29 Feb 17:52
Compare
Choose a tag to compare
  • 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

22 Feb 15:38
Compare
Choose a tag to compare
  • 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 allow BigInt checks. Also add support in bnToBn 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 of private _<varname> for private class variables

v2.4.1

18 Feb 08:22
Compare
Choose a tag to compare
  • Ensure that formatBalance does not apply unit overrides apply when no SI is applicable
  • Adjust formatBalance(<balance>, <options>) to take expanded withUnit: string | boolean option where string is an actual unit, e.g. KSM
  • The decimals option to formatBalance should now be passed as part of the options (previous last-param deprecated)
  • The .setSS58Format on keyring will now just operate on pairs created on the keyring, not globally. The global setSS58Format in @polkadot/util-crypto will be deprecated.
  • The deprecated addressPrefix option to keyring has been belatedly removed (Use ss58Format rather)

v2.3.1

15 Feb 11:02
Compare
Choose a tag to compare

v2.2.1

06 Feb 14:50
Compare
Choose a tag to compare
  • Add resolver for jest/test requires (tests execute in src/)

v2.1.1

04 Feb 13:08
Compare
Choose a tag to compare
  • Update detectPackage(<package.json>, __dirname?) with calling folder

v2.0.1

30 Jan 15:13
Compare
Choose a tag to compare
  • 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 and trie-hash packages (moved to client)
  • Renamed assertSingletonPackage to detectPackage with inclusion of version listing
  • Swap to elliptic library for secp256k1 recovery (No node bindings)

v1.8.1

13 Jan 15:41
Compare
Choose a tag to compare