v3.0.1
Upgrade priority: Low. Recommended for the next Kusama/Polkadot upgrades due to additional types and those following chains following Substrate master closely.
Important While this package contains no external interface changes, it now compiles and ships both cjs and esm modules. This means that modern bundlers will have more information for tree-shaking available. Additionally when using Node with .mjs
extensions, the esm version imports will be used on recent Node versions. Adding an export map, as here, may have some impacts so a major semver bump is advised. There may be (small) dragons hiding in the dark corners...
Contributed:
- Injection of derives via typesBundle (Thanks to https://github.com/pr0fedt)
- Added derives for bounties (Thanks to https://github.com/krzysztof-jelski)
Changes:
- Build and expose both cjs and esm via exports map
- Inject RPC definitions for typesBundle, allowing per-spec configuration
- Added
query.<section>.<method>.sizeAt(hash, [...params])
for all storage - Add new Substrate consumed Weight types
- Expand
SessionKeys<n>
definitions (up to 9) - Cleanup circular
Type
<->Text
definitions - Cleanup circular
Metadata
<->TypeRegistry
imports - Update
@polkadot/util
to 5.0.1