diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e46d0dff..6ba5324029 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,44 @@ 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.22.0] - 2022-06-20 + +With this release, subxt can subscribe to the node's runtime upgrades to ensure that the metadata is updated and +extrinsics are properly constructed. + +We have also made some slight API improvements to make in the area of storage keys, and thanks to an external contribution we now support dry running transactions before submitting them. + +This release also improves the documentation, adds UI tests, and defaults the `subxt-cli` to return metadata +bytes instead of the JSON format. + +### Fixed + +- Handle `StorageEntry` empty keys ([#565](https://github.com/paritytech/subxt/pull/565)) +- Fix documentation examples ([#568](https://github.com/paritytech/subxt/pull/568)) +- Fix cargo clippy ([#548](https://github.com/paritytech/subxt/pull/548)) +- fix: Find substrate port on different log lines ([#536](https://github.com/paritytech/subxt/pull/536)) + +### Added + +- Followup test for checking propagated documentation ([#514](https://github.com/paritytech/subxt/pull/514)) +- feat: refactor signing in order to more easily be able to dryrun ([#547](https://github.com/paritytech/subxt/pull/547)) +- Add subxt documentation ([#546](https://github.com/paritytech/subxt/pull/546)) +- Add ability to iterate over N map storage keys ([#537](https://github.com/paritytech/subxt/pull/537)) +- Subscribe to Runtime upgrades for proper extrinsic construction ([#513](https://github.com/paritytech/subxt/pull/513)) + +### Changed +- Move test crates into a "testing" folder and add a ui (trybuild) test and ui-test helpers ([#567](https://github.com/paritytech/subxt/pull/567)) +- Update jsonrpsee requirement from 0.13.0 to 0.14.0 ([#566](https://github.com/paritytech/subxt/pull/566)) +- Make storage futures only borrow client, not self, for better ergonomics ([#561](https://github.com/paritytech/subxt/pull/561)) +- Bump actions/checkout from 2 to 3 ([#557](https://github.com/paritytech/subxt/pull/557)) +- Deny unused crate dependencies ([#549](https://github.com/paritytech/subxt/pull/549)) +- Implement `Clone` for the generated `RuntimeApi` ([#544](https://github.com/paritytech/subxt/pull/544)) +- Update color-eyre requirement from 0.5.11 to 0.6.1 ([#540](https://github.com/paritytech/subxt/pull/540)) +- Update jsonrpsee requirement from 0.12.0 to 0.13.0 ([#541](https://github.com/paritytech/subxt/pull/541)) +- Update artifacts and polkadot.rs and change CLI to default bytes ([#533](https://github.com/paritytech/subxt/pull/533)) +- Replace `log` with `tracing` and record extrinsic info ([#535](https://github.com/paritytech/subxt/pull/535)) +- Bump jsonrpsee ([#528](https://github.com/paritytech/subxt/pull/528)) + ## [0.21.0] - 2022-05-02 This release adds static metadata validation, via comparing the statically generated API with the target node's runtime diff --git a/RELEASING.md b/RELEASING.md index 641380e84b..383150db09 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-metadata`, `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`, `integration-tests`, `test-runtime`, `ui-tests`. 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. diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 9b5db8ff73..eb7a3a77be 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-cli" -version = "0.21.0" +version = "0.22.0" authors = ["Parity Technologies "] edition = "2021" @@ -16,9 +16,9 @@ path = "src/main.rs" [dependencies] # perform subxt codegen -subxt-codegen = { version = "0.21.0", path = "../codegen" } +subxt-codegen = { version = "0.22.0", path = "../codegen" } # perform node compatibility -subxt-metadata = { version = "0.21.0", path = "../metadata" } +subxt-metadata = { version = "0.22.0", path = "../metadata" } # parse command line args structopt = "0.3.25" # make the request to a substrate node to get the metadata diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 8ae653022e..04f9c10552 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-codegen" -version = "0.21.0" +version = "0.22.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.21.0", path = "../metadata" } +subxt-metadata = { version = "0.22.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 88629af403..3152da87c9 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-examples" -version = "0.21.0" +version = "0.22.0" authors = ["Parity Technologies "] edition = "2021" publish = false diff --git a/macro/Cargo.toml b/macro/Cargo.toml index a7559baf7e..52e469610b 100644 --- a/macro/Cargo.toml +++ b/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-macro" -version = "0.21.0" +version = "0.22.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.21.0" } +subxt-codegen = { path = "../codegen", version = "0.22.0" } diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 36fc392c29..34b9e70d65 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt-metadata" -version = "0.21.0" +version = "0.22.0" authors = ["Parity Technologies "] edition = "2021" autotests = false diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index fc46f48eaf..1b647e3351 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subxt" -version = "0.21.0" +version = "0.22.0" authors = ["Parity Technologies "] edition = "2021" @@ -31,8 +31,8 @@ thiserror = "1.0.24" tracing = "0.1.34" parking_lot = "0.12.0" -subxt-macro = { version = "0.21.0", path = "../macro" } -subxt-metadata = { version = "0.21.0", path = "../metadata" } +subxt-macro = { version = "0.22.0", path = "../macro" } +subxt-metadata = { version = "0.22.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 fc02698fcb..904981b5ec 100644 --- a/testing/integration-tests/Cargo.toml +++ b/testing/integration-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "integration-tests" -version = "0.21.0" +version = "0.22.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.21.0", path = "../../subxt" } -subxt-codegen = { version = "0.21.0", path = "../../codegen" } +subxt = { version = "0.22.0", path = "../../subxt" } +subxt-codegen = { version = "0.22.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 a10addd4c5..63a9e71bc6 100644 --- a/testing/test-runtime/Cargo.toml +++ b/testing/test-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "test-runtime" -version = "0.21.0" +version = "0.22.0" edition = "2021" [dependencies] diff --git a/testing/ui-tests/Cargo.toml b/testing/ui-tests/Cargo.toml index 08f16a66af..a2f9168d1b 100644 --- a/testing/ui-tests/Cargo.toml +++ b/testing/ui-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ui-tests" -version = "0.21.0" +version = "0.22.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -12,4 +12,4 @@ trybuild = "1.0.63" scale-info = { version = "2.0.0", features = ["bit-vec"] } frame-metadata = "15.0.0" codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "full", "bit-vec"] } -subxt = { path = "../../subxt" } \ No newline at end of file +subxt = { path = "../../subxt" }