Skip to content

Releases: polkadot-js/api

v6.11.1

05 Dec 18:55

Choose a tag to compare

Upgrade priority: Low. Maintenance upgrade, tacking the latest @polkadot libraries.

Changes:

  • Align state_traceBlock RPC with Substrate
  • Bump static metadata for latest Substrate, Polkadot & Kusama

v6.10.3

30 Nov 14:18

Choose a tag to compare

Upgrade priority: Medium. Recommended for 6.10.x users

Changes:

  • Fix ss58Prefix extraction

v6.10.2

30 Nov 05:35

Choose a tag to compare

Upgrade priority: Low. Aligns TS augmentation and decoration with older behavior for ALL_CAPS identifiers.

Changes:

  • Adjust augmentation interface consistency with top-level declarations
  • Update @polkadot/util to 8.0.4 with adjusted stringCamelCase

v6.10.1

29 Nov 06:47

Choose a tag to compare

Upgrade priority: Low. Recommended for users of HttpProvider and for chains generating types using TS augmentation.

Changes:

  • Fix for HttpProvider init (RPC sections with only subscriptions)
  • Re-order imports in lookup type augmentation interfaces
  • Bump static metadata for latest Substrate, Polkadot & Kusama

v6.9.2

22 Nov 05:36

Choose a tag to compare

Upgrade priority: Medium. Pulls in @polkadot/util-crypto fix for TS projects.

Changes:

  • Update @polkadot/util-crypto with TS compilation work-around

v6.9.1

21 Nov 09:39

Choose a tag to compare

Upgrade priority: Medium. Recommended for metadata v14 parachains. For TS users, the package now support TypeScript 4.5.2 and allows extraction of user types from metadata v14.

Contributed:

Changes:

  • Adjust runtime *::{Call, Event} matching for metadata v14
  • Adjust derive decoration with (optional) known methods
  • Expose *{Call, Event, Error} TS types for metadata v14
  • Align Option .toJSON output with Substrate input
  • Optimize Enum, Struct, Option & Number decoding paths
  • Ajust PascalCase conversions with function from util
  • Prepare pre-v13 types for optional injection
  • Adjustments for TS 4.5.2 support (flatten type infers)

v6.8.1

11 Nov 11:17

Choose a tag to compare

Upgrade priority: Low. Recommended for chains with non-MultiSignature variants where paymentInfo is required.

Changes:

  • Adjust paymentInfo signatures to cater for non-MultiSignature variants
  • Remove ::generic:: from names & namespaces under metadata v14
  • Add Polkadot 9122 upgrade block
  • Cleanup Polkadot/Kusama/Westend/Rococo known types (>= v14 metadata)
  • Internal decorateMethod{Promise, Rx} renamed to to{Promise, Rx}Method
  • Add RPC provider-level LRU for historic requests
  • Add optional known runtime version param to internal rx.queryAt

v6.7.2

09 Nov 09:24

Choose a tag to compare

Upgrade priority: Low. Recommended for chains on metadata v14 with non-default Address implementations.

Changes:

  • Detect AccountId & Address types via SpRuntime* definitions
  • Adjust api-derive call ordering when using .queryAt

v6.7.1

07 Nov 09:22

Choose a tag to compare

Upgrade priority: Low. Internal maintenance updates, focussed on internal optimizations.

Changelog:

Changes:

  • Use new-gen voteLockingPeriod in democracy derives (as available)
  • Dynamically inject getters for Extrinsic payloads
  • Optimize caching for complex constructed type classes per registry
  • Convert metadata, rpc and api to use lazy decoration
  • Split u8a decoding paths for Vec (different from general path)
  • Keep track of initial u8a decoded length inside base Codecs
  • Extract multi property assignments for Struct, Set, Json & Enum
  • Move PortableRegistry location inside @polkadot/types/metadata
  • Bump static metadata for latest Substrate, Polkadot & Kusama

v6.6.1

01 Nov 16:30

Choose a tag to compare

Upgrade priority: Low. Internal maintennce updates.

Changes:

  • Fix construction for palletVersion keys with correct prefix
  • Add Polkadot EthereumAddress as a known PortableRegistry override
  • De-dupe PortableRegistry namespace splitting operations
  • Optimize internal AbstractArray & Struct u8a decoding
  • Shortcut Struct construction from Struct instance
  • Use internal lookupName in createClass (allows deeply recursive lookups)
  • Codec toHex() will now correctly return the TS HexString type
  • Update known upgrade blocks for Westend & Kusama
  • Bump static metadata for latest Substrate, Polkadot & Kusama