1# Release Notes
2
3## 0.2.0
4
5### 0.2.0 Added
6
7- Added `taffy::error::InvalidChild` Error type
8- `taffy::node::Taffy.new_leaf()` which allows the creation of new leaf-nodes without having to supply a measure function
9
10### 0.2.0 Changed
11
12- renamed `taffy::node::Taffy.new_leaf()` -> `taffy::node::Taffy.new_leaf_with_measure()`
13- removed the public `Number` type; a more idiomatic `Option<f32>` is used instead
14 - the associated public `MinMax` and `OrElse` traits have also been removed; these should never have been public
15- `Sprawl::remove` now returns a `Result<usize, Error>`, to indicate if the operation was sucessful, and if it was, which ID was invalidated.
16- renamed `taffy::forest::Forest.new-node(..)` `taffy::forest::Forest.new_with_children(..)`
17- renamed `taffy::node::Taffy.new-node(..)` -> `taffy::node::Taffy.new_with_children(..)`
18- renamed `taffy::style::Style` -> `taffy::style::FlexboxLayout` to more precicely indicate its purpose
19- renamed `taffy::Error` -> `taffy::error::InvalidNode`
20- `taffy::Taffy::remove_child_at_index`, `taffy::Taffy::replace_child_at_index`, and `taffy::Taffy::child_at_index` now return `taffy::InvalidChild::ChildIndexOutOfBounds` instead of panicing
21
22### 0.2.0 Fixed
23
24- fixed rounding of fractional values to follow latest Chrome - values are now rounded the same regardless of their position
25- fixed computing free space when using both `flex-grow` and a minimum size
26- padding is now only subtracted when determining the available space if the node size is unspecified, following [section 9.2.2 of the flexbox spec](https://www.w3.org/TR/css-flexbox-1/#line-sizing)
27- `MeasureFunc` (and hence `NodeData` and hence `Forest` and hence the public `Taffy` type) are now `Send` and `Sync`, enabling their use in async and parallel applications
28
29### 0.2.0 Removed
30
31- various internal types are no longer public
32 - if you needed one of these, please file an issue!
33
34## 0.1.0
35
36### 0.1.0 Changed
37
38- the `order` field of `Layout` is now public, and describes the relative z-ordering of nodes
39- renamed crate from `stretch2` to `taffy`
40- updated to the latest version of all dependencies to reduce upstream pain caused by duplicate dependencies
41- renamed `stretch::node::Strech` -> `taffy::node::Taffy`
42
43### 0.1.0 Fixed
44
45- fixed feature strategy for `alloc` and `std`: these can now be compiled together, with `std`'s types taking priority
46
47### 0.1.0 Removed
48
49- removed Javascript / Kotlin / Swift bindings
50 - the maintainer team lacks expertise to keep these working
51 - more serious refactors are planned, and this will be challenging to keep working through that process
52 - if you are interested in helping us maintain bindings to other languages, [get in touch](https://github.com/DioxusLabs/taffy/discussions)!
53- the `serde_camel_case` and `serde_kebab_case` features have been removed: they were poorly motivated and were not correctly additive (if both were enabled compilation would fail)
54- removed the `Direction` and `Overflow` structs, and the corresponding `direction` and `overflow` fields from `Style`
55 - these had no effect in the current code base and were actively misleading
56
57## stretch2 0.4.3
58
59This is the final release of `stretch`: migrate to the crate named `taffy` for future fixes and features!
60
61These notes describe the differences between this release and `stretch` 0.3.2, the abandoned crate from which this library was forked.
62
63### Changed
64
65- updated [assorted dependencies](https://github.com/vislyhq/stretch/commit/a6491117379cea52dedc9584d892594a143e8cb0)
66
67### Fixed
68
69- fixed an exponential performance blow-up with deep nesting
70- fixed percent height values, which were using parent width
71- recomputing layout no longer moves children of non-zero-positioned parent
72- fixed broken Swift bindings
RELEASES.md
Release Notes
0.2.0
0.2.0 Added
- Added
taffy::error::InvalidChild Error type
taffy::node::Taffy.new_leaf() which allows the creation of new leaf-nodes without having to supply a measure function
0.2.0 Changed
- renamed
taffy::node::Taffy.new_leaf() -> taffy::node::Taffy.new_leaf_with_measure()
- removed the public
Number type; a more idiomatic Option<f32> is used instead
- the associated public
MinMax and OrElse traits have also been removed; these should never have been public
Sprawl::remove now returns a Result<usize, Error>, to indicate if the operation was sucessful, and if it was, which ID was invalidated.
- renamed
taffy::forest::Forest.new-node(..) taffy::forest::Forest.new_with_children(..)
- renamed
taffy::node::Taffy.new-node(..) -> taffy::node::Taffy.new_with_children(..)
- renamed
taffy::style::Style -> taffy::style::FlexboxLayout to more precicely indicate its purpose
- renamed
taffy::Error -> taffy::error::InvalidNode
taffy::Taffy::remove_child_at_index, taffy::Taffy::replace_child_at_index, and taffy::Taffy::child_at_index now return taffy::InvalidChild::ChildIndexOutOfBounds instead of panicing
0.2.0 Fixed
- fixed rounding of fractional values to follow latest Chrome - values are now rounded the same regardless of their position
- fixed computing free space when using both
flex-grow and a minimum size
- padding is now only subtracted when determining the available space if the node size is unspecified, following section 9.2.2 of the flexbox spec
MeasureFunc (and hence NodeData and hence Forest and hence the public Taffy type) are now Send and Sync, enabling their use in async and parallel applications
0.2.0 Removed
- various internal types are no longer public
- if you needed one of these, please file an issue!
0.1.0
0.1.0 Changed
- the
order field of Layout is now public, and describes the relative z-ordering of nodes
- renamed crate from
stretch2 to taffy
- updated to the latest version of all dependencies to reduce upstream pain caused by duplicate dependencies
- renamed
stretch::node::Strech -> taffy::node::Taffy
0.1.0 Fixed
- fixed feature strategy for
alloc and std: these can now be compiled together, with std's types taking priority
0.1.0 Removed
- removed Javascript / Kotlin / Swift bindings
- the maintainer team lacks expertise to keep these working
- more serious refactors are planned, and this will be challenging to keep working through that process
- if you are interested in helping us maintain bindings to other languages, get in touch!
- the
serde_camel_case and serde_kebab_case features have been removed: they were poorly motivated and were not correctly additive (if both were enabled compilation would fail)
- removed the
Direction and Overflow structs, and the corresponding direction and overflow fields from Style
- these had no effect in the current code base and were actively misleading
stretch2 0.4.3
This is the final release of stretch: migrate to the crate named taffy for future fixes and features!
These notes describe the differences between this release and stretch 0.3.2, the abandoned crate from which this library was forked.
Changed
Fixed
- fixed an exponential performance blow-up with deep nesting
- fixed percent height values, which were using parent width
- recomputing layout no longer moves children of non-zero-positioned parent
- fixed broken Swift bindings