Skip to content

Commit 58daf29

Browse files
committed
Add breaking unwrap removal changes to RELEASES.md
1 parent efcd1ac commit 58daf29

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

RELEASES.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,31 @@
44

55
### Breaking
66

7+
#### Fewer unwraps.
8+
9+
Infallible `Taffy` methods that have previously returned `TaffyResult` will simply return the `Ok` value only.
10+
This change affects the following methods:
11+
12+
* `Taffy::add_child`,
13+
* `Taffy::child_count`,
14+
* `Taffy::children`,
15+
* `Taffy::compute_layout`,
16+
* `Taffy::dirty`,
17+
* `Taffy::layout`,
18+
* `Taffy::mark_dirty`,
19+
* `Taffy::new_leaf_with_measure`,
20+
* `Taffy::new_with_children`,
21+
* `Taffy::remove`,
22+
* `Taffy::set_children`,
23+
* `Taffy::set_measure`,
24+
* `Taffy::set_style`,
25+
* `Taffy::style`,
26+
* `Taffy::new_leaf`,
27+
28+
#### Replace `Points` with `Length`
29+
730
Many APIs have been renamed to replace `points` or `Points` with `length` or `Length`.
8-
This new name better describes one-dimentional measure of space in some unspecified unit
31+
This new name better describes one-dimensional measure of space in some unspecified unit
932
which is often unrelated to the PostScript point or the CSS `pt` unit.
1033

1134
This also removes a misleading similarity with the 2D `Point`,

0 commit comments

Comments
 (0)