Skip to content

Releases: polkadot-js/api

v7.0.1

20 Dec 10:02
Compare
Choose a tag to compare

Upgrade priority: Low. Recommended for TS users with their own non-Polkadot/Kusama chains.

  • Breaking changes For TS users the default API augmentation is now optional. This means that the API, for TypeScript, is not decorated by default with the Substrate types and endpoints. TS users should add a singular import '@polkadot/api-augment'; in their code to restore old behavior. A full writeup of the rationale and other options can be found in the FAQ

  • Breaking change To cater for the above, chain-specific interfaces generated with older versions may not be compatible with the current version of the API. Additionally, TS interfaces generated with this version of the API is not compatible with older API versions.

Contributed:

Changes:

  • Split @polkadot/types-{codec, create} packages from types
  • Extract @polkadot/{api, rpc, types}-augment (now optional, TS-user applied)
  • Rework build steps to use TS project references
  • Add Polkadot 9140 upgrade block
  • Update to latest Substrate, Kusama & Polkadot static metadata

v6.12.1

13 Dec 09:08
Compare
Choose a tag to compare

Upgrade priority: Low. Recommended for users of contracts on the current Substrate master version and TS users who generate metadata v14 interfaces.

Changes:

  • Add support for contracts V2 ABI metadata
  • CheckNonZeroSender signed extension support
  • Remove old-style capabilities detection (unneeded with metadata v14+)
  • Generated TS Enum interfaces now expose the type (with allowed values)
  • Split local & package imports in generated TS interfaces
  • Add Kusama 9130 upgrade block
  • Internal maintainability cleanups

v6.11.1

05 Dec 18:55
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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