Releases: polkadot-js/api
Releases · polkadot-js/api
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
v1.17.2
v1.17.1
- Fix
ElectionSize
type (Thanks to https://github.com/arjanz) - Allow
BTreeSet
decoding from Array/JSON inputs - Adjust Call-only metadata output to trim documentation to first full line
- Safeguard against divide-by-zero for total era points (expired reward eras)
- Internal derive optimizations with combining calls
- Support for latest Substrate types & metadata
@polkadot/util
2.12
v1.16.1
- Support for Polkadot CC1 types & signed extensions
- Add support for Babe VRF secondary digests (author extraction)
- Adjust
Perbill/Permill
toHuman()
formatting to output percentage - Support for latest Substrate types & metadata
- Update to latest TypeScript, eslint & typescript-eslint
@polkadot/util
2.11
v1.15.1
- Adjust
keyPrefix()
with DoubleMap args (Thanks to https://github.com/KiChjang) - Added
WeightToFeeCoefficient
type (Thanks to https://github.com/danforbes) - Spelling fixes for console logs (Thanks to https://github.com/JoshOrndorff)
- Spelling fixes in cookbook (Thanks to https://github.com/pawelnguyen)
- Add
transactionVersion
getter in payloads (Thanks to https://github.com/amaurymartiny) - Adjust
stakerRewards
derive ordering for improved on-payout refreshes - Baseline implementation for derive caching infrastructure
- Adjust
Multiplier
type toFixed128
(as per latest Substrate) - Updated to latest Substrate metadata & add new types
v1.14.1
- Important
DispatchInfo
changedpaysFee
to an enum, if using an older version use,DispatchInfo: 'DispatchInfoTo244'
- Align imOnline
Heartbeat
with Substrate (Thanks to https://github.com/arjanz) - Adust EVM types to include
Vicinity
(Thanks to https://github.com/drewstone) - Add
derive.democracy.locks
to return extended lock info based on votes - Ensure metadata is only requested once upon startup (bypass on upgrade subscriptions)
- Expand testing around
ExtrinsicEra
construction - Expand
Registry
to direct access to available signed extensions (in addition to exposed types) - Cater for new
CheckSpecVersion
andCheckTxVersion
signed extensions (withSignerPayload
adjustments) - Cater for new
PrevalidateAttests
signed extensions (Polkadot claims) - Don't re-calculate submittable extrinsic hash on status checks (optimization)
- Support for both old/new Tuples in
democracy.depositOf
in derives - Fix democracy
ProxyState
types - Extends types for Polkadot claims
- Update
@polkadot/util
to 2.10
v1.13.1
- Add support for ECDSA keypairs in extrinsic signers (Thanks to https://github.com/akru)
- Rework type generation to use templating for better maintenance (Thanks to https://github.com/xlc)
- Adjust extrinsic
sign/signAsync
signature to optional options (Thanks to https://github.com/KiChjang) - Support round-robin endpoints in the
WsProvider
with array of urls (Thanks to https://github.com/hoani) - Remove static test-only metadata for Polkadot dev chains (not updated regularly, Substrate dev to remain)
- Revert error swallow for wrong preimage data (temp. override for Kusama upgrade with no migration)
- Fix
.encodedLength
calculation on[Type; N]
types - Add new
rpc.grandpa.roundState
RPC - Update types & metadata as per latest Substrate master
- Adjust Centrifuge starting version
v1.12.1
- Fix
CompactAssignments
types (Thanks to https://github.com/arjanz) - Provider ayo-connect now allows for interval config (Thanks to https://github.com/jnaviask)
- Cleanup generation for c-like enums (Thanks to https://github.com/monitz87)
- Allow subscription to all storage keys, alignment with Substrate (Thanks to https://github.com/xlc)
- Cater for vote delegations in democracy derives
- Cleanup account derive flags where to allow for optional council modules
- Allow generic types in ApiPromise.combineLatest
- Update to latest substrate metadata
v1.11.1
- Important Substrate master has an updated
Weight
(tou64
), on older chains applyWeight: 'u32'
(This does affect event decoding if wrongly set) - Allow user type augmentation to work with different versions of rxjs (Thanks to https://github.com/monitz87)
- Align augmented generation with camelCase (Thanks to https://github.com/monitz87)
- Fix bitfield endian encoding (Thanks to investigation by https://github.com/xlc)
- Add account flag derives via
accounts.flags(accountId)
(Thanks to https://github.com/kwingram25) - Fix entries decoding for
Option<Number>
(& simplify, decoding correctly on rpc layer) - Add
system.{localPeerId, localListenAddresses}
&state.getReadProof
RPCs - Ensure proper propagation of
api.runtimeVersion
(used for signing) after upgrade - Field ordering fix for deprecated
Linkage
(used in linked maps) derive.account.info
now returns all field enum types decoded (not only raw)- Add banner with FAQ entries for node-template to aid with common issues
Digest
has been moved to definitions, removal ofGenericDigest
type- Support
Fixed128
type - Add
transactionVersion
toRuntimeVersion
struct - Enhance API support for non-subscription providers (skip subscription to runtimeVersion)
- Adjust types for Kusama 1057 (notably the new
StakingLedger
)