Skip to content

Releases: polkadot-js/api

v7.7.1

06 Feb 07:36

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

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

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

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

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

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

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

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

v7.0.1

20 Dec 10:02

Choose a tag to compare

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:

Changes:

  • Split @polkadot/types-{codec, create} packages from types
  • 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

v6.12.1

13 Dec 09:08

Choose a tag to compare

Upgrade priority: Low. Recommended for users of contracts on the current Substrate master version and TS users who generate metadata v14 interfaces.

Changes:

  • Add support for contracts V2 ABI metadata
  • CheckNonZeroSender signed extension support
  • Remove old-style capabilities detection (unneeded with metadata v14+)
  • Generated TS Enum interfaces now expose the type (with allowed values)
  • Split local & package imports in generated TS interfaces
  • Add Kusama 9130 upgrade block
  • Internal maintainability cleanups