Skip to content
Merged

1.5 #2001

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
"version": "1.5.0-beta.33"
"version": "1.5.0"
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
8 changes: 4 additions & 4 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions packages/api/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/jsonrpc/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
}
}
4 changes: 2 additions & 2 deletions packages/metadata/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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",
Expand Down
Loading