Skip to content

Releases: polkadot-js/api

v4.7.1

25 Apr 05:20

Choose a tag to compare

Upgrade priority: Low. Recommended for users following Substrate master.

Changes:

  • Adjust Struct decoding with better error messages on invalid input objects
  • Add support for new BoundedVec type
  • Expand Data type (as used in identity), with all is/as getters
  • Updated Xcm types (with Plularity)
  • Adjust DispatchError type as per current Substrate master
  • Adjusted Statemint Proxy type
  • Remove metadata generation dependency on well-known.json (dedupe)
  • Adjust WebSocket reconnection delay from 1s to 2.5s
  • Revert Beefy keys addition for Westend
  • Add explicit engines config to package.json
  • Support for None in RewardDestination
  • Align with latest substrate metadata

v4.6.2

19 Apr 10:49

Choose a tag to compare

Upgrade priority: Low.

Changes:

  • Correct Kusama/Polkadot runtime 30 session key definitions

v4.6.1

19 Apr 06:10

Choose a tag to compare

Upgrade priority: Low. Recommended if used in a Node.js 15.x environment.

Changes:

  • Assert keypair validity in signing operations
  • Expose internalError on submittable results (e.g. event decoding errors)
  • Simplify session derives for old/new
  • Add statemint to known types
  • Add support for rpc.beefy.subscribeJustifications
  • Update Xcm types
  • Explicitly handle isReadyOrError with Api.create
  • Add Kusama upgrade block for 2030

v4.5.1

12 Apr 06:39

Choose a tag to compare

Upgrade priority: Low. Recommended with usage with the Rococo testnet.

Changes:

  • Update parachain types as per latest Polkadot
  • Cater for Keys with BEEFY session keys
  • Update Keys injection to allow for on-chain type detection
  • Update Westend known upgrade points for runtime 50
  • Align types with latest Substrate master
  • Adjust keepalive system_health timer

v4.4.1

05 Apr 11:31

Choose a tag to compare

Upgrade priority: Low. Recommended with usage with the Rococo testnet.

Changes:

  • Add ServiceQuality type for Cumulus
  • Adjust XCM MultiLocation type (X5 to X8 junctions)
  • Add Polkadot 29 upgrade block

v4.3.1

29 Mar 12:13

Choose a tag to compare

Upgrade priority: Low.

Contributed:

Changes:

  • Warn on usage of deprecated contract interfaces
  • Update ParaInfo type
  • Council should be optional in treasury derives
  • Allow extraction of session derives indexes with no staking

v4.2.1

22 Mar 08:52

Choose a tag to compare

Upgrade priority: Low. Recommended when tracking the latest updates from Substrate.

Contributed:

Changes:

  • Adjust Extender{Header, SignedBlock} types to ensure at-block Header types are used
  • Explicit definition for new Rococo triple refcount AccountData types
  • Convert metadata private class fields to ES-private
  • Adjust SignedBlock type for new justifications field
  • Optimize society derive for multi accounts
  • Bump metadata to latest substrate version

v4.1.1

15 Mar 12:26

Choose a tag to compare

Upgrade priority: Low. Recommended when tracking the latest updates from Substrate.

Changes:

  • Fix author extraction for last block in a session
  • Expand SignerPayload to inject/expose custom signed extensions
  • ConsensusEngineId formats non-Ascii engines correctly
  • Allow getBlock/Header derives to use as-at registry (instead of latest)
  • Cleanup RpcCore augmentation (removing TS warnings on typegen chains)
  • Add upgrade block for Kusama 2029
  • Ensure that type alias overrides also apply to map keys
  • Check type generation against fallbacks (build-time only sanity check)
  • Add mmr_generateProof RPC
  • Align types with latest substrate master
  • Apply latest Polkadot auctions/crowdloan/parachains/slots types

v4.0.3

08 Mar 21:24

Choose a tag to compare

Upgrade priority: Low. Recommended if you use the API to sync the full chain, most notably Polkadot.

Contributed:

v4.0.2

08 Mar 14:34

Choose a tag to compare

Upgrade priority: High. Required if you are using 4.0.1 in a Node.js environment.

Changes:

  • Fix import from @polkadot/x-rxjs in Node environments (From common)
  • Add correct types for Phase is new validator elections module