* 1.5

* Util bumps

* Install after bump
This commit is contained in:
Jaco Greeff
2020-03-06 08:03:12 +01:00
committed by GitHub
parent 023bc5aaa6
commit 71b33e2e42
13 changed files with 88 additions and 86 deletions
+9 -6
View File
@@ -1,19 +1,22 @@
# 1.5.0-beta.x
# 1.5.1 Mar 06, 2020
- **Important** Substrate master has updated staking, on older chains supply `StakingLedger: 'StakingLedgerTo223'`
- **Important** Substrate master has updated collective, on older chains supply `Votes: 'VotesTo230'`
- Add proper support for type generation with an Enum containing an Tuple (Thanks to https://github.com/monitz87)
- Fix storage parsing not resulting in rejected Promises (Fix from https://github.com/aniiantt applied)
- Remove use of deprecated `Observable.create` (Thanks to https://github.com/Himself65)
- Type generation will now handle the same sub-module name across packages, i.e. `@polkadot/types/interfaces/runtime` & `@mine/interfaces/runtime`)
- Add types & metadata for the latest Polkadot/Substrate runtime versions (master branches)
- Type extraction will now allow the same sub-module name across packages, i.e. `@polkadot/types/interfaces/runtime` & `@mine/interfaces/runtime` will be valid
- Add `.range([from, to]: [Hash, Hash?], ...args: any[]): [Hash, Codec][]` on all storage entries
- Add `.raw(...args: any[]): Promise<Uint8Array & Codec>` to all RPC calls, returning the un-encoded result
- Allow pre-module type aliasing with `typesAlias: { <moduleName>: { <meta-type>: <alias-type> } }`on API construction options
- Allow pre-module type aliasing with `typesAlias: { <moduleName>: { <meta-type>: <alias-type> } }` in API construction options
- Allow `BTreeMap` to be initialized with a `Record<string, any>` object (in addition to `Map`)
- Allow for `HashMap<KeyType, ValueType>` definitions
- `Bool` will now correctly return `isEmpty` on false/default values
- Refresh the `NetworkState` types as returned by the `rpc.system.networkState()` call to current
- 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.
- Add additional derives to `api.derive.staking` to handle lazy-payout calculations
- Add types & metadata for the latest Polkadot/Substrate versions
- 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.
- Add additional derives to `api.derive.staking` to handle lazy-payout retrievals
- Update `@polkadot/{util, util-crypto, keyring}` to 1.6.1 & `@polkadot/wasm` to 1.2.1
# 1.4.2 Feb 27, 2020
+1 -1
View File
@@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
"version": "1.5.0-beta.33"
"version": "1.5.0"
}
+1 -2
View File
@@ -25,10 +25,9 @@
"@babel/core": "^7.8.4",
"@babel/register": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/dev": "^0.50.26",
"@polkadot/dev": "^0.50.27",
"@polkadot/ts": "^0.3.7",
"@polkadot/typegen": "workspace:packages/typegen",
"@vue/component-compiler-utils": "^3.1.1",
"copyfiles": "^2.2.0"
}
}
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-contract",
"version": "1.5.0-beta.33",
"version": "1.5.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.8.4",
"@polkadot/api": "1.5.0-beta.33",
"@polkadot/rpc-core": "1.5.0-beta.33",
"@polkadot/types": "1.5.0-beta.33",
"@polkadot/api": "1.5.0",
"@polkadot/rpc-core": "1.5.0",
"@polkadot/types": "1.5.0",
"@polkadot/util": "^2.6.1",
"bn.js": "^5.1.1",
"rxjs": "^6.5.4"
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api-derive",
"version": "1.5.0-beta.33",
"version": "1.5.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.8.4",
"@polkadot/api": "1.5.0-beta.33",
"@polkadot/rpc-core": "1.5.0-beta.33",
"@polkadot/rpc-provider": "1.5.0-beta.33",
"@polkadot/types": "1.5.0-beta.33",
"@polkadot/api": "1.5.0",
"@polkadot/rpc-core": "1.5.0",
"@polkadot/rpc-provider": "1.5.0",
"@polkadot/types": "1.5.0",
"@polkadot/util": "^2.6.1",
"@polkadot/util-crypto": "^2.6.1",
"bn.js": "^5.1.1",
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/api",
"version": "1.5.0-beta.33",
"version": "1.5.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.8.4",
"@polkadot/api-derive": "1.5.0-beta.33",
"@polkadot/api-derive": "1.5.0",
"@polkadot/keyring": "^2.6.1",
"@polkadot/metadata": "1.5.0-beta.33",
"@polkadot/rpc-core": "1.5.0-beta.33",
"@polkadot/rpc-provider": "1.5.0-beta.33",
"@polkadot/types": "1.5.0-beta.33",
"@polkadot/metadata": "1.5.0",
"@polkadot/rpc-core": "1.5.0",
"@polkadot/rpc-provider": "1.5.0",
"@polkadot/types": "1.5.0",
"@polkadot/util": "^2.6.1",
"@polkadot/util-crypto": "^2.6.1",
"bn.js": "^5.1.1",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/jsonrpc",
"version": "1.5.0-beta.33",
"version": "1.5.0",
"description": "Method definitions for the Polkadot RPC layer",
"main": "index.js",
"publishConfig": {
@@ -27,7 +27,7 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/jsonrpc#readme",
"dependencies": {
"@babel/runtime": "^7.8.4",
"@polkadot/types": "1.5.0-beta.33",
"@polkadot/types": "1.5.0",
"@polkadot/util": "^2.6.1"
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/metadata",
"version": "1.5.0-beta.33",
"version": "1.5.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.8.4",
"@polkadot/types": "1.5.0-beta.33",
"@polkadot/types": "1.5.0",
"@polkadot/util": "^2.6.1",
"@polkadot/util-crypto": "^2.6.1",
"bn.js": "^5.1.1"
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-core",
"version": "1.5.0-beta.33",
"version": "1.5.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
@@ -27,10 +27,10 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
"dependencies": {
"@babel/runtime": "^7.8.4",
"@polkadot/jsonrpc": "1.5.0-beta.33",
"@polkadot/metadata": "1.5.0-beta.33",
"@polkadot/rpc-provider": "1.5.0-beta.33",
"@polkadot/types": "1.5.0-beta.33",
"@polkadot/jsonrpc": "1.5.0",
"@polkadot/metadata": "1.5.0",
"@polkadot/rpc-provider": "1.5.0",
"@polkadot/types": "1.5.0",
"@polkadot/util": "^2.6.1",
"memoizee": "^0.4.14",
"rxjs": "^6.5.4"
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/rpc-provider",
"version": "1.5.0-beta.33",
"version": "1.5.0",
"description": "Transport providers for the API",
"main": "index.js",
"keywords": [
@@ -27,9 +27,9 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
"dependencies": {
"@babel/runtime": "^7.8.4",
"@polkadot/jsonrpc": "1.5.0-beta.33",
"@polkadot/metadata": "1.5.0-beta.33",
"@polkadot/types": "1.5.0-beta.33",
"@polkadot/jsonrpc": "1.5.0",
"@polkadot/metadata": "1.5.0",
"@polkadot/types": "1.5.0",
"@polkadot/util": "^2.6.1",
"@polkadot/util-crypto": "^2.6.1",
"bn.js": "^5.1.1",
+6 -6
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/typegen",
"version": "1.5.0-beta.33",
"version": "1.5.0",
"description": "Type generation scripts",
"main": "index.js",
"bin": {
@@ -36,11 +36,11 @@
"@babel/core": "^7.8.3",
"@babel/register": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@polkadot/api": "1.5.0-beta.33",
"@polkadot/jsonrpc": "1.5.0-beta.33",
"@polkadot/metadata": "1.5.0-beta.33",
"@polkadot/rpc-provider": "1.5.0-beta.33",
"@polkadot/types": "1.5.0-beta.33",
"@polkadot/api": "1.5.0",
"@polkadot/jsonrpc": "1.5.0",
"@polkadot/metadata": "1.5.0",
"@polkadot/rpc-provider": "1.5.0",
"@polkadot/types": "1.5.0",
"@polkadot/util": "^2.6.1",
"websocket": "^1.0.31",
"yargs": "^15.1.0"
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/types",
"version": "1.5.0-beta.33",
"version": "1.5.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.8.4",
"@polkadot/metadata": "1.5.0-beta.33",
"@polkadot/metadata": "1.5.0",
"@polkadot/util": "^2.6.1",
"@polkadot/util-crypto": "^2.6.1",
"@types/bn.js": "^4.11.6",
+41 -41
View File
@@ -2756,25 +2756,25 @@ __metadata:
resolution: "@polkadot/api-contract@workspace:packages/api-contract"
dependencies:
"@babel/runtime": ^7.8.4
"@polkadot/api": 1.5.0-beta.33
"@polkadot/rpc-core": 1.5.0-beta.33
"@polkadot/types": 1.5.0-beta.33
"@polkadot/api": 1.5.0
"@polkadot/rpc-core": 1.5.0
"@polkadot/types": 1.5.0
"@polkadot/util": ^2.6.1
bn.js: ^5.1.1
rxjs: ^6.5.4
languageName: unknown
linkType: soft
"@polkadot/api-derive@1.5.0-beta.33, @polkadot/api-derive@workspace:packages/api-derive":
"@polkadot/api-derive@1.5.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.8.4
"@polkadot/api": 1.5.0-beta.33
"@polkadot/api": 1.5.0
"@polkadot/keyring": ^2.6.1
"@polkadot/rpc-core": 1.5.0-beta.33
"@polkadot/rpc-provider": 1.5.0-beta.33
"@polkadot/types": 1.5.0-beta.33
"@polkadot/rpc-core": 1.5.0
"@polkadot/rpc-provider": 1.5.0
"@polkadot/types": 1.5.0
"@polkadot/util": ^2.6.1
"@polkadot/util-crypto": ^2.6.1
bn.js: ^5.1.1
@@ -2783,17 +2783,17 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/api@1.5.0-beta.33, @polkadot/api@workspace:packages/api":
"@polkadot/api@1.5.0, @polkadot/api@workspace:packages/api":
version: 0.0.0-use.local
resolution: "@polkadot/api@workspace:packages/api"
dependencies:
"@babel/runtime": ^7.8.4
"@polkadot/api-derive": 1.5.0-beta.33
"@polkadot/api-derive": 1.5.0
"@polkadot/keyring": ^2.6.1
"@polkadot/metadata": 1.5.0-beta.33
"@polkadot/rpc-core": 1.5.0-beta.33
"@polkadot/rpc-provider": 1.5.0-beta.33
"@polkadot/types": 1.5.0-beta.33
"@polkadot/metadata": 1.5.0
"@polkadot/rpc-core": 1.5.0
"@polkadot/rpc-provider": 1.5.0
"@polkadot/types": 1.5.0
"@polkadot/util": ^2.6.1
"@polkadot/util-crypto": ^2.6.1
bn.js: ^5.1.1
@@ -2802,9 +2802,9 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/dev@npm:^0.50.26":
version: 0.50.26
resolution: "@polkadot/dev@npm:0.50.26"
"@polkadot/dev@npm:^0.50.27":
version: 0.50.27
resolution: "@polkadot/dev@npm:0.50.27"
dependencies:
"@babel/cli": ^7.8.4
"@babel/core": ^7.8.6
@@ -2830,6 +2830,7 @@ __metadata:
"@types/node": ^13.7.7
"@typescript-eslint/eslint-plugin": 2.22.0
"@typescript-eslint/parser": 2.22.0
"@vue/component-compiler-utils": ^3.1.1
"@yarnpkg/pnpify": ^2.0.0-rc.18
babel-core: ^7.0.0-bridge.0
babel-jest: ^25.1.0
@@ -2884,17 +2885,17 @@ __metadata:
polkadot-exec-tsc: scripts/polkadot-exec-tsc.js
polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js
polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js
polkadot-exec-webpack: scripts/polkadot-exe-webpackc.js
checksum: 2/0b46810d10b50e62aa8c9efd07c22e59f9c6f66ca05dc34355890b2a2cde806301c872b27e56ffeddb23bcc4848f4748aa0c52431da8f90f560e5c4dfee5f329
polkadot-exec-webpack: scripts/polkadot-exec-webpack.js
checksum: 2/6198f095e351835d0491d0a9ea881add1e2eacb9b4ea342cf954d476ec11ef97faf54dac032b57f011d7074af2e891806b2c7ed21953e9208781450ae103faba
languageName: node
linkType: hard
"@polkadot/jsonrpc@1.5.0-beta.33, @polkadot/jsonrpc@workspace:packages/jsonrpc":
"@polkadot/jsonrpc@1.5.0, @polkadot/jsonrpc@workspace:packages/jsonrpc":
version: 0.0.0-use.local
resolution: "@polkadot/jsonrpc@workspace:packages/jsonrpc"
dependencies:
"@babel/runtime": ^7.8.4
"@polkadot/types": 1.5.0-beta.33
"@polkadot/types": 1.5.0
"@polkadot/util": ^2.6.1
languageName: unknown
linkType: soft
@@ -2910,44 +2911,44 @@ __metadata:
languageName: node
linkType: hard
"@polkadot/metadata@1.5.0-beta.33, @polkadot/metadata@workspace:packages/metadata":
"@polkadot/metadata@1.5.0, @polkadot/metadata@workspace:packages/metadata":
version: 0.0.0-use.local
resolution: "@polkadot/metadata@workspace:packages/metadata"
dependencies:
"@babel/runtime": ^7.8.4
"@polkadot/keyring": ^2.6.1
"@polkadot/types": 1.5.0-beta.33
"@polkadot/types": 1.5.0
"@polkadot/util": ^2.6.1
"@polkadot/util-crypto": ^2.6.1
bn.js: ^5.1.1
languageName: unknown
linkType: soft
"@polkadot/rpc-core@1.5.0-beta.33, @polkadot/rpc-core@workspace:packages/rpc-core":
"@polkadot/rpc-core@1.5.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.8.4
"@polkadot/jsonrpc": 1.5.0-beta.33
"@polkadot/jsonrpc": 1.5.0
"@polkadot/keyring": ^2.6.1
"@polkadot/metadata": 1.5.0-beta.33
"@polkadot/rpc-provider": 1.5.0-beta.33
"@polkadot/types": 1.5.0-beta.33
"@polkadot/metadata": 1.5.0
"@polkadot/rpc-provider": 1.5.0
"@polkadot/types": 1.5.0
"@polkadot/util": ^2.6.1
memoizee: ^0.4.14
rxjs: ^6.5.4
languageName: unknown
linkType: soft
"@polkadot/rpc-provider@1.5.0-beta.33, @polkadot/rpc-provider@workspace:packages/rpc-provider":
"@polkadot/rpc-provider@1.5.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.8.4
"@polkadot/jsonrpc": 1.5.0-beta.33
"@polkadot/jsonrpc": 1.5.0
"@polkadot/keyring": ^2.6.1
"@polkadot/metadata": 1.5.0-beta.33
"@polkadot/types": 1.5.0-beta.33
"@polkadot/metadata": 1.5.0
"@polkadot/types": 1.5.0
"@polkadot/util": ^2.6.1
"@polkadot/util-crypto": ^2.6.1
bn.js: ^5.1.1
@@ -2975,11 +2976,11 @@ __metadata:
"@babel/core": ^7.8.3
"@babel/register": ^7.8.3
"@babel/runtime": ^7.8.4
"@polkadot/api": 1.5.0-beta.33
"@polkadot/jsonrpc": 1.5.0-beta.33
"@polkadot/metadata": 1.5.0-beta.33
"@polkadot/rpc-provider": 1.5.0-beta.33
"@polkadot/types": 1.5.0-beta.33
"@polkadot/api": 1.5.0
"@polkadot/jsonrpc": 1.5.0
"@polkadot/metadata": 1.5.0
"@polkadot/rpc-provider": 1.5.0
"@polkadot/types": 1.5.0
"@polkadot/util": ^2.6.1
"@types/websocket": ^1.0.0
"@types/yargs": ^15.0.3
@@ -2994,13 +2995,13 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/types@1.5.0-beta.33, @polkadot/types@workspace:packages/types":
"@polkadot/types@1.5.0, @polkadot/types@workspace:packages/types":
version: 0.0.0-use.local
resolution: "@polkadot/types@workspace:packages/types"
dependencies:
"@babel/runtime": ^7.8.4
"@polkadot/keyring": ^2.6.1
"@polkadot/metadata": 1.5.0-beta.33
"@polkadot/metadata": 1.5.0
"@polkadot/util": ^2.6.1
"@polkadot/util-crypto": ^2.6.1
"@types/bn.js": ^4.11.6
@@ -15590,10 +15591,9 @@ resolve@1.1.7:
"@babel/core": ^7.8.4
"@babel/register": ^7.8.3
"@babel/runtime": ^7.8.4
"@polkadot/dev": ^0.50.26
"@polkadot/dev": ^0.50.27
"@polkadot/ts": ^0.3.7
"@polkadot/typegen": "workspace:packages/typegen"
"@vue/component-compiler-utils": ^3.1.1
copyfiles: ^2.2.0
languageName: unknown
linkType: soft