Skip to content

Commit

Permalink
Prep for 0.31.0 release (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdw committed Aug 2, 2023
1 parent dc0aeac commit 059723e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 22 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,30 @@ 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.31.0] - 2023-08-02

This is a small release whose primary goal is to bump the versions of `scale-encode`, `scale-decode` and `scale-value` being used, to benefit from recent changes in those crates.

`scale-decode` changes how compact values are decoded as part of [#1103](https://github.com/paritytech/subxt/pull/1103). A compact encoded struct should now be properly decoded into a struct of matching shape (which implements `DecodeAsType`). This will hopefully resolve issues around structs like `Perbill`. When decoding the SCALE bytes for such types into `scale_value::Value`, the `Value` will now be a composite type wrapping a value, and not just the value.

We've also figured out how to sign extrinsics using browser wallets when a Subxt app is compiled to WASM; see [#1067](https://github.com/paritytech/subxt/pull/1067) for more on that!

The key commits:

### Added

- Add browser extension signing example ([#1067](https://github.com/paritytech/subxt/pull/1067))

### Changed

- Bump to latest scale-encode/decode/value and fix test running ([#1103](https://github.com/paritytech/subxt/pull/1103))
- Set minimum supported `rust-version` to `1.70` ([#1097](https://github.com/paritytech/subxt/pull/1097))

### Fixed

- Tests: support 'substrate-node' too and allow multiple binary paths ([#1102](https://github.com/paritytech/subxt/pull/1102))


## [0.30.1] - 2023-07-25

This patch release fixes a small issue whereby using `runtime_metadata_url` in the Subxt macro would still attempt to download unstable metadata, which can fail at the moment if the chain has not updated to stable V15 metadata yet (which has a couple of changes from the last unstable version). Note that you're generally encouraged to use `runtime_metadata_path` instead, which does not have this issue.
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Expand Up @@ -28,7 +28,7 @@ resolver = "2"
[workspace.package]
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
version = "0.30.1"
version = "0.31.0"
rust-version = "1.70.0"
license = "Apache-2.0 OR GPL-3.0"
repository = "https://github.com/paritytech/subxt"
Expand Down Expand Up @@ -103,12 +103,12 @@ sp-keyring = "24.0.0"
sp-version = "22.0.0"

# Subxt workspace crates:
subxt = { version = "0.30.1", path = "subxt", default-features = false }
subxt-macro = { version = "0.30.1", path = "macro" }
subxt-metadata = { version = "0.30.1", path = "metadata" }
subxt-codegen = { version = "0.30.1", path = "codegen" }
subxt-signer = { version = "0.30.1", path = "signer" }
subxt-lightclient = { version = "0.30.1", path = "lightclient", default-features = false }
subxt = { version = "0.31.0", path = "subxt", default-features = false }
subxt-macro = { version = "0.31.0", path = "macro" }
subxt-metadata = { version = "0.31.0", path = "metadata" }
subxt-codegen = { version = "0.31.0", path = "codegen" }
subxt-signer = { version = "0.31.0", path = "signer" }
subxt-lightclient = { version = "0.31.0", path = "lightclient", default-features = false }
test-runtime = { path = "testing/test-runtime" }
substrate-runner = { path = "testing/substrate-runner" }

Expand Down
11 changes: 7 additions & 4 deletions RELEASING.md
Expand Up @@ -50,11 +50,14 @@ We also assume that ongoing work done is being merged directly to the `master` b
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.

7. Commit any of the above changes to the release branch and open a PR in GitHub with a base of `master`.
7. If any of the differences impact the minimum version of `rustc` that the code will run on, please update the `rust-version`
field in the root `Cargo.toml` accordingly.

8. Once the branch has been reviewed and passes CI, merge it.
8. Commit any of the above changes to the release branch and open a PR in GitHub with a base of `master`.

9. Now, we're ready to publish the release to crates.io.
9. Once the branch has been reviewed and passes CI, merge it.

10. Now, we're ready to publish the release to crates.io.

1. Checkout `master`, ensuring we're looking at that latest merge (`git pull`).

Expand All @@ -81,7 +84,7 @@ We also assume that ongoing work done is being merged directly to the `master` b
(cd cli && cargo publish);
```

10. If the release was successful, tag the commit that we released in the `master` branch with the
11. If the release was successful, tag the commit that we released in the `master` branch with the
version that we just released, for example:

```
Expand Down

0 comments on commit 059723e

Please sign in to comment.