Skip to content

Commit

Permalink
Prep for 0.24 release (#663)
Browse files Browse the repository at this point in the history
* Bump versions and update changelog

* tweak text

* merge a couple of related changelog entries
  • Loading branch information
jsdw authored Sep 22, 2022
1 parent f48a5df commit 75e383d
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 18 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,40 @@ 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 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

- 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))
- 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))
- Add Staking Miner and Introspector to usage list ([#647](https://github.com/paritytech/subxt/pull/647))

### 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))
- 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.
Expand Down
6 changes: 3 additions & 3 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subxt-cli"
version = "0.23.0"
version = "0.24.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subxt-codegen"
version = "0.23.0"
version = "0.24.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand All @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subxt-examples"
version = "0.23.0"
version = "0.24.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
publish = false
Expand Down
4 changes: 2 additions & 2 deletions macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subxt-macro"
version = "0.23.0"
version = "0.24.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
autotests = false
Expand All @@ -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" }
2 changes: 1 addition & 1 deletion metadata/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subxt-metadata"
version = "0.23.0"
version = "0.24.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
autotests = false
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 3 additions & 3 deletions subxt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subxt"
version = "0.23.0"
version = "0.24.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions testing/integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "integration-tests"
version = "0.23.0"
version = "0.24.0"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"

Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion testing/test-runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "test-runtime"
version = "0.23.0"
version = "0.24.0"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion testing/ui-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 75e383d

Please sign in to comment.