From 5b66fb1aa5fa111fadfaa89a13e72cfe04efb4cb Mon Sep 17 00:00:00 2001 From: James Wilson Date: Thu, 22 Sep 2022 16:22:49 +0100 Subject: [PATCH 1/3] Bump versions and update changelog --- CHANGELOG.md | 33 ++++++++++++++++++++++++++++ cli/Cargo.toml | 6 ++--- codegen/Cargo.toml | 4 ++-- examples/Cargo.toml | 2 +- macro/Cargo.toml | 4 ++-- metadata/Cargo.toml | 2 +- scripts/generate_changelog.sh | 2 +- subxt/Cargo.toml | 6 ++--- testing/integration-tests/Cargo.toml | 6 ++--- testing/test-runtime/Cargo.toml | 2 +- testing/ui-tests/Cargo.toml | 2 +- 11 files changed, 51 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57dbe3b550b..b8ae136fe78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,39 @@ 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.24.0] - 2022-09-22 + +This release has a bunch of smaller changes and fixes. The breaking changes are fairly minor and should be easy to address if encountered. Notable additions are: +- Allowing the underlying RPC implementation to be swapped out ([#634](https://github.com/paritytech/subxt/pull/634)). This makes `jsonrpsee` an optional dependency, and opens the door for Subxt to be integrated into things like light clients, since we can decide how to handle RPC calls. +- A low level "runtime upgrade" API is exposed, giving more visibility into when node updates happen incase your application needs to handle them. +- `scale-value` and `scale-decode` dependencies are bumped. The main effect of this is that `bitvec` is no longer used under the hood in the core of subxt, which helps to remove one hurdle on the way to being able to compile Subxt to WASM. + +### Added + +- feat: add low-level `runtime upgrade API` ([#657](https://github.com/paritytech/subxt/pull/657)) +- Add accessor for `StaticTxPayload::call_data` ([#660](https://github.com/paritytech/subxt/pull/660)) +- Export EventFieldMetadata ([#656](https://github.com/paritytech/subxt/pull/656)) +- Allow generalising over RPC implementation ([#634](https://github.com/paritytech/subxt/pull/634)) +- Add conversion and default functions for `NumberOrHex` ([#636](https://github.com/paritytech/subxt/pull/636)) +- Allow creating/submitting unsigned transactions, too. ([#625](https://github.com/paritytech/subxt/pull/625)) + +### Changed + +- Bump scale-value and scale-decode ([#659](https://github.com/paritytech/subxt/pull/659)) +- Tweak 0.23 notes and add another test for events ([#618](https://github.com/paritytech/subxt/pull/618)) +- Specialize metadata errors ([#633](https://github.com/paritytech/subxt/pull/633)) +- Simplify the TxPayload trait a little ([#638](https://github.com/paritytech/subxt/pull/638)) +- Remove unnecessary `async` ([#645](https://github.com/paritytech/subxt/pull/645)) +- Store type name of a field in event metadata ([#654](https://github.com/paritytech/subxt/pull/654)) +- Add Staking Miner and Introspector to usage list ([#647](https://github.com/paritytech/subxt/pull/647)) +- Use 'sp_core::Hxxx' for all hash types ([#623](https://github.com/paritytech/subxt/pull/623)) + +### Fixed + +- Fix `history_depth` testing ([#662](https://github.com/paritytech/subxt/pull/662)) +- Fix codegen for `codec::Compact` as type parameters ([#651](https://github.com/paritytech/subxt/pull/651)) +- Support latest substrate release ([#653](https://github.com/paritytech/subxt/pull/653)) + ## [0.23.0] - 2022-08-11 This is one of the most significant releases to date in Subxt, and carries with it a number of significant breaking changes, but in exchange, a number of significant improvements. The most significant PR is [#593](https://github.com/paritytech/subxt/pull/593); the fundamental change that this makes is to separate creating a query/transaction/address from submitting it. This gives us flexibility when creating queries; they can be either dynamically or statically generated, but also flexibility in our client, enabling methods to be exposed for online or offline use. diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 397c003fc38..332cadc8a72 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-cli" -version = "0.23.0" +version = "0.24.0" authors = ["Parity Technologies "] edition = "2021" @@ -16,9 +16,9 @@ path = "src/main.rs" [dependencies] # perform subxt codegen -subxt-codegen = { version = "0.23.0", path = "../codegen" } +subxt-codegen = { version = "0.24.0", path = "../codegen" } # perform node compatibility -subxt-metadata = { version = "0.23.0", path = "../metadata" } +subxt-metadata = { version = "0.24.0", path = "../metadata" } # parse command line args structopt = "0.3.25" # colourful error reports diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 1936cfd6af2..fa3d927ac21 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-codegen" -version = "0.23.0" +version = "0.24.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.23.0", path = "../metadata" } +subxt-metadata = { version = "0.24.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 31cd434a18b..c83b4ac568a 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-examples" -version = "0.23.0" +version = "0.24.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/macro/Cargo.toml b/macro/Cargo.toml index b88d57d0b99..bc078fde9c2 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-macro" -version = "0.23.0" +version = "0.24.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.23.0" } +subxt-codegen = { path = "../codegen", version = "0.24.0" } diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 1bd42b470e2..122ec379d5f 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-metadata" -version = "0.23.0" +version = "0.24.0" authors = ["Parity Technologies "] edition = "2021" autotests = false diff --git a/scripts/generate_changelog.sh b/scripts/generate_changelog.sh index 85ebe85aefb..e2e3fbdb229 100755 --- a/scripts/generate_changelog.sh +++ b/scripts/generate_changelog.sh @@ -61,7 +61,7 @@ function generate_changelog() { } # Get latest release tag. -tag=$($GIT_BIN describe --match "v[0-9]*" --abbrev=0 origin/master) || log_error 'Failed to obtain the latest release tag' +tag=$($GIT_BIN describe --tag --match "v[0-9]*" --abbrev=0 origin/master) || log_error 'Failed to obtain the latest release tag' log_info "Latest release tag: $tag" generate_changelog "$tag" diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index 07c0c2d6364..67dc9eaae16 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt" -version = "0.23.0" +version = "0.24.0" authors = ["Parity Technologies "] edition = "2021" @@ -39,8 +39,8 @@ thiserror = "1.0.24" tracing = "0.1.34" parking_lot = "0.12.0" -subxt-macro = { version = "0.23.0", path = "../macro" } -subxt-metadata = { version = "0.23.0", path = "../metadata" } +subxt-macro = { version = "0.24.0", path = "../macro" } +subxt-metadata = { version = "0.24.0", path = "../metadata" } sp-core = { version = "6.0.0", default-features = false } sp-runtime = "6.0.0" diff --git a/testing/integration-tests/Cargo.toml b/testing/integration-tests/Cargo.toml index 123dbd140e5..2c398845a5a 100644 --- a/testing/integration-tests/Cargo.toml +++ b/testing/integration-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "integration-tests" -version = "0.23.0" +version = "0.24.0" authors = ["Parity Technologies "] edition = "2021" @@ -26,8 +26,8 @@ sp-core = { version = "6.0.0", default-features = false } sp-keyring = "6.0.0" sp-runtime = "6.0.0" syn = "1.0.0" -subxt = { version = "0.23.0", path = "../../subxt" } -subxt-codegen = { version = "0.23.0", path = "../../codegen" } +subxt = { version = "0.24.0", path = "../../subxt" } +subxt-codegen = { version = "0.24.0", path = "../../codegen" } test-runtime = { path = "../test-runtime" } tokio = { version = "1.8", features = ["macros", "time"] } tracing = "0.1.34" diff --git a/testing/test-runtime/Cargo.toml b/testing/test-runtime/Cargo.toml index 2742ffd333d..ba7314e55ca 100644 --- a/testing/test-runtime/Cargo.toml +++ b/testing/test-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "test-runtime" -version = "0.23.0" +version = "0.24.0" edition = "2021" [dependencies] diff --git a/testing/ui-tests/Cargo.toml b/testing/ui-tests/Cargo.toml index b3d149e0945..9cc7f4bab70 100644 --- a/testing/ui-tests/Cargo.toml +++ b/testing/ui-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ui-tests" -version = "0.23.0" +version = "0.24.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From 601ddd6fa50f0867d7922fb875f0a7b28c7304a6 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Thu, 22 Sep 2022 16:26:33 +0100 Subject: [PATCH 2/3] tweak text --- CHANGELOG.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8ae136fe78..255402a1999 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 This release has a bunch of smaller changes and fixes. The breaking changes are fairly minor and should be easy to address if encountered. Notable additions are: - Allowing the underlying RPC implementation to be swapped out ([#634](https://github.com/paritytech/subxt/pull/634)). This makes `jsonrpsee` an optional dependency, and opens the door for Subxt to be integrated into things like light clients, since we can decide how to handle RPC calls. -- A low level "runtime upgrade" API is exposed, giving more visibility into when node updates happen incase your application needs to handle them. -- `scale-value` and `scale-decode` dependencies are bumped. The main effect of this is that `bitvec` is no longer used under the hood in the core of subxt, which helps to remove one hurdle on the way to being able to compile Subxt to WASM. +- A low level "runtime upgrade" API is exposed, giving more visibility into when node updates happen in case your application needs to handle them. +- `scale-value` and `scale-decode` dependencies are bumped. The main effect of this is that `bitvec` is no longer used under the hood in the core of Subxt, which helps to remove one hurdle on the way to being able to compile it to WASM. + +Notable PRs merged: ### Added @@ -19,6 +21,7 @@ This release has a bunch of smaller changes and fixes. The breaking changes are - Allow generalising over RPC implementation ([#634](https://github.com/paritytech/subxt/pull/634)) - Add conversion and default functions for `NumberOrHex` ([#636](https://github.com/paritytech/subxt/pull/636)) - Allow creating/submitting unsigned transactions, too. ([#625](https://github.com/paritytech/subxt/pull/625)) +- Add Staking Miner and Introspector to usage list ([#647](https://github.com/paritytech/subxt/pull/647)) ### Changed @@ -28,7 +31,6 @@ This release has a bunch of smaller changes and fixes. The breaking changes are - Simplify the TxPayload trait a little ([#638](https://github.com/paritytech/subxt/pull/638)) - Remove unnecessary `async` ([#645](https://github.com/paritytech/subxt/pull/645)) - Store type name of a field in event metadata ([#654](https://github.com/paritytech/subxt/pull/654)) -- Add Staking Miner and Introspector to usage list ([#647](https://github.com/paritytech/subxt/pull/647)) - Use 'sp_core::Hxxx' for all hash types ([#623](https://github.com/paritytech/subxt/pull/623)) ### Fixed From 25a75a138a514c0b7ad4a1c3051cd3eaf93f8300 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Thu, 22 Sep 2022 16:58:31 +0100 Subject: [PATCH 3/3] merge a couple of related changelog entries --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 255402a1999..e159ae0c0af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ Notable PRs merged: - feat: add low-level `runtime upgrade API` ([#657](https://github.com/paritytech/subxt/pull/657)) - Add accessor for `StaticTxPayload::call_data` ([#660](https://github.com/paritytech/subxt/pull/660)) -- Export EventFieldMetadata ([#656](https://github.com/paritytech/subxt/pull/656)) +- Store type name of a field in event metadata, and export EventFieldMetadata ([#656](https://github.com/paritytech/subxt/pull/656) and [#654](https://github.com/paritytech/subxt/pull/654)) - Allow generalising over RPC implementation ([#634](https://github.com/paritytech/subxt/pull/634)) - Add conversion and default functions for `NumberOrHex` ([#636](https://github.com/paritytech/subxt/pull/636)) - Allow creating/submitting unsigned transactions, too. ([#625](https://github.com/paritytech/subxt/pull/625)) @@ -30,7 +30,6 @@ Notable PRs merged: - Specialize metadata errors ([#633](https://github.com/paritytech/subxt/pull/633)) - Simplify the TxPayload trait a little ([#638](https://github.com/paritytech/subxt/pull/638)) - Remove unnecessary `async` ([#645](https://github.com/paritytech/subxt/pull/645)) -- Store type name of a field in event metadata ([#654](https://github.com/paritytech/subxt/pull/654)) - Use 'sp_core::Hxxx' for all hash types ([#623](https://github.com/paritytech/subxt/pull/623)) ### Fixed