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:
- Add contracts storage deposit support (Thanks to https://github.com/statictype)
- Do not throw error on socket closes (Thanks to https://github.com/xcaptain)
Changes:
- Split
@polkadot/types-{codec, create}
packages fromtypes
- 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