Ver Fonte

publish: new versions of everything

Jonathan Kelley há 3 anos atrás
pai
commit
4ea5c990d7

+ 5 - 5
Cargo.toml

@@ -12,12 +12,12 @@ keywords = ["dom", "ui", "gui", "react", "wasm"]
 
 [dependencies]
 dioxus-core = { path = "./packages/core", version = "^0.1.6" }
-dioxus-html = { path = "./packages/html", version = "^0.1.1", optional = true }
-dioxus-core-macro = { path = "./packages/core-macro", version = "^0.1.3", optional = true }
-dioxus-hooks = { path = "./packages/hooks", version = "^0.1.4", optional = true }
+dioxus-html = { path = "./packages/html", version = "^0.1.3", optional = true }
+dioxus-core-macro = { path = "./packages/core-macro", version = "^0.1.5", optional = true }
+dioxus-hooks = { path = "./packages/hooks", version = "^0.1.5", optional = true }
 
-dioxus-web = { path = "./packages/web", version = "^0.0.2", optional = true }
-dioxus-desktop = { path = "./packages/desktop", version = "^0.1.1", optional = true }
+dioxus-web = { path = "./packages/web", version = "^0.0.3", optional = true }
+dioxus-desktop = { path = "./packages/desktop", version = "^0.1.3", optional = true }
 dioxus-ssr = { path = "./packages/ssr", version = "0.1.1", optional = true }
 
 # dioxus-router = { path = "./packages/router", optional = true }

+ 1 - 1
packages/core-macro/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "dioxus-core-macro"
-version = "0.1.4"
+version = "0.1.5"
 authors = ["Jonathan Kelley"]
 edition = "2021"
 description = "Core macro for Dioxus Virtual DOM"

+ 1 - 1
packages/html/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "dioxus-html"
-version = "0.1.2"
+version = "0.1.3"
 authors = ["Jonathan Kelley"]
 edition = "2018"
 description = "HTML Element pack for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"

+ 1 - 1
packages/ssr/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "dioxus-ssr"
-version = "0.1.1"
+version = "0.1.2"
 authors = ["Jonathan Kelley"]
 edition = "2018"
 description = "Dioxus render-to-string"

+ 1 - 1
packages/web/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "dioxus-web"
-version = "0.0.2"
+version = "0.0.3"
 authors = ["Jonathan Kelley"]
 edition = "2018"
 description = "Dioxus VirtualDOM renderer for the web browser using websys"

+ 2 - 2
packages/web/src/dom.rs

@@ -13,7 +13,7 @@ use std::{any::Any, fmt::Debug, rc::Rc, sync::Arc};
 use wasm_bindgen::{closure::Closure, JsCast};
 use web_sys::{
     CssStyleDeclaration, Document, Element, Event, HtmlElement, HtmlInputElement,
-    HtmlOptionElement, HtmlTextAreaElement, Node, NodeList,
+    HtmlOptionElement, HtmlTextAreaElement, Node,
 };
 
 use crate::{nodeslab::NodeSlab, WebConfig};
@@ -49,7 +49,7 @@ impl WebsysDom {
     pub fn new(root: Element, cfg: WebConfig, sender_callback: Rc<dyn Fn(SchedulerMsg)>) -> Self {
         let document = load_document();
 
-        let mut nodes = NodeSlab::new(2000);
+        let nodes = NodeSlab::new(2000);
         let listeners = FxHashMap::default();
 
         // re-hydrate the page - only supports one virtualdom per page