Skip to content

Commit 6095814

Browse files
authored
1.32 (#2589)
* 1.32 * CHANGELOG
1 parent ec083f6 commit 6095814

File tree

13 files changed

+81
-80
lines changed

13 files changed

+81
-80
lines changed

CHANGELOG.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# CHANGELOG
22

3-
## 1.32.0-beta.x
3+
## 1.32.1 Sep 7, 2020
44

5-
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.
5+
Upgrade priority: Low. Recommended when manually using provider connect/disconnect or using multiple instances in a single process.
66

7-
- **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
8-
- **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.
7+
- **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
8+
- **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()`.
99

1010
Contributed:
1111

@@ -14,18 +14,19 @@ Contributed:
1414

1515
Changes:
1616

17-
- Adjust memoization to work on a per-instance basis, instance shared between API and Provider instances
17+
- Adjust memoization to work on a per-instance basis, with no contamination between multiple api/provider instances
1818
- Added `derive.chain.getBlock(hash)` to retrieve a `SignedBlock` extended with an `.author` (same as `derive.chain.getHeader(...)`)
19-
- Added `api.{connect, disconnect}()` as well as `isConnected` interfaces. The first functions returning `Promise<void>`
20-
- Error on provider connections will now emit and error (as expected) via the event emitter
21-
- Add `api.derive.accounts.accountId` to perform AccountId lookups (from indices or actual AccountId)
19+
- Added `api.{connect, disconnect}()` as well as `isConnected` interfaces. The first functions async returning `Promise<void>`
20+
- Error on provider connections will now emit all (as expected) via the event emitter
21+
- Ensure that initial connection failures always retry (when using auto-connection management)
2222
- The `api.derive.staking.query/queryMulti` no longer retrieves session keys (can be done via `.keys/keysMulti`)
23+
- Add `api.derive.accounts.accountId` to perform AccountId lookups (from indices or actual AccountId)
2324
- Lessen load of `paymentInfo` queries to only use accounId mappings as available
2425
- Adjust staking derives to cater for early Substrate 2.0 chains (optional/non-optional EraIndexes)
2526
- Cater for the handling of nested aliased types, e.g. wrapped inside Vec or Tuple
2627
- Add the support for the `grandpa_subscribeJustifications` RPC
27-
- Adjust `Call.toHuman()` to remove more technical internal details
28-
- static metadata & tests updated for the latest substrate master
28+
- Adjust `Call.toHuman()` to remove decoding-related technical internal details
29+
- Static metadata & tests updated for the latest substrate master
2930
- `toHuman()` & `.toBigInt()` has been explicitly added to the API documentation
3031
- Adjust known types for latest Kusama network state
3132

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"packages": [
1010
"packages/*"
1111
],
12-
"version": "1.32.0-beta.25"
12+
"version": "1.32.0"
1313
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
"typedoc-plugin-markdown": "^2.4.2",
3939
"typedoc-plugin-no-inherit": "^1.1.10"
4040
},
41-
"version": "1.32.0-beta.25"
41+
"version": "1.32.0"
4242
}

packages/api-contract/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "1.32.0-beta.25",
3+
"version": "1.32.0",
44
"description": "Interfaces for interacting with contracts and contract ABIs",
55
"main": "index.js",
66
"keywords": [
@@ -27,9 +27,9 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/api": "1.32.0-beta.25",
31-
"@polkadot/rpc-core": "1.32.0-beta.25",
32-
"@polkadot/types": "1.32.0-beta.25",
30+
"@polkadot/api": "1.32.0",
31+
"@polkadot/rpc-core": "1.32.0",
32+
"@polkadot/types": "1.32.0",
3333
"@polkadot/util": "^3.4.1",
3434
"bn.js": "^5.1.3",
3535
"rxjs": "^6.6.2"

packages/api-derive/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-derive",
3-
"version": "1.32.0-beta.25",
3+
"version": "1.32.0",
44
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
55
"main": "index.js",
66
"keywords": [
@@ -28,10 +28,10 @@
2828
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2929
"dependencies": {
3030
"@babel/runtime": "^7.11.2",
31-
"@polkadot/api": "1.32.0-beta.25",
32-
"@polkadot/rpc-core": "1.32.0-beta.25",
33-
"@polkadot/rpc-provider": "1.32.0-beta.25",
34-
"@polkadot/types": "1.32.0-beta.25",
31+
"@polkadot/api": "1.32.0",
32+
"@polkadot/rpc-core": "1.32.0",
33+
"@polkadot/rpc-provider": "1.32.0",
34+
"@polkadot/types": "1.32.0",
3535
"@polkadot/util": "^3.4.1",
3636
"@polkadot/util-crypto": "^3.4.1",
3737
"bn.js": "^5.1.3",

packages/api/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api",
3-
"version": "1.32.0-beta.25",
3+
"version": "1.32.0",
44
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
55
"main": "index.js",
66
"keywords": [
@@ -27,13 +27,13 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/api-derive": "1.32.0-beta.25",
30+
"@polkadot/api-derive": "1.32.0",
3131
"@polkadot/keyring": "^3.4.1",
32-
"@polkadot/metadata": "1.32.0-beta.25",
33-
"@polkadot/rpc-core": "1.32.0-beta.25",
34-
"@polkadot/rpc-provider": "1.32.0-beta.25",
35-
"@polkadot/types": "1.32.0-beta.25",
36-
"@polkadot/types-known": "1.32.0-beta.25",
32+
"@polkadot/metadata": "1.32.0",
33+
"@polkadot/rpc-core": "1.32.0",
34+
"@polkadot/rpc-provider": "1.32.0",
35+
"@polkadot/types": "1.32.0",
36+
"@polkadot/types-known": "1.32.0",
3737
"@polkadot/util": "^3.4.1",
3838
"@polkadot/util-crypto": "^3.4.1",
3939
"bn.js": "^5.1.3",

packages/metadata/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/metadata",
3-
"version": "1.32.0-beta.25",
3+
"version": "1.32.0",
44
"description": "Helpers to extract information from runtime metadata",
55
"main": "index.js",
66
"publishConfig": {
@@ -27,8 +27,8 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/types": "1.32.0-beta.25",
31-
"@polkadot/types-known": "1.32.0-beta.25",
30+
"@polkadot/types": "1.32.0",
31+
"@polkadot/types-known": "1.32.0",
3232
"@polkadot/util": "^3.4.1",
3333
"@polkadot/util-crypto": "^3.4.1",
3434
"bn.js": "^5.1.3"

packages/rpc-core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-core",
3-
"version": "1.32.0-beta.25",
3+
"version": "1.32.0",
44
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
55
"main": "index.js",
66
"keywords": [
@@ -27,9 +27,9 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/metadata": "1.32.0-beta.25",
31-
"@polkadot/rpc-provider": "1.32.0-beta.25",
32-
"@polkadot/types": "1.32.0-beta.25",
30+
"@polkadot/metadata": "1.32.0",
31+
"@polkadot/rpc-provider": "1.32.0",
32+
"@polkadot/types": "1.32.0",
3333
"@polkadot/util": "^3.4.1",
3434
"memoizee": "^0.4.14",
3535
"rxjs": "^6.6.2"

packages/rpc-provider/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/rpc-provider",
3-
"version": "1.32.0-beta.25",
3+
"version": "1.32.0",
44
"description": "Transport providers for the API",
55
"main": "index.js",
66
"keywords": [
@@ -27,8 +27,8 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.11.2",
30-
"@polkadot/metadata": "1.32.0-beta.25",
31-
"@polkadot/types": "1.32.0-beta.25",
30+
"@polkadot/metadata": "1.32.0",
31+
"@polkadot/types": "1.32.0",
3232
"@polkadot/util": "^3.4.1",
3333
"@polkadot/util-crypto": "^3.4.1",
3434
"bn.js": "^5.1.3",

packages/typegen/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/typegen",
3-
"version": "1.32.0-beta.25",
3+
"version": "1.32.0",
44
"description": "Type generation scripts",
55
"main": "index.js",
66
"bin": {
@@ -36,10 +36,10 @@
3636
"@babel/core": "^7.11.6",
3737
"@babel/register": "^7.11.5",
3838
"@babel/runtime": "^7.11.2",
39-
"@polkadot/api": "1.32.0-beta.25",
40-
"@polkadot/metadata": "1.32.0-beta.25",
41-
"@polkadot/rpc-provider": "1.32.0-beta.25",
42-
"@polkadot/types": "1.32.0-beta.25",
39+
"@polkadot/api": "1.32.0",
40+
"@polkadot/metadata": "1.32.0",
41+
"@polkadot/rpc-provider": "1.32.0",
42+
"@polkadot/types": "1.32.0",
4343
"@polkadot/util": "^3.4.1",
4444
"handlebars": "^4.7.6",
4545
"websocket": "^1.0.32",

0 commit comments

Comments
 (0)