Skip to content

Commit

Permalink
Prepare for v0.7.0 release (#759)
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Burns <[email protected]>
  • Loading branch information
nicoburns authored Dec 12, 2024
1 parent 63f4ade commit b765cb5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "taffy"
version = "0.6.3"
version = "0.7.0"
authors = [
"Alice Cecile <[email protected]>",
"Johnathan Kelley <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions benches/benches/flexbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
}

Expand Down Expand Up @@ -206,7 +206,7 @@ fn super_deep_benchmarks(c: &mut Criterion) {

run_benchmark!(
TaffyTreeBuilder<_,_>,
"Taffy 0.4",
"Taffy 0.7",
"",
group,
builder,
Expand Down
2 changes: 1 addition & 1 deletion benches/src/taffy_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct TaffyTreeBuilder<R: Rng, G: GenStyle<TaffyStyle>> {

// Implement the BuildTree trait
impl<R: Rng, G: GenStyle<TaffyStyle>> BuildTree<R, G> for TaffyTreeBuilder<R, G> {
const NAME: &'static str = "Taffy 0.4";
const NAME: &'static str = "Taffy 0.7";
type Tree = TaffyTree;
type Node = TaffyNodeId;

Expand Down

0 comments on commit b765cb5

Please sign in to comment.