Skip to content

v7.0.1

Compare
Choose a tag to compare
@jacogr jacogr released this 20 Dec 10:02

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