Release shardtree version 0.4.0

This commit is contained in:
Kris Nuttycombe 2024-08-12 10:19:39 -06:00
parent 1f86f1259a
commit ef7fcde5fa
4 changed files with 12 additions and 3 deletions

2
Cargo.lock generated
View File

@ -318,7 +318,7 @@ dependencies = [
[[package]] [[package]]
name = "shardtree" name = "shardtree"
version = "0.3.1" version = "0.4.0"
dependencies = [ dependencies = [
"assert_matches", "assert_matches",
"bitflags 2.4.1", "bitflags 2.4.1",

View File

@ -7,12 +7,21 @@ and this project adheres to Rust's notion of
## Unreleased ## Unreleased
## [0.4.0] - 2024-08-12
This is a bugfix release that fixes a couple of subtle problems related to
pruning in the presence of inserted `Frontier` nodes. See the `Removed` and
`Fixed` sections below for additional details.
### Added ### Added
- `shardtree::tree::Tree::{is_leaf, map, try_map, empty_pruned}` - `shardtree::tree::Tree::{is_leaf, map, try_map, empty_pruned}`
- `shardtree::tree::LocatedTree::{map, try_map}` - `shardtree::tree::LocatedTree::{map, try_map}`
- `shardtree::prunable::PrunableTree::{has_computable_root, is_full}` - `shardtree::prunable::PrunableTree::{has_computable_root, is_full}`
- `shardtree::prunable::LocatedPrunableTree::{max_position}` - `shardtree::prunable::LocatedPrunableTree::{max_position}`
### Changed
- Updated to use `incrementalmerkletree` v0.6.
### Removed ### Removed
- `shardtree::tree::LocatedTree::max_position` did not behave correctly regarding - `shardtree::tree::LocatedTree::max_position` did not behave correctly regarding
annotated parent nodes. Use `LocatedPrunableTree::max_position` instead. annotated parent nodes. Use `LocatedPrunableTree::max_position` instead.

View File

@ -1,6 +1,6 @@
[package] [package]
name = "shardtree" name = "shardtree"
version = "0.3.1" version = "0.4.0"
authors = [ authors = [
"Kris Nuttycombe <kris@nutty.land>", "Kris Nuttycombe <kris@nutty.land>",
] ]

View File

@ -51,7 +51,7 @@ pub use self::prunable::{IncompleteAt, LocatedPrunableTree, PrunableTree, Retent
pub mod error; pub mod error;
pub mod store; pub mod store;
#[cfg(any(bench, test, feature = "test-dependencies"))] #[cfg(any(test, feature = "test-dependencies"))]
pub mod testing; pub mod testing;
#[cfg(feature = "legacy-api")] #[cfg(feature = "legacy-api")]