Releases: polkadot-js/api
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
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
v6.11.1
v6.10.3
v6.10.2
v6.10.1
Upgrade priority: Low. Recommended for users of HttpProvider
and for chains generating types using TS augmentation.
Changes:
- Fix for HttpProvider init (RPC sections with only subscriptions)
- Re-order imports in lookup type augmentation interfaces
- Bump static metadata for latest Substrate, Polkadot & Kusama
v6.9.2
v6.9.1
Upgrade priority: Medium. Recommended for metadata v14 parachains. For TS users, the package now support TypeScript 4.5.2 and allows extraction of user types from metadata v14.
Contributed:
- Lookup TS generation for all metadata v14 chains (Thanks to https://github.com/savudani8)
- Update
BeefySignedCommitment
type (Thanks to https://github.com/czl1378)
Changes:
- Adjust runtime
*::{Call, Event}
matching for metadata v14 - Adjust derive decoration with (optional) known methods
- Expose
*{Call, Event, Error}
TS types for metadata v14 - Align Option
.toJSON
output with Substrate input - Optimize Enum, Struct, Option & Number decoding paths
- Ajust PascalCase conversions with function from util
- Prepare pre-v13 types for optional injection
- Adjustments for TS 4.5.2 support (flatten type infers)
v6.8.1
Upgrade priority: Low. Recommended for chains with non-MultiSignature variants where paymentInfo
is required.
Changes:
- Adjust
paymentInfo
signatures to cater for non-MultiSignature variants - Remove
::generic::
from names & namespaces under metadata v14 - Add Polkadot 9122 upgrade block
- Cleanup Polkadot/Kusama/Westend/Rococo known types (>= v14 metadata)
- Internal
decorateMethod{Promise, Rx}
renamed toto{Promise, Rx}Method
- Add RPC provider-level LRU for historic requests
- Add optional known runtime version param to internal
rx.queryAt