Releases: polkadot-js/api
Releases · polkadot-js/api
v1.27.1
- Remove outdated example poc-3 RPC reference (Thanks to https://github.com/swswsw)
- Raw/Bytes
toHuman
detects ASCII sequence for text output - Add know types for the Rococo chain
v1.26.1
- Update docs for the new
system.accountNextIndex
(Thanks to https://github.com/shawntabrizi) - Update contracts call parameter typing (Thanks to https://github.com/kwingram25)
- Adjust votingBalance to only return
freeBalance
(only council voting is free + reserved) - Additional checks for referenced Vec sub-type deconstruction in typegen
- Allow for API
typesBundle
option to inject a group of chain versions types - Update metadata static tests for latest Substrate
@polkadot/util
3.0
v1.25.1
- Important Contract RPC result updated on Substrate, on older chains supply
ContractExecResult: 'ContractExecResultTo255'
- Support for custom HTTP headers in providers (Thanks to https://github.com/brad-larson)
- Update known types for Centrifuge (Thanks to https://github.com/philipstanislaus)
- Update API users with Registrar #1 (Thanks to https://github.com/chevdor)
- Raw/Bytes
toHuman()
displays utf-8 as available - Add fallback for
setImmediate
when not polyfilled - Update
NetworkState
reputation type forsystem_networkState
RPC - Update session progress calcs for Aura (cater for negative)
- Fix class prototype for (basically-deprecated) Linkage type
- Add Polkadot types for
purchase
pallet
v1.24.1
v1.23.1
- Small README typo fix (Thanks to https://github.com/woss)
- Add latest Substrate master types
- Adjust
<Codec>.toRawType()
to use registry name as available - Update
ProxyType
for Kusama, Polkadot & Westend withIdentityJudgement
- Validate number format (signed/unsigned) for number types
- Remove core codec dependencies on Base class (with proper TS encapsulation)
@polkadot/util
2.17
v1.22.1
- Important Substrate changed the treasury tip structure, on older chains supply
OpenTip: 'OpenTipTo225'
- Allow for
[u8; 33]
in U8aFixed (Thanks to https://github.com/akru) - Improve derive accountId -> accountIndex lookups (optimize entries queries)
- Vesting balance calculations via
derive.balances.all
has been updated for locks - Add derive for multi staking rewards with specified eras
@polkadot/util
2.16
v1.21.1
- Fix subscriptions never unsubscribing after the id swap in 1.18.1 (Thanks to https://github.com/dillu24 for testing iterations)
- Add support for
CheckMortality
signed extension (oldCheckEra
is now an alias) - Promise API will default to using
getStorage
on non-subscription calls, reducing RPC overhead - Optimize derive BN allocations, using in-place operators as applicable
- Add new substrate types for Babe EquivocationProof
- Adjust
Releases
enum to use a shared instance
v1.20.1
- Important RPC for
account_nextIndex
has been moved tosystem_accountNextIndex
(Aligning with Substrate as a primary alias) - Cleanup map entries support with only Substrate 2.0-era RPCs (as introduced)
- Add
system_dryRun
RPC - Optimize
derive.staking.queryMulti
retrievals with additional per-type batching - Add
derive.staking.waitingInfo
(same aselectedInfo
for waiting validators) - Adjust types & metadata for latest Substrate
@polkadot/util
2.15
v1.19.1
- Improve typing on
.entries()
queries (Thanks to https://github.com/monitz87) - Align metadata and types with latest Substrate
- Update Polkadot types for current evolution of parachains
- Allow for type aliasing on events (aligning with calls & queries)
v1.18.1
- Expand docs on node-template types (Thanks to https://github.com/g2udevelopment)
- Update contract fees to current impl. (Thanks to https://github.com/djuanit0x)
- Allow
Option
types in enum/Result type generation (Thanks to http://github.com/xlc) - Add
.entriesPaged
and.keysPaged
methods for state maps (https://github.com/monitz87) - Support for latest Polkadot CC1, Kusama, Westend & Substrate types
- Add types for new Substrate proxy module
- Adjust types for new Substrate (renamed) npos-elections module
Call
now exposesmethod
§ion
fields (aligned withtoHuman()
representation)- Cater for new Substrate string subscription ids (with backwards compatibility)
@polkadot/util
2.13