github polkadot-js/api v3.0.1

latest releases: v11.0.3, v11.0.2, v11.0.1...
3 years ago

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:

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

Don't miss a new api release

NewReleases is sending notifications on new releases.