From 89700f98c579dc53bca6bea174445aa3f1e1788d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 29 Nov 2019 09:55:42 +0100 Subject: [PATCH] 0.97 (#1614) * 0.97 * Bump version, add Keys & ValidatorPrefs to CHANGELOG * V9, V10 --- CHANGELOG.md | 8 ++++++-- lerna.json | 2 +- packages/api-contract/package.json | 4 ++-- packages/api-derive/package.json | 6 +++--- packages/api/package.json | 12 ++++++------ packages/metadata/package.json | 4 ++-- packages/rpc-core/package.json | 8 ++++---- packages/rpc-provider/package.json | 4 ++-- packages/type-jsonrpc/package.json | 2 +- packages/types/package.json | 2 +- 10 files changed, 28 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cd0de96249c..6df714841e1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ -# 0.97.0-beta.x +# 0.97.1 - **Breaking change** Add the passing on an explicit `Registry` to all calls to `createType` as well as all codec classes. If you are upgrading form an older version, use the [migration guide](UPGRADING.md) to walk through the changes required. - **Breaking change** The metadata classes have been moved from `@polkadot/types` into `@polkadot/metadata`. If you explicitly create `Metadata` classes, you now would need to do so with the `import Metadata from '@polkadot/metadata';` This is a decorated class, where the previous metadata is now available on `Metadata.metadata`, alongside decorated `consts.*`', `tx.*` and `query.*`. +- **Breaking change** Session `Keys` defaults to 4 keys now (Substrate master), depending on your node config, you would want to override with e.g. `Keys: 'SessionKeys3'` (1, 2, 3, 4, 5 & 6) +- **Breaking change** `ValidatorPrefs` now default to the new percentage commission model, to use the previous `validatorPayment`, you can override with `ValidatorPrefs: 'ValidatorPrefsTo196'` - `api.derive.*` now has built-in memomization - Various fixes and cleanups to `api.derive.*` including era length progress and vesting calculations -- Aligned all types with the latest Polkadot & Substrate +- Aligned all types with the latest Polkadot & Substrate, including Kusama CC3 +- Support for Metadata V9, which adjusts the hashing methods of storage entries +- Support for Metadata V10 (still un-released), which includes prefixed map support # 0.96.1 diff --git a/lerna.json b/lerna.json index d694256bfa42..1415aa94ebff 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "0.97.0-beta.40" + "version": "0.97.0" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index d23f4aef089b..80253cea28b9 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "0.97.0-beta.40", + "version": "0.97.0", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "keywords": [ @@ -27,6 +27,6 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.7.4", - "@polkadot/types": "^0.97.0-beta.40" + "@polkadot/types": "^0.97.0" } } diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index a3917bd8c799..e44fa45ae3b6 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "0.97.0-beta.40", + "version": "0.97.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,8 +28,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.7.4", - "@polkadot/api": "^0.97.0-beta.40", - "@polkadot/types": "^0.97.0-beta.40" + "@polkadot/api": "^0.97.0", + "@polkadot/types": "^0.97.0" }, "devDependencies": { "@polkadot/keyring": "^1.7.1" diff --git a/packages/api/package.json b/packages/api/package.json index 5bfa2b725cf2..f190a4640f06 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "0.97.0-beta.40", + "version": "0.97.0", "description": "Promise and RxJS wrappers around the Polkadot JS RPC", "main": "index.js", "keywords": [ @@ -27,12 +27,12 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme", "dependencies": { "@babel/runtime": "^7.7.4", - "@polkadot/api-derive": "^0.97.0-beta.40", + "@polkadot/api-derive": "^0.97.0", "@polkadot/keyring": "^1.7.1", - "@polkadot/metadata": "^0.97.0-beta.40", - "@polkadot/rpc-core": "^0.97.0-beta.40", - "@polkadot/rpc-provider": "^0.97.0-beta.40", - "@polkadot/types": "^0.97.0-beta.40", + "@polkadot/metadata": "^0.97.0", + "@polkadot/rpc-core": "^0.97.0", + "@polkadot/rpc-provider": "^0.97.0", + "@polkadot/types": "^0.97.0", "@polkadot/util-crypto": "^1.7.1" }, "devDependencies": { diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 810eeb6e6e7c..d1f78d545d54 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "0.97.0-beta.40", + "version": "0.97.0", "description": "Helpers to extract information from runtime metadata", "main": "index.js", "publishConfig": { @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme", "dependencies": { "@babel/runtime": "^7.7.4", - "@polkadot/types": "^0.97.0-beta.40", + "@polkadot/types": "^0.97.0", "@polkadot/util": "^1.7.1", "@polkadot/util-crypto": "^1.7.1" }, diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index e08b7c7bfe41..7a990a1f8d5b 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "0.97.0-beta.40", + "version": "0.97.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.7.4", - "@polkadot/jsonrpc": "^0.97.0-beta.40", - "@polkadot/rpc-provider": "^0.97.0-beta.40", - "@polkadot/types": "^0.97.0-beta.40", + "@polkadot/jsonrpc": "^0.97.0", + "@polkadot/rpc-provider": "^0.97.0", + "@polkadot/types": "^0.97.0", "@polkadot/util": "^1.7.1", "rxjs": "^6.5.3" } diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 4dc1f2404a22..051120cea494 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "0.97.0-beta.40", + "version": "0.97.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.7.4", - "@polkadot/metadata": "^0.97.0-beta.40", + "@polkadot/metadata": "^0.97.0", "@polkadot/util": "^1.7.1", "@polkadot/util-crypto": "^1.7.1", "eventemitter3": "^4.0.0", diff --git a/packages/type-jsonrpc/package.json b/packages/type-jsonrpc/package.json index 90367a7d54b2..c9a0dcb12fe6 100644 --- a/packages/type-jsonrpc/package.json +++ b/packages/type-jsonrpc/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/jsonrpc", - "version": "0.97.0-beta.40", + "version": "0.97.0", "description": "Method definitions for the Polkadot RPC layer", "main": "index.js", "publishConfig": { diff --git a/packages/types/package.json b/packages/types/package.json index 67d7ed8bd29a..0c279e4d1891 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "0.97.0-beta.40", + "version": "0.97.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [