+11
-10
@@ -1,11 +1,11 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 1.32.0-beta.x
|
||||
## 1.32.1 Sep 7, 2020
|
||||
|
||||
Upgrade priority: Low. However with the changes to connect/disconnect behavior, if using this to tracks state mnually inside your application an upgrade is recommended.
|
||||
Upgrade priority: Low. Recommended when manually using provider connect/disconnect or using multiple instances in a single process.
|
||||
|
||||
- **Breaking change** Previously `isReady` could throw and error, now it will always succeed on connection. For trapping errors, use the `.isReadyOrError` variant on the API
|
||||
- **Breaking change** The `isConnected` provider interface is now a getter, previous calls to `provider.isConnected()` should now be done via `provider.isConnected`. Likewise the `provider.disconnect()` is now async returning a Promises to complete alignment of intent.
|
||||
- **Breaking change** Previously `.isReady` could throw an error, now it will always succeed on connection. For trapping errors, use the `.isReadyOrError` variant on the API
|
||||
- **Breaking change** The `isConnected` provider interface is now a getter, replacing previous calls to `provider.isConnected()`. Additionally the `provider.disconnect()` is now async, aligning with `.connect()`.
|
||||
|
||||
Contributed:
|
||||
|
||||
@@ -14,18 +14,19 @@ Contributed:
|
||||
|
||||
Changes:
|
||||
|
||||
- Adjust memoization to work on a per-instance basis, instance shared between API and Provider instances
|
||||
- Adjust memoization to work on a per-instance basis, with no contamination between multiple api/provider instances
|
||||
- Added `derive.chain.getBlock(hash)` to retrieve a `SignedBlock` extended with an `.author` (same as `derive.chain.getHeader(...)`)
|
||||
- Added `api.{connect, disconnect}()` as well as `isConnected` interfaces. The first functions returning `Promise<void>`
|
||||
- Error on provider connections will now emit and error (as expected) via the event emitter
|
||||
- Add `api.derive.accounts.accountId` to perform AccountId lookups (from indices or actual AccountId)
|
||||
- Added `api.{connect, disconnect}()` as well as `isConnected` interfaces. The first functions async returning `Promise<void>`
|
||||
- Error on provider connections will now emit all (as expected) via the event emitter
|
||||
- Ensure that initial connection failures always retry (when using auto-connection management)
|
||||
- The `api.derive.staking.query/queryMulti` no longer retrieves session keys (can be done via `.keys/keysMulti`)
|
||||
- Add `api.derive.accounts.accountId` to perform AccountId lookups (from indices or actual AccountId)
|
||||
- Lessen load of `paymentInfo` queries to only use accounId mappings as available
|
||||
- Adjust staking derives to cater for early Substrate 2.0 chains (optional/non-optional EraIndexes)
|
||||
- Cater for the handling of nested aliased types, e.g. wrapped inside Vec or Tuple
|
||||
- Add the support for the `grandpa_subscribeJustifications` RPC
|
||||
- Adjust `Call.toHuman()` to remove more technical internal details
|
||||
- static metadata & tests updated for the latest substrate master
|
||||
- Adjust `Call.toHuman()` to remove decoding-related technical internal details
|
||||
- Static metadata & tests updated for the latest substrate master
|
||||
- `toHuman()` & `.toBigInt()` has been explicitly added to the API documentation
|
||||
- Adjust known types for latest Kusama network state
|
||||
|
||||
|
||||
+1
-1
@@ -9,5 +9,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "1.32.0-beta.25"
|
||||
"version": "1.32.0"
|
||||
}
|
||||
|
||||
+1
-1
@@ -38,5 +38,5 @@
|
||||
"typedoc-plugin-markdown": "^2.4.2",
|
||||
"typedoc-plugin-no-inherit": "^1.1.10"
|
||||
},
|
||||
"version": "1.32.0-beta.25"
|
||||
"version": "1.32.0"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-contract",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "Interfaces for interacting with contracts and contract ABIs",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,9 +27,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/api": "1.32.0-beta.25",
|
||||
"@polkadot/rpc-core": "1.32.0-beta.25",
|
||||
"@polkadot/types": "1.32.0-beta.25",
|
||||
"@polkadot/api": "1.32.0",
|
||||
"@polkadot/rpc-core": "1.32.0",
|
||||
"@polkadot/types": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"bn.js": "^5.1.3",
|
||||
"rxjs": "^6.6.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api-derive",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -28,10 +28,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/api": "1.32.0-beta.25",
|
||||
"@polkadot/rpc-core": "1.32.0-beta.25",
|
||||
"@polkadot/rpc-provider": "1.32.0-beta.25",
|
||||
"@polkadot/types": "1.32.0-beta.25",
|
||||
"@polkadot/api": "1.32.0",
|
||||
"@polkadot/rpc-core": "1.32.0",
|
||||
"@polkadot/rpc-provider": "1.32.0",
|
||||
"@polkadot/types": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"@polkadot/util-crypto": "^3.4.1",
|
||||
"bn.js": "^5.1.3",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/api",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,13 +27,13 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/api-derive": "1.32.0-beta.25",
|
||||
"@polkadot/api-derive": "1.32.0",
|
||||
"@polkadot/keyring": "^3.4.1",
|
||||
"@polkadot/metadata": "1.32.0-beta.25",
|
||||
"@polkadot/rpc-core": "1.32.0-beta.25",
|
||||
"@polkadot/rpc-provider": "1.32.0-beta.25",
|
||||
"@polkadot/types": "1.32.0-beta.25",
|
||||
"@polkadot/types-known": "1.32.0-beta.25",
|
||||
"@polkadot/metadata": "1.32.0",
|
||||
"@polkadot/rpc-core": "1.32.0",
|
||||
"@polkadot/rpc-provider": "1.32.0",
|
||||
"@polkadot/types": "1.32.0",
|
||||
"@polkadot/types-known": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"@polkadot/util-crypto": "^3.4.1",
|
||||
"bn.js": "^5.1.3",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/metadata",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "Helpers to extract information from runtime metadata",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
@@ -27,8 +27,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/types": "1.32.0-beta.25",
|
||||
"@polkadot/types-known": "1.32.0-beta.25",
|
||||
"@polkadot/types": "1.32.0",
|
||||
"@polkadot/types-known": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"@polkadot/util-crypto": "^3.4.1",
|
||||
"bn.js": "^5.1.3"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-core",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,9 +27,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/metadata": "1.32.0-beta.25",
|
||||
"@polkadot/rpc-provider": "1.32.0-beta.25",
|
||||
"@polkadot/types": "1.32.0-beta.25",
|
||||
"@polkadot/metadata": "1.32.0",
|
||||
"@polkadot/rpc-provider": "1.32.0",
|
||||
"@polkadot/types": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"memoizee": "^0.4.14",
|
||||
"rxjs": "^6.6.2"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/rpc-provider",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "Transport providers for the API",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,8 +27,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/metadata": "1.32.0-beta.25",
|
||||
"@polkadot/types": "1.32.0-beta.25",
|
||||
"@polkadot/metadata": "1.32.0",
|
||||
"@polkadot/types": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"@polkadot/util-crypto": "^3.4.1",
|
||||
"bn.js": "^5.1.3",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/typegen",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "Type generation scripts",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
@@ -36,10 +36,10 @@
|
||||
"@babel/core": "^7.11.6",
|
||||
"@babel/register": "^7.11.5",
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/api": "1.32.0-beta.25",
|
||||
"@polkadot/metadata": "1.32.0-beta.25",
|
||||
"@polkadot/rpc-provider": "1.32.0-beta.25",
|
||||
"@polkadot/types": "1.32.0-beta.25",
|
||||
"@polkadot/api": "1.32.0",
|
||||
"@polkadot/metadata": "1.32.0",
|
||||
"@polkadot/rpc-provider": "1.32.0",
|
||||
"@polkadot/types": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"handlebars": "^4.7.6",
|
||||
"websocket": "^1.0.32",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types-known",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,7 +27,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/types": "1.32.0-beta.25",
|
||||
"@polkadot/types": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"bn.js": "^5.1.3"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/types",
|
||||
"version": "1.32.0-beta.25",
|
||||
"version": "1.32.0",
|
||||
"description": "Implementation of the Parity codec",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -27,7 +27,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/metadata": "1.32.0-beta.25",
|
||||
"@polkadot/metadata": "1.32.0",
|
||||
"@polkadot/util": "^3.4.1",
|
||||
"@polkadot/util-crypto": "^3.4.1",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
|
||||
@@ -2779,25 +2779,25 @@ __metadata:
|
||||
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/api": 1.32.0-beta.25
|
||||
"@polkadot/rpc-core": 1.32.0-beta.25
|
||||
"@polkadot/types": 1.32.0-beta.25
|
||||
"@polkadot/api": 1.32.0
|
||||
"@polkadot/rpc-core": 1.32.0
|
||||
"@polkadot/types": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
bn.js: ^5.1.3
|
||||
rxjs: ^6.6.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api-derive@1.32.0-beta.25, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
"@polkadot/api-derive@1.32.0, @polkadot/api-derive@workspace:packages/api-derive":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api-derive@workspace:packages/api-derive"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/api": 1.32.0-beta.25
|
||||
"@polkadot/api": 1.32.0
|
||||
"@polkadot/keyring": ^3.4.1
|
||||
"@polkadot/rpc-core": 1.32.0-beta.25
|
||||
"@polkadot/rpc-provider": 1.32.0-beta.25
|
||||
"@polkadot/types": 1.32.0-beta.25
|
||||
"@polkadot/rpc-core": 1.32.0
|
||||
"@polkadot/rpc-provider": 1.32.0
|
||||
"@polkadot/types": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
"@polkadot/util-crypto": ^3.4.1
|
||||
bn.js: ^5.1.3
|
||||
@@ -2806,18 +2806,18 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/api@1.32.0-beta.25, @polkadot/api@workspace:packages/api":
|
||||
"@polkadot/api@1.32.0, @polkadot/api@workspace:packages/api":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/api@workspace:packages/api"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/api-derive": 1.32.0-beta.25
|
||||
"@polkadot/api-derive": 1.32.0
|
||||
"@polkadot/keyring": ^3.4.1
|
||||
"@polkadot/metadata": 1.32.0-beta.25
|
||||
"@polkadot/rpc-core": 1.32.0-beta.25
|
||||
"@polkadot/rpc-provider": 1.32.0-beta.25
|
||||
"@polkadot/types": 1.32.0-beta.25
|
||||
"@polkadot/types-known": 1.32.0-beta.25
|
||||
"@polkadot/metadata": 1.32.0
|
||||
"@polkadot/rpc-core": 1.32.0
|
||||
"@polkadot/rpc-provider": 1.32.0
|
||||
"@polkadot/types": 1.32.0
|
||||
"@polkadot/types-known": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
"@polkadot/util-crypto": ^3.4.1
|
||||
bn.js: ^5.1.3
|
||||
@@ -2931,43 +2931,43 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@polkadot/metadata@1.32.0-beta.25, @polkadot/metadata@workspace:packages/metadata":
|
||||
"@polkadot/metadata@1.32.0, @polkadot/metadata@workspace:packages/metadata":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/metadata@workspace:packages/metadata"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/keyring": ^3.4.1
|
||||
"@polkadot/types": 1.32.0-beta.25
|
||||
"@polkadot/types-known": 1.32.0-beta.25
|
||||
"@polkadot/types": 1.32.0
|
||||
"@polkadot/types-known": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
"@polkadot/util-crypto": ^3.4.1
|
||||
bn.js: ^5.1.3
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-core@1.32.0-beta.25, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
"@polkadot/rpc-core@1.32.0, @polkadot/rpc-core@workspace:packages/rpc-core":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-core@workspace:packages/rpc-core"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/keyring": ^3.4.1
|
||||
"@polkadot/metadata": 1.32.0-beta.25
|
||||
"@polkadot/rpc-provider": 1.32.0-beta.25
|
||||
"@polkadot/types": 1.32.0-beta.25
|
||||
"@polkadot/metadata": 1.32.0
|
||||
"@polkadot/rpc-provider": 1.32.0
|
||||
"@polkadot/types": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
memoizee: ^0.4.14
|
||||
rxjs: ^6.6.2
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/rpc-provider@1.32.0-beta.25, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
"@polkadot/rpc-provider@1.32.0, @polkadot/rpc-provider@workspace:packages/rpc-provider":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/keyring": ^3.4.1
|
||||
"@polkadot/metadata": 1.32.0-beta.25
|
||||
"@polkadot/types": 1.32.0-beta.25
|
||||
"@polkadot/metadata": 1.32.0
|
||||
"@polkadot/types": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
"@polkadot/util-crypto": ^3.4.1
|
||||
bn.js: ^5.1.3
|
||||
@@ -2995,10 +2995,10 @@ __metadata:
|
||||
"@babel/core": ^7.11.6
|
||||
"@babel/register": ^7.11.5
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/api": 1.32.0-beta.25
|
||||
"@polkadot/metadata": 1.32.0-beta.25
|
||||
"@polkadot/rpc-provider": 1.32.0-beta.25
|
||||
"@polkadot/types": 1.32.0-beta.25
|
||||
"@polkadot/api": 1.32.0
|
||||
"@polkadot/metadata": 1.32.0
|
||||
"@polkadot/rpc-provider": 1.32.0
|
||||
"@polkadot/types": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
"@types/websocket": ^1.0.1
|
||||
"@types/yargs": ^15.0.5
|
||||
@@ -3014,25 +3014,25 @@ __metadata:
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types-known@1.32.0-beta.25, @polkadot/types-known@workspace:packages/types-known":
|
||||
"@polkadot/types-known@1.32.0, @polkadot/types-known@workspace:packages/types-known":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types-known@workspace:packages/types-known"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/types": 1.32.0-beta.25
|
||||
"@polkadot/types": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
bn.js: ^5.1.3
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
"@polkadot/types@1.32.0-beta.25, @polkadot/types@workspace:packages/types":
|
||||
"@polkadot/types@1.32.0, @polkadot/types@workspace:packages/types":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "@polkadot/types@workspace:packages/types"
|
||||
dependencies:
|
||||
"@babel/runtime": ^7.11.2
|
||||
"@polkadot/keyring": ^3.4.1
|
||||
"@polkadot/metadata": 1.32.0-beta.25
|
||||
"@polkadot/metadata": 1.32.0
|
||||
"@polkadot/util": ^3.4.1
|
||||
"@polkadot/util-crypto": ^3.4.1
|
||||
"@types/bn.js": ^4.11.6
|
||||
|
||||
Reference in New Issue
Block a user