Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Conversation

@dependabot-preview
Copy link
Contributor

Bumps @polkadot/util from 0.41.1 to 2.6.1.

Release notes

Sourced from @polkadot/util's releases.

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 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

  • 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

v2.2.1

  • Add resolver for jest/test requires (tests execute in src/)

v2.1.1

  • Update detectPackage(<package.json>, __dirname?) with calling folder

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 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

v1.7.1

  • formatBalance signature now allows to force unit displays
  • Keypair now allows for derive on a pair, with pair.derive(...)
  • assert now acts like a real asserts, with no return - signature adapted for new TS 3.7

v1.6.1

  • pair.sign(message) now takes an optional second options?: SignOptions parameter, where SignOptions is currently defined as { withType: boolean }. Here withType instructs the signing to prepend the type of signature (ed2551, sr25519 or ecdsa). This is used for the new Polkadot/Substrate MultiSignature format.
... (truncated)
Changelog

Sourced from @polkadot/util's changelog.

2.6.1 Feb 29, 2020

  • 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 yan 2 projects

2.5.1 Feb 22, 2020

  • 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 #<field> instead of private _<field> for private class variables

2.4.1 Feb 18, 2020

  • 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)

2.3.1 Feb 15, 2020

2.2.1 Feb 06, 2020

  • Add resolver for jest requires (tests from src)

2.1.1 Feb 04, 2020

  • Update detectPackage(<package.json>, __dirname?) with calling folder

2.0.1 Jan 30, 2020

  • 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 secp2561 recovery (No node bindings)

1.8.1 Jan 09, 2020

... (truncated)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Mar 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant