Skip to content

Commit fb85305

Browse files
committed
Prepare for 0.8.0 release
Signed-off-by: Nico Burns <[email protected]>
1 parent ceed1d7 commit fb85305

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
# Changelog
22

3+
## 0.8.0
4+
5+
### Highlights
6+
7+
**The big feature in this release is support for `calc()` values in the low-level API.**
8+
9+
To use this API:
10+
- Implement the `resolve_calc_value` method when implementing the `LayoutPartialTree` trait.
11+
- Pass a type-erased pointer (`*const ()`) to constructors like `LengthPercentage::calc(...)`
12+
13+
Taffy treats the pointer as an opaque value (excepting that it uses the low 3 bits as a tag) which it will
14+
pass to `LayoutPartialTree::resolve_calc_value` along with a percentage resolution basis when it needs to
15+
resolve the value.
16+
17+
### Changed
18+
- The representation of many "size" types is now a tagged pointer than an enum. This is to enable `calc()`.
19+
The effected types are `LengthPercentage`, `LengthPercentageAuto`, `Dimension`, `MinTrackSizingFunction`, and
20+
`MaxTrackSizingFunction` types.
21+
22+
### Added
23+
24+
- Special-case "compressible replaced elements" in grid sizing algorithm (#807)
25+
This allows for more correct sizing of "replaced" elements such as images that are children
26+
of flexbox or grid containers.
27+
28+
### Fixed
29+
30+
- Grid: Fix infinite loop due to float precision in grid layout maximise tracks step (#792)
31+
- Grid: Fix removed wrong addition, causing items to be misplaced. (#817)
32+
- Grid: Fix grid placement for items with fixed primary axis (#818)
33+
- Leaf layout: don't set available space to max-size (#819)
34+
35+
36+
## 0.7.7
37+
38+
### Fixed
39+
40+
- Add `#[inline]` annotation to some methods on `TaffyTree` (#802)
41+
- Add `TaffyTree::remove_children_range` method (#802)
42+
43+
## 0.7.6
44+
45+
### Fixed
46+
47+
- Fix infinite loop due to float precision in grid layout maximise tracks step (#792)
48+
49+
## 0.7.5
50+
51+
### Fixed
52+
53+
- Grid: only stretch auto tracks if content-alignment is stretch (#783)
54+
55+
## 0.7.4
56+
57+
### Fixed
58+
59+
- Fix detailed grid info for empty grid (#782)
60+
361
## 0.7.3
462

563
### Fixed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "taffy"
3-
version = "0.7.3"
3+
version = "0.8.0"
44
authors = [
55
"Alice Cecile <[email protected]>",
66
"Johnathan Kelley <[email protected]>",

0 commit comments

Comments
 (0)