Releases: polkadot-js/api
v7.9.1
Contributed:
- Support historic queries via blockNumber (Thanks to https://github.com/stwiname)
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
Contributed:
- Add
isHistoric
flag to ETH RPCs (Thanks to https://github.com/stwiname) - Align contract instantiate types with Substrate (Thanks to https://github.com/kwingram25)
Changes:
- Adjust map header output type with lookup id
- Re-enable all
BitVec
tests fortoU8a
- 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
Upgrade priority: Low. Recommended for users with long-running scripts.
Contributed:
- Fix rpc-provider LRU memory leak (Thanks to https://github.com/gdethier)
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
Upgdare priority: Low. Recommended for users with long-running scripts and those chains based around the latest Substrate master versions.
Contributed:
- Fix memory leak on
.raw
RPC calls (Thanks to https://github.com/r0t0r-r0t0r)
Changes:
- Adjust extraction of
Call
&Event
types for metadata v14 - Adjust historic
WinningData
andSlotRange
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
Upgrade priority: Low. Recommended for users of the latest contract pallet and ink! versions.
Contributed:
- Add additional namespaced contract tests (Thanks to https://github.com/VargSupercolony)
Changes:
- Adjust
Registry
consistency, augment extensions - Add
.multi
support onapi.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
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
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
Upgrade priority: Low. Recommended for users generating TS chain-specific augmentations.
Changes:
- Convert contract
ReturnFlags
to set (as opposed to bareu32
) - Adjust chain-specific augmentation to not auto-add RPC imports
- Ensure package path is availble under ESM & CJS
v7.1.1
Upgrade priority: Low. Recommended for users of contracts form Substrate master & Polkador/Kusama TS app developers where specific chain augmentation would be helpful.
Contributed:
- Expose
storageDepositLimit
on contract options (Thanks to https://github.com/kwingram25)
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
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