Skip to content

Commit c3ecb7d

Browse files
authored
Prepare for 0.8.0 release (#808)
Signed-off-by: Nico Burns <nico@nicoburns.com>
1 parent ceed1d7 commit c3ecb7d

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

CHANGELOG.md

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

564
### 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 <alice.i.cecile@gmail.com>",
66
"Johnathan Kelley <jkelleyrtp@gmail.com>",

0 commit comments

Comments
 (0)