From f21a717881959f414ac684bf0968f0ab20d9eb6f Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Thu, 30 May 2024 20:57:08 +0200 Subject: [PATCH] Update changelog --- .../breaking-changes/1422-tonic-011.md | 0 .../1423-verify-commit-restore.md | 0 .../bug-fixes/1415-fix-optional-event-type.md | 0 .../features/1421-reqwest-client.md | 0 .../1425-add-http-client-user-agent.md | 0 .../1428-finalizeblock-deserialization.md | 0 .changelog/v0.37.0/summary.md | 7 +++++ CHANGELOG.md | 31 +++++++++++++++++++ 8 files changed, 38 insertions(+) rename .changelog/{unreleased => v0.37.0}/breaking-changes/1422-tonic-011.md (100%) rename .changelog/{unreleased => v0.37.0}/breaking-changes/1423-verify-commit-restore.md (100%) rename .changelog/{unreleased => v0.37.0}/bug-fixes/1415-fix-optional-event-type.md (100%) rename .changelog/{unreleased => v0.37.0}/features/1421-reqwest-client.md (100%) rename .changelog/{unreleased => v0.37.0}/improvements/1425-add-http-client-user-agent.md (100%) rename .changelog/{unreleased => v0.37.0}/improvements/1428-finalizeblock-deserialization.md (100%) create mode 100644 .changelog/v0.37.0/summary.md diff --git a/.changelog/unreleased/breaking-changes/1422-tonic-011.md b/.changelog/v0.37.0/breaking-changes/1422-tonic-011.md similarity index 100% rename from .changelog/unreleased/breaking-changes/1422-tonic-011.md rename to .changelog/v0.37.0/breaking-changes/1422-tonic-011.md diff --git a/.changelog/unreleased/breaking-changes/1423-verify-commit-restore.md b/.changelog/v0.37.0/breaking-changes/1423-verify-commit-restore.md similarity index 100% rename from .changelog/unreleased/breaking-changes/1423-verify-commit-restore.md rename to .changelog/v0.37.0/breaking-changes/1423-verify-commit-restore.md diff --git a/.changelog/unreleased/bug-fixes/1415-fix-optional-event-type.md b/.changelog/v0.37.0/bug-fixes/1415-fix-optional-event-type.md similarity index 100% rename from .changelog/unreleased/bug-fixes/1415-fix-optional-event-type.md rename to .changelog/v0.37.0/bug-fixes/1415-fix-optional-event-type.md diff --git a/.changelog/unreleased/features/1421-reqwest-client.md b/.changelog/v0.37.0/features/1421-reqwest-client.md similarity index 100% rename from .changelog/unreleased/features/1421-reqwest-client.md rename to .changelog/v0.37.0/features/1421-reqwest-client.md diff --git a/.changelog/unreleased/improvements/1425-add-http-client-user-agent.md b/.changelog/v0.37.0/improvements/1425-add-http-client-user-agent.md similarity index 100% rename from .changelog/unreleased/improvements/1425-add-http-client-user-agent.md rename to .changelog/v0.37.0/improvements/1425-add-http-client-user-agent.md diff --git a/.changelog/unreleased/improvements/1428-finalizeblock-deserialization.md b/.changelog/v0.37.0/improvements/1428-finalizeblock-deserialization.md similarity index 100% rename from .changelog/unreleased/improvements/1428-finalizeblock-deserialization.md rename to .changelog/v0.37.0/improvements/1428-finalizeblock-deserialization.md diff --git a/.changelog/v0.37.0/summary.md b/.changelog/v0.37.0/summary.md new file mode 100644 index 000000000..d5744e90b --- /dev/null +++ b/.changelog/v0.37.0/summary.md @@ -0,0 +1,7 @@ +*May 30th, 2024* + +This release restores the commit verification interfaces of `PredicateVerifier` from tendermint-rs `0.35.0` and lower, but retains the performance improvements made in version `0.36.0`. + +This version also brings a few new feature to the HTTP RPC client, notably a way to specify the User-Agent to send along HTTP requests, as well as a way to override the underlying `reqwest` client. + +Additionally, this release also fixes a couple issues with the `serde`-based deserialization of the `FinalizeBlock` and `Event` types. diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fa2bb8ea..355e1d1f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,38 @@ # CHANGELOG +## v0.37.0 + +*May 30th, 2024* + +This release restores the commit verification interfaces of `PredicateVerifier` from tendermint-rs `0.35.0` and lower, but retains the performance improvements made in version `0.36.0`. + +This version also brings a few new feature to the HTTP RPC client, notably a way to specify the User-Agent to send along HTTP requests, as well as a way to override the underlying `reqwest` client. + +Additionally, this release also fixes a couple issues with the `serde`-based deserialization of the `FinalizeBlock` and `Event` types. + +### BREAKING CHANGES + +- `[tendermint-proto]` Upgrade `tonic` to v0.11 ([\#1422](https://github.com/informalsystems/tendermint-rs/pull/1422)) +- `[tendermint-light-client-verifier]` Restores the commit verification interfaces of `PredicateVerifier` from `<= 0.35.0` ([\#1423](https://github.com/informalsystems/tendermint-rs/pull/1423)) + * `verify_commit(&self. untrusted: &UntrustedBlockState<'_>)` is restored, as in <= 0.35.0. + * `verify_commit(&self, untrusted: &UntrustedBlockState<'_>, trusted: &TrustedBlockState<'_>,)` introduced in 0.36.0 is renamed to `verify_commit_against_trusted`. + The performance improvements made in the `0.36.0` release are still intact. + +### FEATURES + +* `[tendermint-rpc]` Add a way to specify custom User-Agent for `HttpClient` ([#1425](https://github.com/informalsystems/tendermint-rs/issues/1425)) +- `[tendermint-rpc]` Add a `client()` method on `transport::http::Builder` to override the underlying `reqwest` client ([\#1421](https://github.com/informalsystems/tendermint-rs/pull/1421)) +- `[tendermint-rpc]` Add a `from_raw_parts()` method on `transport::http::HttpClient` to allow supplying the underlying `reqwest` client ([\#1421](https://github.com/informalsystems/tendermint-rs/pull/1421)) + +### BUG FIXES + +- `[tendermint]` Fix `FinalizeBlock::validator_updates` deserialization as `nullable` ([\#1428](https://github.com/informalsystems/tendermint-rs/pull/1428)) +- `[tendermint-abci]` Add serde `default` annotation for `Event::type` to match `omitempty` in the Go implementation ([\#1416](https://github.com/informalsystems/tendermint-rs/pull/1416)) + ## v0.36.0 +*April 25th, 2024* + This release brings substantial performance improvements to the voting power computation within the light client, improves the handling of misformed blocks (eg. with empty `last_commit` on non-first block) when decoding them from Protobuf or RPC responses, and adds missing `serde` derives on some Protobuf definitions. This release also technically contains a breaking change in `tendermint-proto`, but this should not impact normal use of the library, as the `ToPrimitive` impl that was removed on `BlockIdFlag` trait did not provide any additional functionality.