Skip to content

Commit 40af520

Browse files
authored
4.5.1 (#3390)
1 parent 1e506e0 commit 40af520

File tree

15 files changed

+212
-90
lines changed

15 files changed

+212
-90
lines changed

CHANGELOG.md

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

3+
## 4.5.1 Apr 12, 2021
4+
5+
Upgrade priority: Low. Recommended with usage with the Rococo testnet.
6+
7+
Changes:
8+
9+
- Update parachain types as per latest Polkadot
10+
- Cater for `Keys` with `BEEFY` session keys
11+
- Update `Keys` injection to allow for on-chain type detection
12+
- Update `Westend` known upgrade points for runtime 50
13+
- Align types with latest Substrate master
14+
- Adjust keepalive `system_health` timer
15+
16+
317
## 4.4.1 Apr 5, 2021
418

519
Upgrade priority: Low. Recommended with usage with the Rococo testnet.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
"@types/jest": "^26.0.22",
3535
"copyfiles": "^2.4.1"
3636
},
37-
"version": "4.4.2-7"
37+
"version": "4.5.0"
3838
}

packages/api-contract/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/api-contract",
3-
"version": "4.4.2-7",
3+
"version": "4.5.0",
44
"type": "module",
55
"description": "Interfaces for interacting with contracts and contract ABIs",
66
"main": "index.js",
@@ -17,8 +17,8 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.13.10",
20-
"@polkadot/api": "4.4.2-7",
21-
"@polkadot/types": "4.4.2-7",
20+
"@polkadot/api": "4.5.0",
21+
"@polkadot/types": "4.5.0",
2222
"@polkadot/util": "^6.1.1",
2323
"@polkadot/x-rxjs": "^6.1.1",
2424
"bn.js": "^4.11.9"

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": "4.4.2-7",
3+
"version": "4.5.0",
44
"type": "module",
55
"description": "Common functions used across Polkadot, derived from RPC calls and storage queries.",
66
"main": "index.js",
@@ -17,16 +17,16 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.13.10",
20-
"@polkadot/api": "4.4.2-7",
21-
"@polkadot/rpc-core": "4.4.2-7",
22-
"@polkadot/types": "4.4.2-7",
20+
"@polkadot/api": "4.5.0",
21+
"@polkadot/rpc-core": "4.5.0",
22+
"@polkadot/types": "4.5.0",
2323
"@polkadot/util": "^6.1.1",
2424
"@polkadot/util-crypto": "^6.1.1",
2525
"@polkadot/x-rxjs": "^6.1.1",
2626
"bn.js": "^4.11.9"
2727
},
2828
"devDependencies": {
2929
"@polkadot/keyring": "^6.1.1",
30-
"@polkadot/rpc-provider": "4.4.2-7"
30+
"@polkadot/rpc-provider": "4.5.0"
3131
}
3232
}

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": "4.4.2-7",
3+
"version": "4.5.0",
44
"type": "module",
55
"description": "Promise and RxJS wrappers around the Polkadot JS RPC",
66
"main": "index.js",
@@ -17,13 +17,13 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.13.10",
20-
"@polkadot/api-derive": "4.4.2-7",
20+
"@polkadot/api-derive": "4.5.0",
2121
"@polkadot/keyring": "^6.1.1",
22-
"@polkadot/metadata": "4.4.2-7",
23-
"@polkadot/rpc-core": "4.4.2-7",
24-
"@polkadot/rpc-provider": "4.4.2-7",
25-
"@polkadot/types": "4.4.2-7",
26-
"@polkadot/types-known": "4.4.2-7",
22+
"@polkadot/metadata": "4.5.0",
23+
"@polkadot/rpc-core": "4.5.0",
24+
"@polkadot/rpc-provider": "4.5.0",
25+
"@polkadot/types": "4.5.0",
26+
"@polkadot/types-known": "4.5.0",
2727
"@polkadot/util": "^6.1.1",
2828
"@polkadot/util-crypto": "^6.1.1",
2929
"@polkadot/x-rxjs": "^6.1.1",

packages/api/src/base/Init.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { map, switchMap } from '@polkadot/x-rxjs/operators';
2121
import { detectedCapabilities } from './capabilities';
2222
import { Decorate } from './Decorate';
2323

24-
const KEEPALIVE_INTERVAL = 15000;
24+
const KEEPALIVE_INTERVAL = 10000;
2525
const DEFAULT_BLOCKNUMBER = { unwrap: () => BN_ZERO };
2626

2727
const l = logger('api/init');
@@ -321,7 +321,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
321321
}
322322

323323
this.#healthTimer = setInterval((): void => {
324-
this._rpcCore.system.health().toPromise().catch(() => null);
324+
this._rpcCore.system.health().toPromise().catch((error) => l.warn(`Health keepalive check failed: ${(error as Error).message}`));
325325
}, KEEPALIVE_INTERVAL);
326326
} catch (_error) {
327327
const error = new Error(`FATAL: Unable to initialize the API: ${(_error as Error).message}`);

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": "4.4.2-7",
3+
"version": "4.5.0",
44
"type": "module",
55
"description": "Helpers to extract information from runtime metadata",
66
"main": "index.js",
@@ -17,8 +17,8 @@
1717
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
1818
"dependencies": {
1919
"@babel/runtime": "^7.13.10",
20-
"@polkadot/types": "4.4.2-7",
21-
"@polkadot/types-known": "4.4.2-7",
20+
"@polkadot/types": "4.5.0",
21+
"@polkadot/types-known": "4.5.0",
2222
"@polkadot/util": "^6.1.1",
2323
"@polkadot/util-crypto": "^6.1.1",
2424
"bn.js": "^4.11.9"

0 commit comments

Comments
 (0)