Skip to content

Commit 8293f4b

Browse files
authored
Bumps & 0.93 CHANGELOG (#1420)
* Bumps & 0.93 CHANGELOG * Linting
1 parent 4d2dfb4 commit 8293f4b

File tree

13 files changed

+414
-1216
lines changed

13 files changed

+414
-1216
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 0.93.0-beta.x
2+
3+
- For TypeScript users `api.query.*.*` is now properly typed for default Substrate calls, i.e. `api.query.balances.freeBalance(...)` will return a `Balance` type. Additionally the `api.queryMulti` and `.multi` on queries not allow generic type params.
4+
- Add `api.rpc.accounts.nextIndex`, `api.rpc.contracts.call` and `api.rpc.rpc.methods` calls. Optional calls (such as account/contracts) is decorated based on the results from `rpc.methods`, so they don't show up on nodes where they are not active.
5+
- Updated types to support the latest Polkadot/Substrate master changes
6+
- Support recursive type registration (self-referencing via `Box`) in addition to better sanitation of user-defined-types
7+
- Documentation and example updates (thanks mostly to contributions)
8+
19
# 0.92.1
210

311
- The API now correctly sets the ss58 prefix as retrieved from the chain properties via `ss58Format`

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"test:watch": "jest --coverage --watch"
3131
},
3232
"devDependencies": {
33-
"@babel/core": "^7.6.0",
34-
"@babel/register": "^7.6.0",
35-
"@babel/runtime": "^7.6.0",
36-
"@polkadot/dev": "^0.31.0-beta.8",
37-
"@polkadot/ts": "^0.1.72",
33+
"@babel/core": "^7.6.2",
34+
"@babel/register": "^7.6.2",
35+
"@babel/runtime": "^7.6.2",
36+
"@polkadot/dev": "^0.31.1",
37+
"@polkadot/ts": "^0.1.73",
3838
"gh-pages": "^2.1.1"
3939
}
4040
}

packages/api-contract/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-contract#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.6.0",
29+
"@babel/runtime": "^7.6.2",
3030
"@polkadot/types": "^0.93.0-beta.18"
3131
}
3232
}

packages/api-derive/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
},
2828
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api-derive#readme",
2929
"dependencies": {
30-
"@babel/runtime": "^7.6.0",
30+
"@babel/runtime": "^7.6.2",
3131
"@polkadot/api": "^0.93.0-beta.18",
3232
"@polkadot/types": "^0.93.0-beta.18"
3333
},
3434
"devDependencies": {
35-
"@polkadot/keyring": "^1.4.1"
35+
"@polkadot/keyring": "^1.5.1"
3636
}
3737
}

packages/api-metadata/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-metadata#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.6.0",
29+
"@babel/runtime": "^7.6.2",
3030
"@polkadot/types": "^0.93.0-beta.18",
31-
"@polkadot/util": "^1.4.1",
32-
"@polkadot/util-crypto": "^1.4.1"
31+
"@polkadot/util": "^1.5.1",
32+
"@polkadot/util-crypto": "^1.5.1"
3333
},
3434
"devDependencies": {
35-
"@polkadot/keyring": "^1.4.1"
35+
"@polkadot/keyring": "^1.5.1"
3636
}
3737
}

packages/api/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/api#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.6.0",
29+
"@babel/runtime": "^7.6.2",
3030
"@polkadot/api-derive": "^0.93.0-beta.18",
3131
"@polkadot/api-metadata": "^0.93.0-beta.18",
32-
"@polkadot/keyring": "^1.4.1",
32+
"@polkadot/keyring": "^1.5.1",
3333
"@polkadot/rpc-core": "^0.93.0-beta.18",
3434
"@polkadot/rpc-provider": "^0.93.0-beta.18",
3535
"@polkadot/types": "^0.93.0-beta.18",
36-
"@polkadot/util-crypto": "^1.4.1"
36+
"@polkadot/util-crypto": "^1.5.1"
3737
},
3838
"devDependencies": {
39-
"@polkadot/keyring": "^1.4.1"
39+
"@polkadot/keyring": "^1.5.1"
4040
}
4141
}

packages/api/src/base/Init.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// This software may be modified and distributed under the terms
33
// of the Apache-2.0 license. See the LICENSE file for details.
44

5-
import { Prefix } from '@polkadot/util-crypto/address/types';
65
import { SignedBlock } from '@polkadot/types/interfaces';
76
import { RegistryTypes } from '@polkadot/types/types';
87
import { ApiInterfaceRx, ApiOptions, ApiTypes, DecorateMethod } from '../types';
@@ -132,7 +131,7 @@ export default abstract class Init<ApiType> extends Decorate<ApiType> {
132131
this._runtimeVersion = runtimeVersion;
133132

134133
// set the global ss58Format as detected by the chain
135-
setSS58Format(chainProps.ss58Format.unwrapOr(DEFAULT_SS58).toNumber() as Prefix);
134+
setSS58Format(chainProps.ss58Format.unwrapOr(DEFAULT_SS58).toNumber());
136135

137136
// get unique types & validate
138137
metadata.getUniqTypes(false);

packages/rpc-core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-core#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.6.0",
29+
"@babel/runtime": "^7.6.2",
3030
"@polkadot/jsonrpc": "^0.93.0-beta.18",
3131
"@polkadot/rpc-provider": "^0.93.0-beta.18",
3232
"@polkadot/types": "^0.93.0-beta.18",
33-
"@polkadot/util": "^1.4.1",
33+
"@polkadot/util": "^1.5.1",
3434
"rxjs": "^6.5.3"
3535
}
3636
}

packages/rpc-provider/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.6.0",
29+
"@babel/runtime": "^7.6.2",
3030
"@polkadot/api-metadata": "^0.93.0-beta.18",
31-
"@polkadot/util": "^1.4.1",
32-
"@polkadot/util-crypto": "^1.4.1",
33-
"@types/nock": "^10.0.3",
31+
"@polkadot/util": "^1.5.1",
32+
"@polkadot/util-crypto": "^1.5.1",
33+
"@types/nock": "^11.1.0",
3434
"eventemitter3": "^4.0.0",
3535
"isomorphic-fetch": "^2.2.1",
36-
"websocket": "^1.0.29"
36+
"websocket": "^1.0.30"
3737
},
3838
"devDependencies": {
39-
"@polkadot/keyring": "^1.4.1",
39+
"@polkadot/keyring": "^1.5.1",
4040
"mock-socket": "^9.0.0",
41-
"nock": "^11.3.3"
41+
"nock": "^11.3.5"
4242
}
4343
}

packages/type-jsonrpc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
},
2727
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-jsonrpc#readme",
2828
"dependencies": {
29-
"@babel/runtime": "^7.6.0"
29+
"@babel/runtime": "^7.6.2"
3030
}
3131
}

0 commit comments

Comments
 (0)