From 8cae1bac7fc59a2a872230bc52d6d234bc2c9c3d Mon Sep 17 00:00:00 2001 From: gibbz00 Date: Thu, 20 Jul 2023 18:25:13 +0200 Subject: [PATCH] Add breaking unwrap removal changes to RELEASES.md --- RELEASES.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/RELEASES.md b/RELEASES.md index ad42aaf453..f49fa728ce 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4,8 +4,31 @@ ### Breaking +#### Fewer unwraps. + +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`,