-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add breaking unwrap removal changes to RELEASES.md
- Loading branch information
Showing
1 changed file
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,31 @@ | |
|
||
### Breaking | ||
|
||
#### Fewer unwraps. | ||
Check failure on line 7 in RELEASES.md GitHub Actions / Markdown LintTrailing punctuation in heading
|
||
|
||
Infallible `Taffy` methods that have previously returned `TaffyResult` will simply return the `Ok` value only. | ||
This change affects the following methods: | ||
|
||
* `Taffy::add_child`, | ||
* `Taffy::child_count`, | ||
* `Taffy::children`, | ||
* `Taffy::compute_layout`, | ||
* `Taffy::dirty`, | ||
* `Taffy::layout`, | ||
* `Taffy::mark_dirty`, | ||
* `Taffy::new_leaf_with_measure`, | ||
* `Taffy::new_with_children`, | ||
* `Taffy::remove`, | ||
* `Taffy::set_children`, | ||
* `Taffy::set_measure`, | ||
* `Taffy::set_style`, | ||
* `Taffy::style`, | ||
* `Taffy::new_leaf`, | ||
|
||
#### Replace `Points` with `Length` | ||
|
||
Many APIs have been renamed to replace `points` or `Points` with `length` or `Length`. | ||
This new name better describes one-dimentional measure of space in some unspecified unit | ||
This new name better describes one-dimensional measure of space in some unspecified unit | ||
which is often unrelated to the PostScript point or the CSS `pt` unit. | ||
|
||
This also removes a misleading similarity with the 2D `Point`, | ||
|