Skip to content

Releases: polkadot-js/api

v1.16.1

26 May 15:14
Compare
Choose a tag to compare
  • 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

23 May 09:54
Compare
Choose a tag to compare

v1.14.1

14 May 14:29
Compare
Choose a tag to compare
  • Important DispatchInfo changed paysFee 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 and CheckTxVersion signed extensions (with SignerPayload 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

06 May 18:34
Compare
Choose a tag to compare
  • 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

29 Apr 22:24
Compare
Choose a tag to compare
  • 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

21 Apr 08:19
Compare
Choose a tag to compare
  • Important Substrate master has an updated Weight (to u64), on older chains apply Weight: '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 of GenericDigest type
  • Support Fixed128 type
  • Add transactionVersion to RuntimeVersion struct
  • Enhance API support for non-subscription providers (skip subscription to runtimeVersion)
  • Adjust types for Kusama 1057 (notably the new StakingLedger)

v1.10.1

13 Apr 05:29
Compare
Choose a tag to compare
  • Important Substrate master has updated staking, on older chains apply StakingLedger: 'StakingLedgerTo240'
  • Add rpc.system.chainType to retrieve the chain type (Development. Local, Live & Custom)
  • Adjust types for Westend after the reset
  • Adjust democracy derives, including the support of the frame-scheduler for scheduled deployments
  • Allow staking derives to work with new staking payouts, specifically tx.staking.payoutStakers
  • Cleanups to derives for democracy & staking to be more performant
  • Add Centrifuge base types to @polkadot/types-known
  • Adjust with all the latest substrate master types
  • Internally all private/protected methods/variables are now _ prefixed (Aligning with the private/protected indicators in the TS definitions)
  • Update metadata/docs-from-metadata to the latest Substrate

v1.9.1

01 Apr 10:30
Compare
Choose a tag to compare
  • Breaking change (TypeScript with derives only) The return type names for api.derive.* have been adjusted for consistency, all starting with Derive* (previously a mixture of Derived* and Derive*)
  • Breaking change (derives only) Additional cleanups of democracy proposal & referenda derives, including support for new Polkadot/Substrate vote retrievals
  • Tx signing via signAndSend & signAsync now tries to use the last finalized block (depending on finalized drift)
  • Add support for api.rpc.childstate.* Substrate RPCs, older nodes with still populate api.rpc.state.* with the child methods
  • Adjust Error.message on RPC failures to not include the (already known) method signature
  • Split @polkadot/types/known into @polkadot/types-known, allowing for base API overrides
  • Extended api.derive.democracy to cater for dispatchQueue and externals
  • Extended api.derive.council to cater for new phragmen elections
  • Use new queryStorageAt for query .entries, removing unneeded subscriptions (use as available)
  • Fix BTreeSet initialization when it forms part of query interfaces
  • Fix encoding for Vec<u8>-related types as part of constants
  • Internal adjustment of interface type locations (no impact on imports via @polkadot/types/interfaces)

v1.8.1

22 Mar 18:00
Compare
Choose a tag to compare
  • Breaking change The format for any custom RPCs have been changed alongside API-internal changes to allow for better RPC management. If you are currently using custom RPCs (or planning to do so), look at the updated documentation
  • Breaking change Alongside API RPC changes, the @polkadot/jsonrpc package has been removed. Since it was never documented and only used internally, this should not have adverse impacts. All RPC definitions itself has now been moved to the relevant modules inside @polkadot/types/interfaces
  • Important Substrate has an updated democracy module. If using an older chain add the ReferendumInfo: 'ReferendumInfoTo239' type when using referendums
  • The isRetracted Extrinsic status is now a warning, not a fatal error, correctly aligning with Polkadot/Substrate
  • The Substrate extrinsic phase definitions has been expanded with Initialization to align with the latest versions
  • Add support for all known substrate RPC methods
  • Extend account derives to include status flags, e.g. isCouncil, isSudo, ...
  • Adjusted referendum derives to cater for bot new/old democracy. Derived referendumInfo now includes status field, not info
  • Add initWasm flag to API options, that when set to false does not init the WASM portion (leaving it to the user elsewhere)

v1.7.1

17 Mar 14:03
Compare
Choose a tag to compare
  • Important Current versions of Polkadot/Substrate have dropped support for linked maps on storage entries. If you are using these queries to retrieve all entries, for instance staking.{nominators,validators}() and using an upgraded chain, you need to swap to retrieving entries via .entries() or .keys() for the keys.
  • Pull in support and types for latest Polkadot/Substrate
  • Add support for the new Substrate state_getKeysPaged RPC, including use in storage keys
  • Move derive.staking.controllers to derive.staking.stashes, reflecting actual content
  • Cater for adjusted storage (non-linked mapped) for derive.staking.stashes queries (with old-compat)
  • Expanded derive.staking.* derives, including addition of derive.staking.own*
  • Re-add fixed (with tests) checks for query args, previously disabled in 1.6.2