diff --git a/CHANGELOG.md b/CHANGELOG.md index 18c1fe2f90..6f6060d599 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,13 @@ -# 1.8.0-beta.x +# 1.8.1 Mar 22, 2020 -- **Breaking change** The format for any custom RPCs have been changed, alongside API-internal changes to allow for better RPC management. If you are currently using custom RPCs (or planning to do so), look at the [updated documentation](https://polkadot.js.org/api/start/rpc.custom.html) +- **Breaking change** The format for any custom RPCs have been changed alongside API-internal changes to allow for better RPC management. If you are currently using custom RPCs (or planning to do so), look at the [updated documentation](https://polkadot.js.org/api/start/rpc.custom.html) - **Breaking change** Alongside API RPC changes, the `@polkadot/jsonrpc` package has been removed. Since it was never documented and only used internally, this should not have adverse impacts. All RPC definitions itself has now been moved to the relevant modules inside `@polkadot/types/interfaces` -- **Important** Substrate has made changes to democracy, if using an older chain add the `ReferendumInfo: 'ReferendumInfoTo239'` type if using referendums -- Adjust referendum derives to cater for new and old democracy (`referendumInfo` now includes `status` field, not `info`) +- **Important** Substrate has an updated democracy module. If using an older chain add the `ReferendumInfo: 'ReferendumInfoTo239'` type when using referendums +- The `isRetracted` Extrinsic status is now a warning, not a fatal error, correctly aligning with Polkadot/Substrate - The Substrate extrinsic phase definitions has been expanded with `Initialization` to align with the latest versions +- Add support for all known substrate RPC methods +- Extend account derives to include status flags, e.g. `isCouncil`, `isSudo`, ... +- Adjusted referendum derives to cater for bot new/old democracy. Derived `referendumInfo` now includes `status` field, not `info` # 1.7.1 Mar 17, 2020 diff --git a/lerna.json b/lerna.json index 5c719092ad..d34c1e9781 100644 --- a/lerna.json +++ b/lerna.json @@ -9,5 +9,5 @@ "packages": [ "packages/*" ], - "version": "1.8.0-beta.12" + "version": "1.8.0" } diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index b71b8bbb8b..8dc37907c8 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-contract", - "version": "1.8.0-beta.12", + "version": "1.8.0", "description": "Interfaces for interacting with contracts and contract ABIs", "main": "index.js", "keywords": [ @@ -27,9 +27,9 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/api": "1.8.0-beta.12", - "@polkadot/rpc-core": "1.8.0-beta.12", - "@polkadot/types": "1.8.0-beta.12", + "@polkadot/api": "1.8.0", + "@polkadot/rpc-core": "1.8.0", + "@polkadot/types": "1.8.0", "@polkadot/util": "^2.6.2", "bn.js": "^5.1.1", "rxjs": "^6.5.4" diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index a762992389..4b8c5c7eca 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api-derive", - "version": "1.8.0-beta.12", + "version": "1.8.0", "description": "Common functions used across Polkadot, derived from RPC calls and storage queries.", "main": "index.js", "keywords": [ @@ -28,10 +28,10 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/api": "1.8.0-beta.12", - "@polkadot/rpc-core": "1.8.0-beta.12", - "@polkadot/rpc-provider": "1.8.0-beta.12", - "@polkadot/types": "1.8.0-beta.12", + "@polkadot/api": "1.8.0", + "@polkadot/rpc-core": "1.8.0", + "@polkadot/rpc-provider": "1.8.0", + "@polkadot/types": "1.8.0", "@polkadot/util": "^2.6.2", "@polkadot/util-crypto": "^2.6.2", "bn.js": "^5.1.1", diff --git a/packages/api/package.json b/packages/api/package.json index 7b42261f34..f1b93d008f 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/api", - "version": "1.8.0-beta.12", + "version": "1.8.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.9.2", - "@polkadot/api-derive": "1.8.0-beta.12", + "@polkadot/api-derive": "1.8.0", "@polkadot/keyring": "^2.6.2", - "@polkadot/metadata": "1.8.0-beta.12", - "@polkadot/rpc-core": "1.8.0-beta.12", - "@polkadot/rpc-provider": "1.8.0-beta.12", - "@polkadot/types": "1.8.0-beta.12", + "@polkadot/metadata": "1.8.0", + "@polkadot/rpc-core": "1.8.0", + "@polkadot/rpc-provider": "1.8.0", + "@polkadot/types": "1.8.0", "@polkadot/util": "^2.6.2", "@polkadot/util-crypto": "^2.6.2", "bn.js": "^5.1.1", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index d2a24fb9cf..2b8ffe54d4 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/metadata", - "version": "1.8.0-beta.12", + "version": "1.8.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.9.2", - "@polkadot/types": "1.8.0-beta.12", + "@polkadot/types": "1.8.0", "@polkadot/util": "^2.6.2", "@polkadot/util-crypto": "^2.6.2", "bn.js": "^5.1.1" diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 37cbc75a2c..f9b416db0d 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-core", - "version": "1.8.0-beta.12", + "version": "1.8.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.9.2", - "@polkadot/metadata": "1.8.0-beta.12", - "@polkadot/rpc-provider": "1.8.0-beta.12", - "@polkadot/types": "1.8.0-beta.12", + "@polkadot/metadata": "1.8.0", + "@polkadot/rpc-provider": "1.8.0", + "@polkadot/types": "1.8.0", "@polkadot/util": "^2.6.2", "memoizee": "^0.4.14", "rxjs": "^6.5.4" diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 08a0e26f50..d56618cd31 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/rpc-provider", - "version": "1.8.0-beta.12", + "version": "1.8.0", "description": "Transport providers for the API", "main": "index.js", "keywords": [ @@ -27,8 +27,8 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/metadata": "1.8.0-beta.12", - "@polkadot/types": "1.8.0-beta.12", + "@polkadot/metadata": "1.8.0", + "@polkadot/types": "1.8.0", "@polkadot/util": "^2.6.2", "@polkadot/util-crypto": "^2.6.2", "bn.js": "^5.1.1", diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 6d21be8d4f..2e96fee57c 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/typegen", - "version": "1.8.0-beta.12", + "version": "1.8.0", "description": "Type generation scripts", "main": "index.js", "bin": { @@ -36,10 +36,10 @@ "@babel/core": "^7.9.0", "@babel/register": "^7.9.0", "@babel/runtime": "^7.9.2", - "@polkadot/api": "1.8.0-beta.12", - "@polkadot/metadata": "1.8.0-beta.12", - "@polkadot/rpc-provider": "1.8.0-beta.12", - "@polkadot/types": "1.8.0-beta.12", + "@polkadot/api": "1.8.0", + "@polkadot/metadata": "1.8.0", + "@polkadot/rpc-provider": "1.8.0", + "@polkadot/types": "1.8.0", "@polkadot/util": "^2.6.2", "websocket": "^1.0.31", "yargs": "^15.3.1" diff --git a/packages/types/package.json b/packages/types/package.json index 9046df1348..2264c9e8af 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/types", - "version": "1.8.0-beta.12", + "version": "1.8.0", "description": "Implementation of the Parity codec", "main": "index.js", "keywords": [ @@ -27,7 +27,7 @@ "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme", "dependencies": { "@babel/runtime": "^7.9.2", - "@polkadot/metadata": "1.8.0-beta.12", + "@polkadot/metadata": "1.8.0", "@polkadot/util": "^2.6.2", "@polkadot/util-crypto": "^2.6.2", "@types/bn.js": "^4.11.6", diff --git a/yarn.lock b/yarn.lock index c084da6cd4..29f406a285 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2597,25 +2597,25 @@ __metadata: resolution: "@polkadot/api-contract@workspace:packages/api-contract" dependencies: "@babel/runtime": ^7.9.2 - "@polkadot/api": 1.8.0-beta.12 - "@polkadot/rpc-core": 1.8.0-beta.12 - "@polkadot/types": 1.8.0-beta.12 + "@polkadot/api": 1.8.0 + "@polkadot/rpc-core": 1.8.0 + "@polkadot/types": 1.8.0 "@polkadot/util": ^2.6.2 bn.js: ^5.1.1 rxjs: ^6.5.4 languageName: unknown linkType: soft -"@polkadot/api-derive@1.8.0-beta.12, @polkadot/api-derive@workspace:packages/api-derive": +"@polkadot/api-derive@1.8.0, @polkadot/api-derive@workspace:packages/api-derive": version: 0.0.0-use.local resolution: "@polkadot/api-derive@workspace:packages/api-derive" dependencies: "@babel/runtime": ^7.9.2 - "@polkadot/api": 1.8.0-beta.12 + "@polkadot/api": 1.8.0 "@polkadot/keyring": ^2.6.2 - "@polkadot/rpc-core": 1.8.0-beta.12 - "@polkadot/rpc-provider": 1.8.0-beta.12 - "@polkadot/types": 1.8.0-beta.12 + "@polkadot/rpc-core": 1.8.0 + "@polkadot/rpc-provider": 1.8.0 + "@polkadot/types": 1.8.0 "@polkadot/util": ^2.6.2 "@polkadot/util-crypto": ^2.6.2 bn.js: ^5.1.1 @@ -2624,17 +2624,17 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/api@1.8.0-beta.12, @polkadot/api@workspace:packages/api": +"@polkadot/api@1.8.0, @polkadot/api@workspace:packages/api": version: 0.0.0-use.local resolution: "@polkadot/api@workspace:packages/api" dependencies: "@babel/runtime": ^7.9.2 - "@polkadot/api-derive": 1.8.0-beta.12 + "@polkadot/api-derive": 1.8.0 "@polkadot/keyring": ^2.6.2 - "@polkadot/metadata": 1.8.0-beta.12 - "@polkadot/rpc-core": 1.8.0-beta.12 - "@polkadot/rpc-provider": 1.8.0-beta.12 - "@polkadot/types": 1.8.0-beta.12 + "@polkadot/metadata": 1.8.0 + "@polkadot/rpc-core": 1.8.0 + "@polkadot/rpc-provider": 1.8.0 + "@polkadot/types": 1.8.0 "@polkadot/util": ^2.6.2 "@polkadot/util-crypto": ^2.6.2 bn.js: ^5.1.1 @@ -2740,42 +2740,42 @@ __metadata: languageName: node linkType: hard -"@polkadot/metadata@1.8.0-beta.12, @polkadot/metadata@workspace:packages/metadata": +"@polkadot/metadata@1.8.0, @polkadot/metadata@workspace:packages/metadata": version: 0.0.0-use.local resolution: "@polkadot/metadata@workspace:packages/metadata" dependencies: "@babel/runtime": ^7.9.2 "@polkadot/keyring": ^2.6.2 - "@polkadot/types": 1.8.0-beta.12 + "@polkadot/types": 1.8.0 "@polkadot/util": ^2.6.2 "@polkadot/util-crypto": ^2.6.2 bn.js: ^5.1.1 languageName: unknown linkType: soft -"@polkadot/rpc-core@1.8.0-beta.12, @polkadot/rpc-core@workspace:packages/rpc-core": +"@polkadot/rpc-core@1.8.0, @polkadot/rpc-core@workspace:packages/rpc-core": version: 0.0.0-use.local resolution: "@polkadot/rpc-core@workspace:packages/rpc-core" dependencies: "@babel/runtime": ^7.9.2 "@polkadot/keyring": ^2.6.2 - "@polkadot/metadata": 1.8.0-beta.12 - "@polkadot/rpc-provider": 1.8.0-beta.12 - "@polkadot/types": 1.8.0-beta.12 + "@polkadot/metadata": 1.8.0 + "@polkadot/rpc-provider": 1.8.0 + "@polkadot/types": 1.8.0 "@polkadot/util": ^2.6.2 memoizee: ^0.4.14 rxjs: ^6.5.4 languageName: unknown linkType: soft -"@polkadot/rpc-provider@1.8.0-beta.12, @polkadot/rpc-provider@workspace:packages/rpc-provider": +"@polkadot/rpc-provider@1.8.0, @polkadot/rpc-provider@workspace:packages/rpc-provider": version: 0.0.0-use.local resolution: "@polkadot/rpc-provider@workspace:packages/rpc-provider" dependencies: "@babel/runtime": ^7.9.2 "@polkadot/keyring": ^2.6.2 - "@polkadot/metadata": 1.8.0-beta.12 - "@polkadot/types": 1.8.0-beta.12 + "@polkadot/metadata": 1.8.0 + "@polkadot/types": 1.8.0 "@polkadot/util": ^2.6.2 "@polkadot/util-crypto": ^2.6.2 bn.js: ^5.1.1 @@ -2803,10 +2803,10 @@ __metadata: "@babel/core": ^7.9.0 "@babel/register": ^7.9.0 "@babel/runtime": ^7.9.2 - "@polkadot/api": 1.8.0-beta.12 - "@polkadot/metadata": 1.8.0-beta.12 - "@polkadot/rpc-provider": 1.8.0-beta.12 - "@polkadot/types": 1.8.0-beta.12 + "@polkadot/api": 1.8.0 + "@polkadot/metadata": 1.8.0 + "@polkadot/rpc-provider": 1.8.0 + "@polkadot/types": 1.8.0 "@polkadot/util": ^2.6.2 "@types/websocket": ^1.0.0 "@types/yargs": ^15.0.4 @@ -2821,13 +2821,13 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/types@1.8.0-beta.12, @polkadot/types@workspace:packages/types": +"@polkadot/types@1.8.0, @polkadot/types@workspace:packages/types": version: 0.0.0-use.local resolution: "@polkadot/types@workspace:packages/types" dependencies: "@babel/runtime": ^7.9.2 "@polkadot/keyring": ^2.6.2 - "@polkadot/metadata": 1.8.0-beta.12 + "@polkadot/metadata": 1.8.0 "@polkadot/util": ^2.6.2 "@polkadot/util-crypto": ^2.6.2 "@types/bn.js": ^4.11.6