Skip to content

Commit

Permalink
Prepare for v0.7.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Burns <nico@nicoburns.com>
  • Loading branch information
nicoburns committed Dec 12, 2024
1 parent 63f4ade commit 1cb4c47
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

Check failure on line 11 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Headings should be surrounded by blank lines

CHANGELOG.md:11 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "### Added"] https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/md022.md
- Helper methods to retrieve content-box sizes were added to `Layout`

Check failure on line 12 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Lists should be surrounded by blank lines

CHANGELOG.md:12 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- Helper methods to retrieve c..."] https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/md032.md


Check failure on line 14 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Multiple consecutive blank lines

CHANGELOG.md:14 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.36.1/doc/md012.md
## 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 <alice.i.cecile@gmail.com>",
"Johnathan Kelley <jkelleyrtp@gmail.com>",
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 1cb4c47

Please sign in to comment.