-
Notifications
You must be signed in to change notification settings - Fork 281
Prep for 0.24 release #663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,41 @@ 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)) | ||
| - 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)) | ||
| - 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)) | ||
| - 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 | ||
|
|
||
| - 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. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
|
|
@@ -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 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
|
|
@@ -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"] } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
@@ -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" } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
|
|
@@ -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" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
|
|
@@ -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" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a downside of this is that it's not possible parse it back to a jsonrpsee error once it's a
Stringbut nothing to do about that now.Me and other users has to compare
Strings:PThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that isn't the best is it! Without making the error type generic again (which sucked) I don't think there's much of a way around it though (I mean we could serialize the error perhaps, but hrm)