v4.0.1
Upgrade priority: Low. Recommended for users wanting to keep updated with chain changes.
Important In the 4.0 version the default package type has been changed to ESM modules by default. This should not affect usage, however since the output formats changed, a new major version is required.
Contributed:
- Expose
unknownTypeson the registry interface (Thanks to https://github.com/ii-ii-ii)
Changes:
- Build to ESM by default (with cjs versions via export map)
- Enum
.toSON()now encodes all keys ascamelCase(aligning with the output from Substrate) - Add
createdAtHash?: HashtoCodecinterface (filled-in by storage retrievals) - Expose the source hash as
wamHashon Abi parsed instances - Use
parentHashwhen creating mortal era (handles frequent forks better) - Add
AccountInfoWithTripleRefCountto cater for latest Substrate - Add upgrade block for Westend 49