From f7bd071013984b475306ee9ba1d310021cbcb6d0 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 8 May 2019 17:41:48 +0200 Subject: [PATCH] 0.78.1 (#884) * update CHANGELOG * Bump common * Bump to 0.78 --- CHANGELOG.md | 10 +++++++++ lerna.json | 2 +- packages/api-derive/package.json | 6 +++--- packages/api/package.json | 16 +++++++------- packages/rpc-core/package.json | 10 ++++----- packages/rpc-provider/package.json | 10 ++++----- packages/rpc-rx/package.json | 6 +++--- packages/type-extrinsics/package.json | 6 +++--- packages/type-jsonrpc/package.json | 2 +- packages/type-storage/package.json | 10 ++++----- packages/types/package.json | 6 +++--- yarn.lock | 30 +++++++++++++-------------- 12 files changed, 62 insertions(+), 52 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6eb3f1dea0..55315f0b9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# 0.78.1 + +- Fix linked-maps (not working since 0.77.1) +- Convert Usize to U32 (as found in WASM environments) +- Allow pre-bundled metadata in API create & constructor +- Don't clobber existing keys in structs when auto-adding fields +- Additional logging when constructing Structs as to where failures occur +- Do type assertion on all exposed asXXX getters +- Metadata updates for substrate (WithdrawReasons, ContractInfo) + # 0.77.1 - Support Metadata v4, which introduces the use of a custom hasher to hash storage map keys. diff --git a/lerna.json b/lerna.json index 41a2ba78e8..ad620dbd9f 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.78.0-beta.14" + "version": "0.78.0" } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 09e58a2376..f5a8b56504 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.78.0-beta.14", + "version": "0.78.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -31,8 +31,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.4.4", - "@polkadot/api": "^0.78.0-beta.14", - "@polkadot/types": "^0.78.0-beta.14", + "@polkadot/api": "^0.78.0", + "@polkadot/types": "^0.78.0", "@types/memoizee": "^0.4.2", "memoizee": "^0.4.14" } diff --git a/packages/api/package.json b/packages/api/package.json index 18f8a5762a..b5ddc2d11b 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.78.0-beta.14", + "version": "0.78.0", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -30,12 +30,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.4.4", - "@polkadot/api-derive": "^0.78.0-beta.14", - "@polkadot/extrinsics": "^0.78.0-beta.14", - "@polkadot/rpc-provider": "^0.78.0-beta.14", - "@polkadot/rpc-rx": "^0.78.0-beta.14", - "@polkadot/storage": "^0.78.0-beta.14", - "@polkadot/types": "^0.78.0-beta.14", - "@polkadot/util-crypto": "^0.90.0-beta.4" + "@polkadot/api-derive": "^0.78.0", + "@polkadot/extrinsics": "^0.78.0", + "@polkadot/rpc-provider": "^0.78.0", + "@polkadot/rpc-rx": "^0.78.0", + "@polkadot/storage": "^0.78.0", + "@polkadot/types": "^0.78.0", + "@polkadot/util-crypto": "^0.90.1" } } diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index ec7c256b01..58f51b71f0 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.78.0-beta.14", + "version": "0.78.0", "description": "A JavaScript wrapper for the Polkadot JsonRPC interface", "main": "index.js", "keywords": [ @@ -30,9 +30,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme", "dependencies": { "@babel/runtime": "^7.4.4", - "@polkadot/jsonrpc": "^0.78.0-beta.14", - "@polkadot/rpc-provider": "^0.78.0-beta.14", - "@polkadot/types": "^0.78.0-beta.14", - "@polkadot/util": "^0.90.0-beta.4" + "@polkadot/jsonrpc": "^0.78.0", + "@polkadot/rpc-provider": "^0.78.0", + "@polkadot/types": "^0.78.0", + "@polkadot/util": "^0.90.1" } } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index e226253759..f36ed0a010 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.78.0-beta.14", + "version": "0.78.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -30,10 +30,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.4.4", - "@polkadot/keyring": "^0.90.0-beta.4", - "@polkadot/storage": "^0.78.0-beta.14", - "@polkadot/util": "^0.90.0-beta.4", - "@polkadot/util-crypto": "^0.90.0-beta.4", + "@polkadot/keyring": "^0.90.1", + "@polkadot/storage": "^0.78.0", + "@polkadot/util": "^0.90.1", + "@polkadot/util-crypto": "^0.90.1", "@types/nock": "^9.3.1", "eventemitter3": "^3.1.0", "isomorphic-fetch": "^2.2.1", diff --git a/packages/rpc-rx/package.json b/packages/rpc-rx/package.json index bd61165ea8..9d879b5e63 100644 --- a/packages/rpc-rx/package.json +++ b/packages/rpc-rx/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-rx", - "version": "0.78.0-beta.14", + "version": "0.78.0", "description": "An RxJs wrapper around the Polkadot JS API", "main": "index.js", "keywords": [ @@ -30,8 +30,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-rx#readme", "dependencies": { "@babel/runtime": "^7.4.4", - "@polkadot/rpc-core": "^0.78.0-beta.14", - "@polkadot/rpc-provider": "^0.78.0-beta.14", + "@polkadot/rpc-core": "^0.78.0", + "@polkadot/rpc-provider": "^0.78.0", "@types/memoizee": "^0.4.2", "@types/rx": "^4.1.1", "memoizee": "^0.4.14", diff --git a/packages/type-extrinsics/package.json b/packages/type-extrinsics/package.json index 65a9edb617..f681f8ec33 100644 --- a/packages/type-extrinsics/package.json +++ b/packages/type-extrinsics/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/extrinsics", - "version": "0.78.0-beta.14", + "version": "0.78.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.4", - "@polkadot/types": "^0.78.0-beta.14", - "@polkadot/util": "^0.90.0-beta.4" + "@polkadot/types": "^0.78.0", + "@polkadot/util": "^0.90.1" } } diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 68b948545d..26474f26db 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.78.0-beta.14", + "version": "0.78.0", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "engines": { diff --git a/packages/type-storage/package.json b/packages/type-storage/package.json index 13a2565d28..5913626597 100644 --- a/packages/type-storage/package.json +++ b/packages/type-storage/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/storage", - "version": "0.78.0-beta.14", + "version": "0.78.0", "description": "Generic wrapper wrapper around state storage", "main": "index.js", "engines": { @@ -30,9 +30,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme", "dependencies": { "@babel/runtime": "^7.4.4", - "@polkadot/keyring": "^0.90.0-beta.4", - "@polkadot/types": "^0.78.0-beta.14", - "@polkadot/util": "^0.90.0-beta.4", - "@polkadot/util-crypto": "^0.90.0-beta.4" + "@polkadot/keyring": "^0.90.1", + "@polkadot/types": "^0.78.0", + "@polkadot/util": "^0.90.1", + "@polkadot/util-crypto": "^0.90.1" } } diff --git a/packages/types/package.json b/packages/types/package.json index 686539c6a4..0783de2067 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.78.0-beta.14", + "version": "0.78.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -30,7 +30,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.4.4", - "@polkadot/keyring": "^0.90.0-beta.4", - "@polkadot/util": "^0.90.0-beta.4" + "@polkadot/keyring": "^0.90.1", + "@polkadot/util": "^0.90.1" } } diff --git a/yarn.lock b/yarn.lock index 8f543c32b3..b52bc657c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1662,14 +1662,14 @@ typescript "^3.4.5" vuepress "^1.0.0-alpha.47" -"@polkadot/keyring@^0.90.0-beta.4": - version "0.90.0-beta.4" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.90.0-beta.4.tgz#3b3ada2e1945025aeca5acf345b0023965682dc8" - integrity sha512-t3NEC2hIJri5metrTXOQpoKjpnuL+RIe7uAFhlXByaMgS+92bEPkcFamuza91L8bVxJvCxbhYWNl0P6hnv+7lw== +"@polkadot/keyring@^0.90.1": + version "0.90.1" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.90.1.tgz#ad8c499eebfaebfdd02da4ed4b56e171e76a58f4" + integrity sha512-wOfZPFrsbuTRlzmDw632tI66UbAW8rZnUFFHACjIBwiUgwy+KAgygCJtmZR1PcEn7O+dfDImrxcu34cSagBQXQ== dependencies: "@babel/runtime" "^7.4.4" - "@polkadot/util" "^0.90.0-beta.4" - "@polkadot/util-crypto" "^0.90.0-beta.4" + "@polkadot/util" "^0.90.1" + "@polkadot/util-crypto" "^0.90.1" "@types/bs58" "^4.0.0" bs58 "^4.0.1" @@ -1678,13 +1678,13 @@ resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.56.tgz#ffd6e9c95704a7fb90b918193b9dc5c440114b27" integrity sha512-wnt4zXxZXyz6WaubTO/I+nUElwV2DogFzdl6CrKfVn2PTWp8uHN06W9s40FH57ORtmQfDr9rLRP8Nq+oIyElbg== -"@polkadot/util-crypto@^0.90.0-beta.4": - version "0.90.0-beta.4" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.90.0-beta.4.tgz#a4ceb7003836b87c50d65009d09e3fb9b94fb9ab" - integrity sha512-lxtnbKgIVP84I9g3NlNx52+YoqlmEvmWr48nxHuTQEsoNt348GwSwGlIv4laMXJ+WP2PSAqSvWtJbK8L7a4gpA== +"@polkadot/util-crypto@^0.90.1": + version "0.90.1" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.90.1.tgz#2cec2f43995a8dca2f736a920b34fb3270bdeb02" + integrity sha512-sF8xTPWNdbJ/NZsAWpGVQFSnYlm4tkV60xYLz93CH0AjWky6A1TXNYzfvIZV91I0BzEQPCt3pCSRzVlsLdG4Ww== dependencies: "@babel/runtime" "^7.4.4" - "@polkadot/util" "^0.90.0-beta.4" + "@polkadot/util" "^0.90.1" "@polkadot/wasm-crypto" "^0.9.1" "@types/bip39" "^2.4.2" "@types/pbkdf2" "^3.0.0" @@ -1698,10 +1698,10 @@ tweetnacl "^1.0.1" xxhashjs "^0.2.2" -"@polkadot/util@^0.90.0-beta.4": - version "0.90.0-beta.4" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.90.0-beta.4.tgz#b682e67216cb5b4145dec3a9a082df4f8a10d0b2" - integrity sha512-8zAFLjPvOgryfRTs7BWr+ITyj4FQmWBwPMoKvw4sbGw8KxzcOegXIoi5rLW9VtSq7UqCKE6wi8s1lYF5PDnBbA== +"@polkadot/util@^0.90.1": + version "0.90.1" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.90.1.tgz#25f4f1bd1702cb12f10b8f94de5b79d4eda98ed9" + integrity sha512-vquT0fnBycm1jCG9gpLkJruLmA1J4P1nJvmvoLfZn5lDI4IChgwoK2rv9aDDfEfO/sYIRUqyiuMiT9TwzL2udA== dependencies: "@babel/runtime" "^7.4.4" "@types/bn.js" "^4.11.5"