Releases: polkadot-js/api
Releases · polkadot-js/api
v9.3.1
v9.2.4
v9.2.3
Contributed:
- Update
@substrate/connectto latest (Thanks to https://github.com/wirednkod)
Changes:
- Adjust
StakingLedgerwith fallback for Kusama 1050 (2 different structures on-chain) - Remove
TryRuntimestate call definitions (only off-chain usage) - Update to latest Substrate, Polkadot & Kusama metadata
v9.2.2
v9.2.1
- Important If using
import { WellKnownChain } from '@polkadot/rpc-provider'it is recommended that you rather useScProvider.WellKnownChain(the import may be dropped in a future major version)
Changes:
- Don't assume non-empty path specifiers on portable variant/composites
- Explicit param length checks for all generic portable overrides
- Re-export
ScProviderin@polkadot/api, aligning with{Http, Ws}Provider - Expose
WellKnownChainas static onScProvider.WellKnownChain - Checks for non-available interface types & runtime/rpc definitions
- Ensure
.entries/.keysarguments is less than map-entry query - Add Polkadot 9260 upgrade block
- Add Westend 9271 upgrade block
- Update to latest Substrate metadata
v9.1.1
Contributed:
- Update
@substrate/connectto latest (Thanks to https://github.com/wirednkod) - Handle both string and object keys in
CodecMap(Thanks to https://github.com/CertainLach)
Changes:
- Add
noInitWarn: booleanflag to API options, disabling runtime & RPC warnings - Only log missing runtime calls on new (detected) specVersion
- Add shallow/one-blockHash cache for
api.at(...)instances - Add Westend 9270 upgrade block
- Update to latest Substrate, Polkadot & Kusama metadata
v9.0.1
- Breaking change The decorated field getters on
Structwere moved to the prototype class for performance reasons. Whilestruct.<field>access still behaves in the same way, with the same results, this does mean that the prototype getters are not visible when doing anObject.keys(struct)or when doing an object spread. - Breaking change Deprecated interfaces have been removed including
tx.sign(...)(usesignAsync),Result.{is, as}Error(use{is, as}Err) as well as storage.range(...)operations. - Breaking change Deprecated interfaces on
api-contracthave been removed. Always ensure you pass an options object to construction and query methods. - Breaking change Contracts access via
api-contractwill now detect the usage ofstorageDepositLimitin params, if not available the contract interfaces will not be decorated.
Changes:
- Decorate
Struct/Enum/Setfield getters on class prototypes - Convert
api-contractusage ofapi.rpc.*toapi.call.* - Drop support for contract runtimes without
storageDepositLimit(runtimecontractsApionly has support for latest) - Export
api.rx.call.*for internal usage (derive, contracts) - Remove old-style param passing as opposed to options in
api-contract - Support for alliance/motion collective derives
- Add Kusama 9260 upgrade block
- Add Polkadot 9230 & 9250 upgrade blocks
- Add Westend 9251, 9260 & 9261 upgrade blocks
- Update to latest Substrate, Polkadot & Kusama metadata
v8.14.1
Contributed:
- Update
@substrate/connectwith dual ESM/CJS support (Thanks to https://github.com/wirednkod)
Changes:
{BTree|Hash}Map.toHuman()now displayRawkeys as ascii (if detected)- Add
toPrimitive()to all baseCodecinterfaces (string/boolean/number) - Adjust metadata conversion with
objectSpread(where missing) - Support for
TransactionPaymentCallApiruntime interface - Check
registry.getModuleInstancesagainst metadata paths (fallback) - Update to
@polkadot/util10.1.1 - Update to latest Kusama metadata (Substrate & Polkadot are current)
v8.13.1
Changes:
- Add
derive.chain.subscribeFinalized{Heads, Blocks}which returns all finalized, no skips - Support Moonbeam author extraction on
derive.chain.*(w/ shared logic dedupe) - Cater for older
BlockBuilder 2/3/4&GrandpaApi 2runtime interface definitions - Support for
NominationPoolsApiruntime interface - Support for
DebugRuntimeApiruntime interface, Frontier-specific - Support for
NimbusApiruntime interface (& olderAuthorFilterAPI) - Add additional historic
DispatchErrorenum variant for asset chains - Add Kusama 9250 upgrade block
- Update to latest Substrate, Polkadot & Kusama metadata