Repository: zng-ui/zng (language: rust)

Issue:
Small breaking changes
This issue tracks small/trivial breaking changes that must be included with the next breaking release.

* Cleanup `FrameUpdate::new` it has unused arguments.
* Rename `UiNodeVec` to `UiVec`.


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9ac1167af..bb3b8696d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,7 @@
 # Unreleased
 
+* Remove previous deprecated `UiNodeVec`.
+* Remove unused renderer param in `FrameUpdate::new`.
 
 # 0.11.8
 
diff --git a/crates/zng-app/src/render.rs b/crates/zng-app/src/render.rs
index 4940dec4a..9e4f388bb 100644
--- a/crates/zng-app/src/render.rs
+++ b/crates/zng-app/src/render.rs
@@ -2228,17 +2228,15 @@ impl FrameUpdate {
     /// * `render_update_widgets` - External update requests.
     /// * `frame_id` - Id of the new frame.
     /// * `root_id` - Id of the window root widget.
-    /// * `renderer` - Reference to the renderer that will update.
+    /// * `root_bounds` - Bounds info of the window root widget.
     /// * `clear_color` - The current clear color.
     pub fn new(
         render_update_widgets: Arc<RenderUpdates>,
         frame_id: FrameId,
         root_id: WidgetId,
         root_bounds: WidgetBoundsInfo,
-        renderer: Option<&ViewRenderer>,
         clear_color: Rgba,
     ) -> Self {
-        let _ = renderer;
         FrameUpdate {
             render_update_widgets,
             widget_id: root_id,
@@ -2710,14 +2708,7 @@ impl FrameUpdate {
         root_bounds: WidgetBoundsInfo,
         update: impl FnOnce(&mut Self),
     ) {
-        let mut nested = Self::new(
-            render_update_widgets,
-            self.frame_id,
-            root_id,
-            root_bounds,
-            None,
-            self.current_clear_color,
-        );
+        let mut nested = Self::new(render_update_widgets, self.frame_id, root_id, root_bounds, self.current_clear_color);
 
         update(&mut nested);
 
diff --git a/crates/zng-app/src/widget/node/list.rs b/crates/zng-app/src/widget/node/list.rs
index 9221703f7..8264b8355 100644
--- a/crates/zng-app/src/widget/node/list.rs
+++ b/crates/zng-app/src/widget/node/list.rs
@@ -231,10 +231,6 @@ impl UiNodeList for Vec<BoxedUiNode> {
     }
 }
 
-#[doc(hidden)]
-#[deprecated = "renamed to `UiVec`"]
-pub type UiNodeVec = UiVec;
-
 /// Vec of boxed UI nodes.
 ///
 /// This is a thin wrapper around `Vec<BoxedUiNode>` that adds helper methods for pushing widgets without needing to box.
diff --git a/crates/zng-app/src/window.rs b/crates/zng-app/src/window.rs
index edc0e1a10..875470dc0 100644
--- a/crates/zng-app/src/window.rs
+++ b/crates/zng-app/src/window.rs
@@ -468,7 +468,7 @@ mod _impl {
                 let frame_id = win.frame_id.load(Relaxed);
                 win.frame_id.store(frame_id.next_update(), Relaxed);
 
-                let f = FrameUpdate::new(Arc::default(), frame_id, wgt.id, wgt.bounds.lock().clone(), None, colors::BLACK);
+                let f = FrameUpdate::new(Arc::default(), frame_id, wgt.id, wgt.bounds.lock().clone(), colors::BLACK);
                 f
             };
 
diff --git a/crates/zng-ext-window/src/control.rs b/crates/zng-ext-window/src/control.rs
index 85e38e8aa..649f57fa2 100644
--- a/crates/zng-ext-window/src/control.rs
+++ b/crates/zng-ext-window/src/control.rs
@@ -2217,7 +2217,6 @@ impl ContentCtrl {
                 self.frame_id,
                 self.root_ctx.id(),
                 self.root_ctx.bounds(),
-                renderer.as_ref(),
                 self.clear_color,
             );
 
diff --git a/crates/zng-wgt/src/lib.rs b/crates/zng-wgt/src/lib.rs
index abd2f2aff..f6ad79935 100644
--- a/crates/zng-wgt/src/lib.rs
+++ b/crates/zng-wgt/src/lib.rs
@@ -28,8 +28,6 @@ pub mod prelude {
     pub use crate::__prelude::*;
 }
 mod __prelude {
-    #[allow(deprecated)]
-    pub use zng_app::widget::node::UiNodeVec;
     pub use zng_app::{
         event::{
             command, event, event_args, AnyEventArgs as _, Command, CommandHandle, CommandInfoExt as _, CommandNameExt as _, Event,
diff --git a/crates/zng/src/lib.rs b/crates/zng/src/lib.rs
index 73b3020bc..668920ada 100644
--- a/crates/zng/src/lib.rs
+++ b/crates/zng/src/lib.rs
@@ -568,8 +568,6 @@ mod __prelude {
         AsyncBufRead as _, AsyncRead as _, AsyncReadExt as _, AsyncSeek as _, AsyncSeekExt as _, AsyncWrite as _, AsyncWriteExt as _,
     };
 
-    #[allow(deprecated)]
-    pub use zng_app::widget::node::UiNodeVec;
     pub use zng_app::{
         event::{AnyEventArgs as _, CommandInfoExt as _, CommandNameExt as _, CommandParam, EventArgs as _},
         handler::{app_hn, app_hn_once, async_app_hn, async_app_hn_once, async_hn, async_hn_once, hn, hn_once},
@@ -723,8 +721,6 @@ pub mod prelude_wgt {
     pub use crate::__prelude_wgt::*;
 }
 mod __prelude_wgt {
-    #[allow(deprecated)]
-    pub use zng_app::widget::node::UiNodeVec;
     pub use zng_app::{
         event::{
             command, event, event_args, AnyEventArgs as _, Command, CommandHandle, CommandInfoExt as _, CommandNameExt as _, CommandParam,
diff --git a/crates/zng/src/widget.rs b/crates/zng/src/widget.rs
index a94e176cf..a1fe6a45f 100644
--- a/crates/zng/src/widget.rs
+++ b/crates/zng/src/widget.rs
@@ -226,9 +226,6 @@ pub mod node {
         with_context_local_init, with_context_var, with_context_var_init, with_index_len_node, with_index_node, with_rev_index_node,
         with_widget_state, with_widget_state_modify,
     };
-
-    #[allow(deprecated)]
-    pub use zng_app::widget::node::UiNodeVec;
 }
 
 /// Expands a struct to a widget struct and macro.


Test patch: