diff --git a/CHANGELOG.md b/CHANGELOG.md index 167e32b98..478f57fea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 0.7.0 + +### Changed + +- BREAKING: The `cache_mut` method on the `LayoutPartialTree` trait has been replaced with a separate `CacheTree` trait. This allows + Taffy to be more easily used without caching or with a custom cache implementation. +- BREAKING: the `TaffyTree::set_children` method now removes the children from their previous parent (if they have one). + +### Added +- Helper methods to retrieve content-box sizes were added to `Layout` + + ## 0.6.3 ### Fixes diff --git a/Cargo.toml b/Cargo.toml index 8e4c8d8ea..568b58727 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "taffy" -version = "0.6.3" +version = "0.7.0" authors = [ "Alice Cecile ", "Johnathan Kelley ", diff --git a/benches/benches/flexbox.rs b/benches/benches/flexbox.rs index 25d4838b9..ff0b46549 100644 --- a/benches/benches/flexbox.rs +++ b/benches/benches/flexbox.rs @@ -55,7 +55,7 @@ macro_rules! benchmark_each_library { #[cfg(feature = "taffy03")] run_benchmark!(Taffy03TreeBuilder<_, _>, "Taffy 0.3", $benchmark_name, $group, $builder, $params, $generate_style, $generate_tree); - run_benchmark!(TaffyTreeBuilder<_, _>, "Taffy 0.4", $benchmark_name, $group, $builder, $params, $generate_style, $generate_tree); + run_benchmark!(TaffyTreeBuilder<_, _>, "Taffy 0.7", $benchmark_name, $group, $builder, $params, $generate_style, $generate_tree); }; } @@ -206,7 +206,7 @@ fn super_deep_benchmarks(c: &mut Criterion) { run_benchmark!( TaffyTreeBuilder<_,_>, - "Taffy 0.4", + "Taffy 0.7", "", group, builder, diff --git a/benches/src/taffy_helpers.rs b/benches/src/taffy_helpers.rs index f1b0c52c2..9405775f2 100644 --- a/benches/src/taffy_helpers.rs +++ b/benches/src/taffy_helpers.rs @@ -16,7 +16,7 @@ pub struct TaffyTreeBuilder> { // Implement the BuildTree trait impl> BuildTree for TaffyTreeBuilder { - const NAME: &'static str = "Taffy 0.4"; + const NAME: &'static str = "Taffy 0.7"; type Tree = TaffyTree; type Node = TaffyNodeId;