From 6d5f297c326d846d707fe315d93872220991262b Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 14 Jun 2019 10:41:23 +0200 Subject: [PATCH] 0.81 (#1010) --- CHANGELOG.md | 11 ++++------ lerna.json | 2 +- packages/api-derive/package.json | 8 +++---- packages/api/package.json | 18 ++++++++-------- packages/rpc-core/package.json | 10 ++++----- packages/rpc-provider/package.json | 10 ++++----- packages/rpc-rx/package.json | 8 +++---- packages/type-extrinsics/package.json | 6 +++--- packages/type-jsonrpc/package.json | 2 +- packages/type-storage/package.json | 10 ++++----- packages/types/package.json | 8 +++---- yarn.lock | 30 +++++++++++++-------------- 12 files changed, 60 insertions(+), 63 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8450b598..5bb3fff314 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.82.1 +# 0.81.1 - The dependency on `@polkadot/keyring` has been removed - if you relied on the API to provide this, you would now need to manually add it - Update `HeaderExtended` to retrieve author information from substrate 2.x (new `PreRuntime` digests) @@ -7,16 +7,13 @@ - Fix for disconnection when default providers (non-specified) are used - Don't console.log type decoding errors and then throw, only re-throw with additional info - Support latest substrate 2.x v5 metadata +- Add support for new inherent digests from substrate. +- **Breaking change** Because of the new `Seal`, the old/new Seals are not compatible. If you were using the old `Seal` from the `Digest`s, you would now use `isSealV0` for the pre-substrate 1.0 version and the new `isSeal` for the current version - Add `ApprovalFlag`, `SetIndex`, `VoterInfo` types for council as per substrate - Update `ContractInfo` to match substrate master - Cater for `Vec`, `Option`, `Result`, tuples and fixed vectors for contracts ABIs - Additional examples for subscriptions using multi -- Add `off` method to `ApiBase` to remove an event listener - -# 0.81.1 - -- Add support for new inherent digests from substrate. -- **Breaking change** Because of the new `Seal`, the old/new Seals are not compatible. If you were using the old `Seal` from the `Digest`s, you would now use `isSealV0` for the pre-substrate 1.0 version and the new `isSeal` for the current version +- Add `off` method to `Api` (Base, for both `ApiPromise` & `ApiRx`) to remove an event listener # 0.80.1 diff --git a/lerna.json b/lerna.json index ae78ecc863..b8c834f155 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.81.0-beta.19" + "version": "0.81.0" } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 1bb00933f4..97cd3685e8 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.81.0-beta.19", + "version": "0.81.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,12 +28,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/api": "^0.81.0-beta.19", - "@polkadot/types": "^0.81.0-beta.19", + "@polkadot/api": "^0.81.0", + "@polkadot/types": "^0.81.0", "@types/memoizee": "^0.4.2", "memoizee": "^0.4.14" }, "devDependencies": { - "@polkadot/keyring": "^0.93.0-beta.5" + "@polkadot/keyring": "^0.93.1" } } diff --git a/packages/api/package.json b/packages/api/package.json index 7476143cc1..bbbaa96659 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.81.0-beta.19", + "version": "0.81.0", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -27,15 +27,15 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/api-derive": "^0.81.0-beta.19", - "@polkadot/extrinsics": "^0.81.0-beta.19", - "@polkadot/rpc-provider": "^0.81.0-beta.19", - "@polkadot/rpc-rx": "^0.81.0-beta.19", - "@polkadot/storage": "^0.81.0-beta.19", - "@polkadot/types": "^0.81.0-beta.19", - "@polkadot/util-crypto": "^0.93.0-beta.5" + "@polkadot/api-derive": "^0.81.0", + "@polkadot/extrinsics": "^0.81.0", + "@polkadot/rpc-provider": "^0.81.0", + "@polkadot/rpc-rx": "^0.81.0", + "@polkadot/storage": "^0.81.0", + "@polkadot/types": "^0.81.0", + "@polkadot/util-crypto": "^0.93.1" }, "devDependencies": { - "@polkadot/keyring": "^0.93.0-beta.5" + "@polkadot/keyring": "^0.93.1" } } diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 16a6ab71e2..7659a93dad 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.81.0-beta.19", + "version": "0.81.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.4.5", - "@polkadot/jsonrpc": "^0.81.0-beta.19", - "@polkadot/rpc-provider": "^0.81.0-beta.19", - "@polkadot/types": "^0.81.0-beta.19", - "@polkadot/util": "^0.93.0-beta.5" + "@polkadot/jsonrpc": "^0.81.0", + "@polkadot/rpc-provider": "^0.81.0", + "@polkadot/types": "^0.81.0", + "@polkadot/util": "^0.93.1" } } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index a1a2ebe09a..7fb77d9a24 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.81.0-beta.19", + "version": "0.81.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,16 +27,16 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/storage": "^0.81.0-beta.19", - "@polkadot/util": "^0.93.0-beta.5", - "@polkadot/util-crypto": "^0.93.0-beta.5", + "@polkadot/storage": "^0.81.0", + "@polkadot/util": "^0.93.1", + "@polkadot/util-crypto": "^0.93.1", "@types/nock": "^10.0.3", "eventemitter3": "^3.1.0", "isomorphic-fetch": "^2.2.1", "websocket": "^1.0.28" }, "devDependencies": { - "@polkadot/keyring": "^0.93.0-beta.5", + "@polkadot/keyring": "^0.93.1", "mock-socket": "^8.0.5", "nock": "^10.0.4" } diff --git a/packages/rpc-rx/package.json b/packages/rpc-rx/package.json index e8b17ea10c..55dd9e7a12 100644 --- a/packages/rpc-rx/package.json +++ b/packages/rpc-rx/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-rx", - "version": "0.81.0-beta.19", + "version": "0.81.0", "description": "An RxJs wrapper around the Polkadot JS API", "main": "index.js", "keywords": [ @@ -27,14 +27,14 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/rpc-core": "^0.81.0-beta.19", - "@polkadot/rpc-provider": "^0.81.0-beta.19", + "@polkadot/rpc-core": "^0.81.0", + "@polkadot/rpc-provider": "^0.81.0", "@types/memoizee": "^0.4.2", "@types/rx": "^4.1.1", "memoizee": "^0.4.14", "rxjs": "^6.5.2" }, "devDependencies": { - "@polkadot/keyring": "^0.93.0-beta.5" + "@polkadot/keyring": "^0.93.1" } } diff --git a/packages/type-extrinsics/package.json b/packages/type-extrinsics/package.json index 49e92773ab..f35f508f68 100644 --- a/packages/type-extrinsics/package.json +++ b/packages/type-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/extrinsics", - "version": "0.81.0-beta.19", + "version": "0.81.0", "main": "index.js", "repository": "https://github.com/polkadot-js/api.git", "author": "Jaco Greeff ", @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/types": "^0.81.0-beta.19", - "@polkadot/util": "^0.93.0-beta.5" + "@polkadot/types": "^0.81.0", + "@polkadot/util": "^0.93.1" } } diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index c3eddfeacb..5f04387770 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.81.0-beta.19", + "version": "0.81.0", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "publishConfig": { diff --git a/packages/type-storage/package.json b/packages/type-storage/package.json index 80dabcb3d6..da20465cb3 100644 --- a/packages/type-storage/package.json +++ b/packages/type-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/storage", - "version": "0.81.0-beta.19", + "version": "0.81.0", "description": "Generic wrapper wrapper around state storage", "main": "index.js", "publishConfig": { @@ -27,11 +27,11 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/types": "^0.81.0-beta.19", - "@polkadot/util": "^0.93.0-beta.5", - "@polkadot/util-crypto": "^0.93.0-beta.5" + "@polkadot/types": "^0.81.0", + "@polkadot/util": "^0.93.1", + "@polkadot/util-crypto": "^0.93.1" }, "devDependencies": { - "@polkadot/keyring": "^0.93.0-beta.5" + "@polkadot/keyring": "^0.93.1" } } diff --git a/packages/types/package.json b/packages/types/package.json index d339ee7cb7..306e9380bb 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.81.0-beta.19", + "version": "0.81.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -27,10 +27,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.4.5", - "@polkadot/util": "^0.93.0-beta.5", - "@polkadot/util-crypto": "^0.93.0-beta.5" + "@polkadot/util": "^0.93.1", + "@polkadot/util-crypto": "^0.93.1" }, "devDependencies": { - "@polkadot/keyring": "^0.93.0-beta.5" + "@polkadot/keyring": "^0.93.1" } } diff --git a/yarn.lock b/yarn.lock index b2222c84b2..8f85d34511 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1801,14 +1801,14 @@ typescript "^3.5.1" vuepress "^1.0.1" -"@polkadot/keyring@^0.93.0-beta.5": - version "0.93.0-beta.5" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.93.0-beta.5.tgz#581cedb279ce718026a5d901065293d4193dfbe9" - integrity sha512-NHNVyn1DmpD6yN06caHdkmrrhQIh/bvs87DlnsjsGA2PccQFH+UO315Qa3eNmueZorCzyIKTsOYBpY1lwehqSw== +"@polkadot/keyring@^0.93.1": + version "0.93.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.93.1.tgz#c3dcf848154164ac1f41d61441511defadcf9d4a" + integrity sha512-sJ9E9AKcJASdnkbzBA1L773oPgXAkEF3LsUjpkaDTelPqzsky6hdyglj3oQpkCj6Oofd1BwJeonmqinIV8Fl4Q== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/util" "^0.93.0-beta.5" - "@polkadot/util-crypto" "^0.93.0-beta.5" + "@polkadot/util" "^0.93.1" + "@polkadot/util-crypto" "^0.93.1" "@types/bs58" "^4.0.0" bs58 "^4.0.1" @@ -1819,13 +1819,13 @@ dependencies: "@types/chrome" "^0.0.86" -"@polkadot/util-crypto@^0.93.0-beta.5": - version "0.93.0-beta.5" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.93.0-beta.5.tgz#81a399395825b22d532d3834c12e143112564cd5" - integrity sha512-GntTfbZd2qfIo1GdYTHtimuDhQIiexiLaQ3/qfShAZ3BP1QiVHx6yYFngMPkEKnebx7rgowT4g0yH1ztf35WiQ== +"@polkadot/util-crypto@^0.93.1": + version "0.93.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.93.1.tgz#5cd2506f601cd80b28f0556bb8dd3187857059a4" + integrity sha512-oSTUnJxWQkd6XopK+HFOa8sgTSTJW6LOoTg8iv6QCkddyEhsk8XkTe43AE4F+RA0VOi7MOiiBEl6Pl5eFIer9g== dependencies: "@babel/runtime" "^7.4.5" - "@polkadot/util" "^0.93.0-beta.5" + "@polkadot/util" "^0.93.1" "@polkadot/wasm-crypto" "^0.11.1" "@types/bip39" "^2.4.2" "@types/pbkdf2" "^3.0.0" @@ -1838,10 +1838,10 @@ tweetnacl "^1.0.1" xxhashjs "^0.2.2" -"@polkadot/util@^0.93.0-beta.5": - version "0.93.0-beta.5" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.93.0-beta.5.tgz#c0b27459fdf4848382403b924698f1b012df8c88" - integrity sha512-dhJ56+5dYAAz45rdc5AqvFGI1qeQ8qTGiFbiE9S+ZXimEU/3mR1LRcq8nMx4aeZaC3blrReuAmzTxLS2c6aOsw== +"@polkadot/util@^0.93.1": + version "0.93.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.93.1.tgz#d07d633b35e02640da1361259750c061022d4e05" + integrity sha512-ORqpaCf7pDtg07/TVPnXyEKTyL7YhlTT9xFU1UFv3WoTLPrGThFlZnWQrfOVYuuMtlnsdpt2evJ1i5V9alGdOQ== dependencies: "@babel/runtime" "^7.4.5" "@types/bn.js" "^4.11.5"