Upgrade priority: Medium, especially for staking users on Polkadot, Kusama & Westend (type updates applied for v23 onwards) or if transparent .at(hash) queries are required/used
Important Substrate changed the RewardDestination enum with an extra field for payout-to-any account for staking preferences. If on an older chain consider adding RewardDestination: 'RewardDestinationTo257'
Important Substrate changed the CompactAssignment type enhanced types for session solution submissions. If on an older chain consider adding CompactAssignments: 'CompactAssignmentsTo257'
Add transparent support for types/metadata, i.e. hash queries such as rpc.chain.getBlock(<hash>) & query.system.events.at(<hash>) now works out-of-the-box injecting the correct metadata & types.
Optimize RPC-layer calls with detection of short-term cacheable calls (in the same way subscriptions are done)
Additional checks on AccountId for valid sizes
Add toBigInt() (JS built-in BigInt) on Int/Uint, & Compact<*> types
Support for .concat on Codec arrays
Support for serialization with isBare flag on enums
Add api.getBlockRegistry(blockHash?) to create registry/types for a specific block
derive.democracy.locks now returns delegated locks for an account as well
Adjust unlocking derives with appropriate in-place additions (less object allocations)
.sign on submittables is marked deprecated (not due for removal, but rather use .signAsync for consistency with .signAndSend)
Adjust types for CompactAssignments & RewardDestination for Polkadot, Kusama & Westend
@polkadot/util 3.4
@polkadot/wasm-crypto 1.4
v1.30.1
Upgrade priority: Low, unless using the proposeParachain module.
Adjust balance retrievals to check for system.account for new/old determination
Add types for the new proposeParachain module (as per Rococo)
Adjust AddressLookupSource definitions (no external impact, both in existence)
Allow for configurable hashers via registry.setHasher(...) (defaults to blake2AsU8a)
@polkadot/util 3.3
v1.29.1
Upgrade priority: Low, unless on bleeding-edge chain with new compact CompactAssignments.
Important The Substrate CompactAssignments type has changed for better space utilization. On older chains, supply CompactAssignments: 'CompactAssignmentsTo257'
Added derive.chain.getBlock(hash) to retrieve a SignedBlock extended with an .author (same as derive.chain.getHeader(...))
1.31.1 Aug 31, 2020
Upgrade priority: Medium, especially for staking users on Polkadot, Kusama & Westend (type updates applied for v23 onwards) or if transparent .at(hash) queries are required/used
Important Substrate changed the RewardDestination enum with an extra field for payout-to-any account for staking preferences. If on an older chain consider adding RewardDestination: 'RewardDestinationTo257'
Important Substrate changed the CompactAssignment type enhanced types for session solution submissions. If on an older chain consider adding CompactAssignments: 'CompactAssignmentsTo257'
Add transparent support for types/metadata, i.e. hash queries such as rpc.chain.getBlock(<hash>) & query.system.events.at(<hash>) now works out-of-the-box injecting the correct metadata & types.
Optimize RPC-layer calls with detection of short-term cacheable calls (in the same way subscriptions are done)
Additional checks on AccountId for valid sizes
Add toBigInt() (JS built-in BigInt) on Int/Uint, & Compact<*> types
Support for .concat on Codec arrays
Support for serialization with isBare flag on enums
Add api.getBlockRegistry(blockHash?) to create registry/types for a specific block
derive.democracy.locks now returns delegated locks for an account as well
Adjust unlocking derives with appropriate in-place additions (less object allocations)
.sign on submittables is marked deprecated (not due for removal, but rather use .signAsync for consistency with .signAndSend)
Adjust types for CompactAssignments & RewardDestination for Polkadot, Kusama & Westend
@polkadot/util 3.4
@polkadot/wasm-crypto 1.4
1.30.1 Aug 24, 2020
Upgrade priority: Low, unless using the proposeParachain module.
Changes:
Adjust balance retrievals to check for system.account for new/old determination
Add types for the new proposeParachain module (as per Rococo)
Adjust AddressLookupSource definitions (no external impact, both in existence)
This version was pushed to npm by polkadotjs, a new releaser for @polkadot/api since your current version.
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](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps @polkadot/api from 1.12.2 to 1.31.2.
Release notes
Sourced from @polkadot/api's releases.
Changelog
Sourced from @polkadot/api's changelog.
Commits
Maintainer changes
This version was pushed to npm by polkadotjs, a new releaser for @polkadot/api since your current version.
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](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)