Skip to content

Releases: polkadot-js/api

v6.5.2

26 Oct 06:04

Choose a tag to compare

Upgrade priority: Low. Recommended for users with .at queries on unknown blocks.

Changes:

  • Adjust toHuman on Call to return names & (not only) values
  • Allow for optional known RuntimeVersion to short-circuit api.at
  • Ensure Struct decodes fully on null input (equivalent to undefined & {})

v6.5.1

24 Oct 18:19

Choose a tag to compare

Upgrade priority: Low. Internal maintenance upgrades.

Contributed:

Changes:

  • Ecah module now exposes the Substrate-added palletVersion storage item
  • Adjust Websocket maxReceivedFrameSize under Node
  • TypeDef structures now contain the typeName from metadata v14 on fields
  • Fix browser bundle imports for xcm-mapping (move to types-known)
  • Expose all extracted type names in PortableRegistry
  • Adjust toJSON (Ascii) output detection on Raw
  • Adjust api.rpc.*.*.raw(..args) return to the actual over-the-wire JSON result
  • Remove api.rpc.*.*.json(..args) since it now overlaps with new .raw
  • Bump static metadata for latest Substrate, Polkadot & Kusama

v6.4.2

18 Oct 17:00

Choose a tag to compare

Upgrade priority: Low. Recommended for Westmint runtime 500+

Changes:

  • Ensure SignerPayload correctly serializes Option with None
  • Add Ethereum BlockV{0, 1, 2} types, aligning with latest Frontier
  • Additional tests for metadata serialization/de-serialization

v6.4.1

17 Oct 18:29

Choose a tag to compare

Upgrade priority: Low. Recommended for Kusama & Polkadot runtime 9110+

Changes:

  • Adjust Statemint known types for version 4+
  • Adjust balance derives to return multiple vesting schedules
  • Adjust crowdloan derives to use paged key retrieval
  • Ensure account indices (derived) are Accountindex types
  • Adjust metadata v14 to include top-level type field from metadata
  • Filter metadata v14 unused enum fields in TS generation
  • Adjust derives to use more metadata v14 types on returns
  • Add Kusama & Polkadot upgrade blocks for 9100/9110
  • Align contract usage with latrest PortableRegistry (remove old-generation)
  • Adjust contracts InstantiateReturnValue type (no rent projection after 267)
  • Adjust for eslint v8 checks
  • Don't run any online tests on CI by default (uncontrolled external dependencies)

v6.3.1

09 Oct 13:43

Choose a tag to compare

Upgrade priority: Low. Recommended for Kusama & Polkadot runtime 9100+

Changes:

  • Mark api.query.*.*.at as deprecated (use api.at)
  • Expose queryMulti, findError and findCall on api.at
  • Optimize parallel metadata retrieval/decoration
  • Rework derive .at to ensure no additional metadata calls
  • Adjust Xcm types for Kusama, Polkadot, Westend (V1 & V2 usage)
  • Fix Xcm Fungibility type
  • Add upgrade blocks for Westend
  • Prepare for v14 metadata swap in Kusama/Polkadot (9110 runtime)
  • Adjust metadata wilcard path matching (event extraction)
  • Bump static metadata for latest Substrate, Polkadot & Kusama

v6.2.1

04 Oct 08:36

Choose a tag to compare

Upgrade priority: Low. Maintenance updates.

Contributed:

Changes:

  • Extend error messages for malformed queryMulti inputs
  • Correctly handle non-map queries passed to queryMulti in map form
  • Use new metadata v14 lookup type in derive results
  • Adjust definitions to infer TS types in .multi queries
  • Fix TS lookup enum generation with nested Option & Tuple
  • Bump static metadata for latest Substrate, Polkadot & Kusama

v6.1.2

29 Sep 08:13

Choose a tag to compare

Upgrade priority: Low. Recommended for 6.x users using historic queries.

Changes:

  • Fix .at queries/decoration for pre-V13 metadata
  • Added BridgeMessageId & SpecVersion types for bridges
  • Added WrapperOpaque encoding/decoding (as per latest Substrate)
  • Bump static metadata for latest Substrate, Polkadot & Kusama

v6.1.1

27 Sep 05:55

Choose a tag to compare

Upgrade priority: Low. Minor maintenance changes from the 6.0.x versions.

Contributed:

Changes:

  • Add childstate_getStorageEntries RPC
  • Allow for scale-info v0 -> v1 conversion

v6.0.5

20 Sep 13:57

Choose a tag to compare

Upgrade priority: Low. Recommended for all users on 6.0.3 using api.query.*.*.at calls

Changes:

  • Revert cross-registry (now-inactive) change introduced in 6.0.3
  • Ensure Option is correctly imported for TS query generation

v6.0.4

20 Sep 09:12

Choose a tag to compare

Upgrade priority: Low. Recommended for all users on 6.0.3 using api.query.*.*.at calls

Changes:

  • api.query.<module>.<method>.at will now use at.at(<hash>)
  • Use and expose metadata/util/getSiName to get human type names