Skip to content

Releases: polkadot-js/api

v7.9.1

20 Feb 15:36
Compare
Choose a tag to compare

Contributed:

Changes:

  • Align grandpa_proveFinality with Substrate
  • Allow for derive augmentation (swap base type to interfaces)
  • Kusama 9160 upgrade block
  • Update to latest Substrate, Kusama & Polkadot static metadata

v7.8.1

14 Feb 13:06
Compare
Choose a tag to compare

Contributed:

Changes:

  • Adjust map header output type with lookup id
  • Re-enable all BitVec tests for toU8a
  • Expose txIndex as event index on extrinsic results
  • Allow inspection of Codec encoding (experimental)
  • Allow inspection of storage key encoding (experimental)
  • Update to latest Substrate, Kusama & Polkadot static metadata
  • Update @polkadot/util to 8.4.1

v7.7.1

06 Feb 07:36
Compare
Choose a tag to compare

Upgrade priority: Low. Recommended for users with long-running scripts.

Contributed:

Changes:

  • Don't warn on Lookup* types missing (these are resolvable)
  • Don't clear injected PortableRegistry types on runtime upgrade
  • Clear warning for Call/Event on non-meta v14 runtimes
  • Add beefy_getFinalizedHead RPC support
  • Update to latest Substrate, Kusama & Polkadot static metadata

v7.6.1

30 Jan 05:34
Compare
Choose a tag to compare

Upgdare priority: Low. Recommended for users with long-running scripts and those chains based around the latest Substrate master versions.

Contributed:

Changes:

  • Adjust extraction of Call & Event types for metadata v14
  • Adjust historic WinningData and SlotRange types (36-entry variant)
  • Emit decorated event on API on metadata decoration
  • Dedupe and extend WrapperKeepOpaque/WrapperOpaque
  • Align Range/RangeInclusive usage with similar types
  • Adjust bounty derive, return empty on no {treasury, bounties}.bounties
  • Ensure handling of all TypeDefInfo keys in extraction
  • Add support for rpc.contracts.uploadCode
  • Workaround for generators where #private = { this... } yields undefined
  • Update to latest Substrate, Kusama & Polkadot static metadata

v7.5.1

23 Jan 07:37
Compare
Choose a tag to compare

Upgrade priority: Low. Recommended for users of the latest contract pallet and ink! versions.

Contributed:

Changes:

  • Adjust Registry consistency, augment extensions
  • Add .multi support on api.at(...).<section>.<method>
  • Add support for ink! metadata V3 with payable constructors
  • Cleanup ink! metadata parsing, allowing for easier extension
  • Expose contract.{query, tx}.<method>.meta, aligning with API
  • Fix storage metadata, aligning method with decorated name
  • Adjust typegen, only using exportInterface
  • Added Kusama/Polkadot 9151 upgrade block (known types)
  • Update to latest Substrate, Kusama & Polkadot static metadata

v7.4.1

15 Jan 19:18
Compare
Choose a tag to compare

Upgrade priority: Medium. Required for all chains using Range and RangeInclusive types. Also includes better error handling for number conversions.

Changes:

  • Asserts for invalid number format inputs (MAX_SAFE_INTEGER, float)
  • Ensure Range/RangeInclusive variant check does not fail on encoding
  • Ensure non-option calls in api-contract are marked as @deprecated
  • Added Kusama 9150 upgrade block (known types)
  • Update @polkadot/util to 8.3.2

v7.3.1

09 Jan 16:10
Compare
Choose a tag to compare

Upgrade priority: Low. Maintenance upgrade, tracking the latest @polkadot libraries.

Changes:

  • Extend support for WrapperKeepOpaque with internal decoding (allowed to fail)
  • Adjust max-entries in historic provider LRU
  • Update to latest Substrate/Polkadot/Kusama metadata
  • Update @polkadot/util to 8.3.1
  • Update package paths under ESM

v7.2.1

03 Jan 07:30
Compare
Choose a tag to compare

Upgrade priority: Low. Recommended for users generating TS chain-specific augmentations.

Changes:

  • Convert contract ReturnFlags to set (as opposed to bare u32)
  • Adjust chain-specific augmentation to not auto-add RPC imports
  • Ensure package path is availble under ESM & CJS

v7.1.1

26 Dec 08:45
Compare
Choose a tag to compare

Upgrade priority: Low. Recommended for users of contracts form Substrate master & Polkador/Kusama TS app developers where specific chain augmentation would be helpful.

Contributed:

Changes:

  • Expose @polkadot/api-augment/{kusama, polkadot, substrate} for specific augmentations (The bare @polkadot/api-augment is equivalent to /substrate, keeping the existing behavior)
  • Expose @polkadot/types-augment/{lookup, registry} variants (The bare @polkadot/types-augment applies both)
  • Expose txHash on submittable results, e.g. tx.signAndSend(..., ({ txHash }) => ...)
  • Align casing for TS & exposed queries (adjusts for ALLCAPS entries)
  • Additional tests for Option codec (explicit in expectations)
  • Update to latest Substrate, Kusama & Polkadot static metadata

v7.0.2

21 Dec 08:43
Compare
Choose a tag to compare

Upgrade priority: Low. Recommended for applications where collective derives with aliasses are being used.

Changes:

  • Fix alias module mapping in collective derives
  • Update dispathchQueue derive to align with latest Substrate
  • Update to latest Substrate metadata