Skip to content

Commit

Permalink
0.97 (#1614)
Browse files Browse the repository at this point in the history
* 0.97

* Bump version, add Keys & ValidatorPrefs to CHANGELOG

* V9, V10
  • Loading branch information
jacogr authored Nov 29, 2019
1 parent 0cae3cf commit 89700f9
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 24 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

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": "0.97.0-beta.40"
"version": "0.97.0"
}
4 changes: 2 additions & 2 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": "0.97.0-beta.40",
"version": "0.97.0",
"description": "Interfaces for interacting with contracts and contract ABIs",
"main": "index.js",
"keywords": [
Expand All @@ -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"
}
}
6 changes: 3 additions & 3 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": "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": [
Expand Down Expand Up @@ -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"
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": "0.97.0-beta.40",
"version": "0.97.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.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": {
Expand Down
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": "0.97.0-beta.40",
"version": "0.97.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.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"
},
Expand Down
8 changes: 4 additions & 4 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": "0.97.0-beta.40",
"version": "0.97.0",
"description": "A JavaScript wrapper for the Polkadot JsonRPC interface",
"main": "index.js",
"keywords": [
Expand All @@ -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"
}
Expand Down
4 changes: 2 additions & 2 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": "0.97.0-beta.40",
"version": "0.97.0",
"description": "Transport providers for the API",
"main": "index.js",
"keywords": [
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/type-jsonrpc/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 89700f9

Please sign in to comment.