Skip to content

Commit 71b33e2

Browse files
authored
1.5 (#2001)
* 1.5 * Util bumps * Install after bump
1 parent 023bc5a commit 71b33e2

File tree

13 files changed

+88
-86
lines changed

13 files changed

+88
-86
lines changed

CHANGELOG.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
# 1.5.0-beta.x
1+
# 1.5.1 Mar 06, 2020
22

3+
- **Important** Substrate master has updated staking, on older chains supply `StakingLedger: 'StakingLedgerTo223'`
4+
- **Important** Substrate master has updated collective, on older chains supply `Votes: 'VotesTo230'`
35
- Add proper support for type generation with an Enum containing an Tuple (Thanks to https://github.com/monitz87)
46
- Fix storage parsing not resulting in rejected Promises (Fix from https://github.com/aniiantt applied)
57
- Remove use of deprecated `Observable.create` (Thanks to https://github.com/Himself65)
6-
- Type generation will now handle the same sub-module name across packages, i.e. `@polkadot/types/interfaces/runtime` & `@mine/interfaces/runtime`)
8+
- Add types & metadata for the latest Polkadot/Substrate runtime versions (master branches)
9+
- Type extraction will now allow the same sub-module name across packages, i.e. `@polkadot/types/interfaces/runtime` & `@mine/interfaces/runtime` will be valid
710
- Add `.range([from, to]: [Hash, Hash?], ...args: any[]): [Hash, Codec][]` on all storage entries
811
- Add `.raw(...args: any[]): Promise<Uint8Array & Codec>` to all RPC calls, returning the un-encoded result
9-
- Allow pre-module type aliasing with `typesAlias: { <moduleName>: { <meta-type>: <alias-type> } }`on API construction options
12+
- Allow pre-module type aliasing with `typesAlias: { <moduleName>: { <meta-type>: <alias-type> } }` in API construction options
1013
- Allow `BTreeMap` to be initialized with a `Record<string, any>` object (in addition to `Map`)
1114
- Allow for `HashMap<KeyType, ValueType>` definitions
1215
- `Bool` will now correctly return `isEmpty` on false/default values
1316
- Refresh the `NetworkState` types as returned by the `rpc.system.networkState()` call to current
14-
- Expose `registry.createClass(<typeName>)`, to allow for creating type classes. If you are using `createClass` or `ClassOf` in your code, it is recommended to swap to this instance.
15-
- Add additional derives to `api.derive.staking` to handle lazy-payout calculations
16-
- Add types & metadata for the latest Polkadot/Substrate versions
17+
- Expose `registry.createClass(<typeName>)` to allow for creating type classes. If you are using `createClass` or `ClassOf` in your code, it is recommended to swap to this instance.
18+
- Add additional derives to `api.derive.staking` to handle lazy-payout retrievals
19+
- Update `@polkadot/{util, util-crypto, keyring}` to 1.6.1 & `@polkadot/wasm` to 1.2.1
1720

1821
# 1.4.2 Feb 27, 2020
1922

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.5.0-beta.33"
12+
"version": "1.5.0"
1313
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
"@babel/core": "^7.8.4",
2626
"@babel/register": "^7.8.3",
2727
"@babel/runtime": "^7.8.4",
28-
"@polkadot/dev": "^0.50.26",
28+
"@polkadot/dev": "^0.50.27",
2929
"@polkadot/ts": "^0.3.7",
3030
"@polkadot/typegen": "workspace:packages/typegen",
31-
"@vue/component-compiler-utils": "^3.1.1",
3231
"copyfiles": "^2.2.0"
3332
}
3433
}

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.5.0-beta.33",
3+
"version": "1.5.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.8.4",
30-
"@polkadot/api": "1.5.0-beta.33",
31-
"@polkadot/rpc-core": "1.5.0-beta.33",
32-
"@polkadot/types": "1.5.0-beta.33",
30+
"@polkadot/api": "1.5.0",
31+
"@polkadot/rpc-core": "1.5.0",
32+
"@polkadot/types": "1.5.0",
3333
"@polkadot/util": "^2.6.1",
3434
"bn.js": "^5.1.1",
3535
"rxjs": "^6.5.4"

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.5.0-beta.33",
3+
"version": "1.5.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.8.4",
31-
"@polkadot/api": "1.5.0-beta.33",
32-
"@polkadot/rpc-core": "1.5.0-beta.33",
33-
"@polkadot/rpc-provider": "1.5.0-beta.33",
34-
"@polkadot/types": "1.5.0-beta.33",
31+
"@polkadot/api": "1.5.0",
32+
"@polkadot/rpc-core": "1.5.0",
33+
"@polkadot/rpc-provider": "1.5.0",
34+
"@polkadot/types": "1.5.0",
3535
"@polkadot/util": "^2.6.1",
3636
"@polkadot/util-crypto": "^2.6.1",
3737
"bn.js": "^5.1.1",

packages/api/package.json

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

packages/jsonrpc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@polkadot/jsonrpc",
3-
"version": "1.5.0-beta.33",
3+
"version": "1.5.0",
44
"description": "Method definitions for the Polkadot RPC layer",
55
"main": "index.js",
66
"publishConfig": {
@@ -27,7 +27,7 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/jsonrpc#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.8.4",
30-
"@polkadot/types": "1.5.0-beta.33",
30+
"@polkadot/types": "1.5.0",
3131
"@polkadot/util": "^2.6.1"
3232
}
3333
}

packages/metadata/package.json

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

packages/rpc-core/package.json

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

packages/rpc-provider/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-provider",
3-
"version": "1.5.0-beta.33",
3+
"version": "1.5.0",
44
"description": "Transport providers for the API",
55
"main": "index.js",
66
"keywords": [
@@ -27,9 +27,9 @@
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
2828
"dependencies": {
2929
"@babel/runtime": "^7.8.4",
30-
"@polkadot/jsonrpc": "1.5.0-beta.33",
31-
"@polkadot/metadata": "1.5.0-beta.33",
32-
"@polkadot/types": "1.5.0-beta.33",
30+
"@polkadot/jsonrpc": "1.5.0",
31+
"@polkadot/metadata": "1.5.0",
32+
"@polkadot/types": "1.5.0",
3333
"@polkadot/util": "^2.6.1",
3434
"@polkadot/util-crypto": "^2.6.1",
3535
"bn.js": "^5.1.1",

0 commit comments

Comments
 (0)