Releases: polkadot-js/api
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
PortableRegistrytypes on runtime upgrade - Clear warning for
Call/Eventon non-meta v14 runtimes - Add
beefy_getFinalizedHeadRPC 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
.rawRPC calls (Thanks to https://github.com/r0t0r-r0t0r)
Changes:
- Adjust extraction of
Call&Eventtypes for metadata v14 - Adjust historic
WinningDataandSlotRangetypes (36-entry variant) - Emit
decoratedevent on API on metadata decoration - Dedupe and extend
WrapperKeepOpaque/WrapperOpaque - Align
Range/RangeInclusiveusage with similar types - Adjust bounty derive, return empty on no
{treasury, bounties}.bounties - Ensure handling of all
TypeDefInfokeys 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
Registryconsistency, augment extensions - Add
.multisupport 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/RangeInclusivevariant 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/utilto 8.3.2
v7.3.1
Upgrade priority: Low. Maintenance upgrade, tracking the latest @polkadot libraries.
Changes:
- Extend support for
WrapperKeepOpaquewith internal decoding (allowed to fail) - Adjust max-entries in historic provider LRU
- Update to latest Substrate/Polkadot/Kusama metadata
- Update
@polkadot/utilto 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
ReturnFlagsto 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
storageDepositLimiton contract options (Thanks to https://github.com/kwingram25)
Changes:
- Expose
@polkadot/api-augment/{kusama, polkadot, substrate}for specific augmentations (The bare@polkadot/api-augmentis equivalent to/substrate, keeping the existing behavior) - Expose
@polkadot/types-augment/{lookup, registry}variants (The bare@polkadot/types-augmentapplies both) - Expose
txHashon submittable results, e.g.tx.signAndSend(..., ({ txHash }) => ...) - Align casing for TS & exposed queries (adjusts for
ALLCAPSentries) - Additional tests for
Optioncodec (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
dispathchQueuederive to align with latest Substrate - Update to latest Substrate metadata
v7.0.1
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:
- Add contracts storage deposit support (Thanks to https://github.com/statictype)
- Do not throw error on socket closes (Thanks to https://github.com/xcaptain)
Changes:
- Split
@polkadot/types-{codec, create}packages fromtypes - 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
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
CheckNonZeroSendersigned 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