From 6d73172560b4c722aeac19695c96c618799d50a2 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Date: Mon, 2 May 2022 18:54:19 +0300 Subject: [PATCH] Release v0.21.0 (#525) * Bump versions to v0.21.0 Signed-off-by: Alexandru Vasile * Update releasing steps Signed-off-by: Alexandru Vasile * Add changelog Signed-off-by: Alexandru Vasile * releasing: Add categories for changelog Signed-off-by: Alexandru Vasile * Update CHANGELOG.md Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com> Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com> --- CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++++++ RELEASING.md | 4 ++-- cli/Cargo.toml | 6 +++--- codegen/Cargo.toml | 4 ++-- examples/Cargo.toml | 2 +- integration-tests/Cargo.toml | 4 ++-- macro/Cargo.toml | 4 ++-- metadata/Cargo.toml | 2 +- subxt/Cargo.toml | 6 +++--- test-runtime/Cargo.toml | 2 +- 10 files changed, 53 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f918506769..f0e46d0dff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,42 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.21.0] - 2022-05-02 + +This release adds static metadata validation, via comparing the statically generated API with the target node's runtime +metadata. This implies a breaking change in the subxt API, as the user receives an error when interacting with an +incompatible API at the storage, call, and constant level. + +The `subxt-cli` can check the compatibility of multiple runtime nodes, either full metadata compatibility or +compatibility at the pallet level. + +Users can define custom derives for specific generated types of the API via adding the `derive_for_type` configuration +to the `subxt` attribute. + +The metadata documentation is propagated to the statically generated API. + +Previously developers wanting to build the subxt crate needed the `substrate` binary dependency in their local +environment. This restriction is removed via moving the integration tests to a dedicated crate. + +The number of dependencies is reduced for individual subxt crates. + +### Fixed +- test-runtime: Add exponential backoff ([#518](https://github.com/paritytech/subxt/pull/518)) + +### Added + +- Add custom derives for specific generated types ([#520](https://github.com/paritytech/subxt/pull/520)) +- Static Metadata Validation ([#478](https://github.com/paritytech/subxt/pull/478)) +- Propagate documentation to runtime API ([#511](https://github.com/paritytech/subxt/pull/511)) +- Add `tidext` in real world usage ([#508](https://github.com/paritytech/subxt/pull/508)) +- Add system health rpc ([#510](https://github.com/paritytech/subxt/pull/510)) + +### Changed +- Put integration tests behind feature flag ([#515](https://github.com/paritytech/subxt/pull/515)) +- Use minimum amount of dependencies for crates ([#524](https://github.com/paritytech/subxt/pull/524)) +- Export `BaseExtrinsicParams` ([#516](https://github.com/paritytech/subxt/pull/516)) +- bump jsonrpsee to v0.10.1 ([#504](https://github.com/paritytech/subxt/pull/504)) + ## [0.20.0] - 2022-04-06 The most significant change in this release is how we create and sign extrinsics, and how we manage the diff --git a/RELEASING.md b/RELEASING.md index b8a0ec42d7..641380e84b 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -26,7 +26,7 @@ We also assume that ongoing work done is being merged directly to the `master` b If there are minor issues with the documentation, they can be fixed in the release branch. -4. Bump the crate version in `Cargo.toml` to whatever was decided in step 2 for `subxt-cli`, `subxt-codegen`, `subxt-examples`, `subxt-macro` ,`subxt`, `test-runtime`. +4. Bump the crate version in `Cargo.toml` to whatever was decided in step 2 for `subxt-metadata`, `subxt-cli`, `subxt-codegen`, `subxt-examples`, `subxt-macro` ,`subxt`, `test-runtime`. 5. Update `CHANGELOG.md` to reflect the difference between this release and the last. If you're unsure of what to add, check with the Tools team. See the `CHANGELOG.md` file for details of the format it follows. @@ -41,7 +41,7 @@ We also assume that ongoing work done is being merged directly to the `master` b ``` Ensure that the script picked the latest published release tag (e.g. if releasing `v0.17.0`, the script should - provide `[+] Latest release tag: v0.16.0` ). Then group the PRs into "Added" and "Changed" sections, and make any + provide `[+] Latest release tag: v0.16.0` ). Then group the PRs into "Fixed", "Added" and "Changed" sections, and make any other adjustments that you feel are necessary for clarity. 6. Commit any of the above changes to the release branch and open a PR in GitHub with a base of `master`. diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 6e8db8ff3a..61ba9684e8 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-cli" -version = "0.20.0" +version = "0.21.0" authors = ["Parity Technologies "] edition = "2021" @@ -16,9 +16,9 @@ path = "src/main.rs" [dependencies] # perform subxt codegen -subxt-codegen = { version = "0.20.0", path = "../codegen" } +subxt-codegen = { version = "0.21.0", path = "../codegen" } # perform node compatibility -subxt-metadata = { version = "0.20.0", path = "../metadata" } +subxt-metadata = { version = "0.21.0", path = "../metadata" } # information of portable registry scale-info = "2.0.0" # parse command line args diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 3ecb1a6322..8ae653022e 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-codegen" -version = "0.20.0" +version = "0.21.0" authors = ["Parity Technologies "] edition = "2021" @@ -20,7 +20,7 @@ proc-macro-error = "1.0.4" quote = "1.0.8" syn = "1.0.58" scale-info = { version = "2.0.0", features = ["bit-vec"] } -subxt-metadata = { version = "0.20.0", path = "../metadata" } +subxt-metadata = { version = "0.21.0", path = "../metadata" } [dev-dependencies] bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] } diff --git a/examples/Cargo.toml b/examples/Cargo.toml index b982d9a483..04220c7d35 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-examples" -version = "0.20.0" +version = "0.21.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/integration-tests/Cargo.toml b/integration-tests/Cargo.toml index 3ae9303eed..ea49dbe465 100644 --- a/integration-tests/Cargo.toml +++ b/integration-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-integration" -version = "0.20.0" +version = "0.21.0" authors = ["Parity Technologies "] edition = "2021" @@ -27,7 +27,7 @@ scale-info = { version = "2.0.0", features = ["bit-vec"] } sp-core = { version = "6.0.0", default-features = false } sp-keyring = "6.0.0" sp-runtime = "6.0.0" -subxt = { version = "0.20.0", path = "../subxt" } +subxt = { version = "0.21.0", path = "../subxt" } test-runtime = { path = "../test-runtime" } tokio = { version = "1.8", features = ["macros", "time"] } wabt = "0.10.0" diff --git a/macro/Cargo.toml b/macro/Cargo.toml index 5a793d40ae..a7559baf7e 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-macro" -version = "0.20.0" +version = "0.21.0" authors = ["Parity Technologies "] edition = "2021" autotests = false @@ -19,4 +19,4 @@ darling = "0.14.0" proc-macro-error = "1.0.4" syn = "1.0.58" -subxt-codegen = { path = "../codegen", version = "0.20.0" } +subxt-codegen = { path = "../codegen", version = "0.21.0" } diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 8657d2833b..36fc392c29 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-metadata" -version = "0.20.0" +version = "0.21.0" authors = ["Parity Technologies "] edition = "2021" autotests = false diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index 24a698f16f..84f6537f57 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt" -version = "0.20.0" +version = "0.21.0" authors = ["Parity Technologies "] edition = "2021" @@ -31,8 +31,8 @@ serde_json = "1.0.64" thiserror = "1.0.24" parking_lot = "0.12.0" -subxt-macro = { version = "0.20.0", path = "../macro" } -subxt-metadata = { version = "0.20.0", path = "../metadata" } +subxt-macro = { version = "0.21.0", path = "../macro" } +subxt-metadata = { version = "0.21.0", path = "../metadata" } sp-core = { version = "6.0.0", default-features = false } sp-runtime = "6.0.0" diff --git a/test-runtime/Cargo.toml b/test-runtime/Cargo.toml index 932934f5c2..fe163e76a2 100644 --- a/test-runtime/Cargo.toml +++ b/test-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "test-runtime" -version = "0.20.0" +version = "0.21.0" edition = "2021" [dependencies]