From ea676489715c02c8e9cd57f41ed520b9691f124d Mon Sep 17 00:00:00 2001 From: Luke Chu <37006668+lukechu10@users.noreply.github.com> Date: Sun, 26 Jun 2022 09:20:28 -0700 Subject: [PATCH] v0.8.0-beta.7 --- docs/next/advanced/routing.md | 2 +- docs/next/getting_started/installation.md | 2 +- docs/versioned_docs/v0.8/advanced/routing.md | 2 +- docs/versioned_docs/v0.8/basics/view.md | 21 +++++++++++++++++-- .../v0.8/getting_started/installation.md | 2 +- packages/sycamore-core/Cargo.toml | 4 ++-- packages/sycamore-futures/Cargo.toml | 4 ++-- packages/sycamore-macro/Cargo.toml | 2 +- packages/sycamore-reactive/Cargo.toml | 2 +- packages/sycamore-router-macro/Cargo.toml | 2 +- packages/sycamore-router/Cargo.toml | 6 +++--- packages/sycamore-web/Cargo.toml | 6 +++--- packages/sycamore/Cargo.toml | 12 +++++------ website/src/versions.rs | 3 ++- 14 files changed, 44 insertions(+), 26 deletions(-) diff --git a/docs/next/advanced/routing.md b/docs/next/advanced/routing.md index bbea8836f..57278755d 100644 --- a/docs/next/advanced/routing.md +++ b/docs/next/advanced/routing.md @@ -11,7 +11,7 @@ To add routing to your Sycamore app, install the [`sycamore-router`](https://crates.io/crates/sycamore-router) crate from crates.io. ```toml -sycamore-router = "0.8.0-beta.6" +sycamore-router = "0.8.0-beta.7" ``` ### Compatibility with `sycamore` diff --git a/docs/next/getting_started/installation.md b/docs/next/getting_started/installation.md index 5e19d3958..00daccca8 100644 --- a/docs/next/getting_started/installation.md +++ b/docs/next/getting_started/installation.md @@ -61,7 +61,7 @@ You now need to add Sycamore to your new project's dependencies. Add the followi `Cargo.toml` file in your project folder: ```toml -sycamore = "0.8.0-beta.6" +sycamore = "0.8.0-beta.7" ``` > **Note**: Sycamore is currently being developed at a rapid pace. To have access to the latest diff --git a/docs/versioned_docs/v0.8/advanced/routing.md b/docs/versioned_docs/v0.8/advanced/routing.md index bbea8836f..57278755d 100644 --- a/docs/versioned_docs/v0.8/advanced/routing.md +++ b/docs/versioned_docs/v0.8/advanced/routing.md @@ -11,7 +11,7 @@ To add routing to your Sycamore app, install the [`sycamore-router`](https://crates.io/crates/sycamore-router) crate from crates.io. ```toml -sycamore-router = "0.8.0-beta.6" +sycamore-router = "0.8.0-beta.7" ``` ### Compatibility with `sycamore` diff --git a/docs/versioned_docs/v0.8/basics/view.md b/docs/versioned_docs/v0.8/basics/view.md index 59866d601..b09be711b 100644 --- a/docs/versioned_docs/v0.8/basics/view.md +++ b/docs/versioned_docs/v0.8/basics/view.md @@ -118,6 +118,24 @@ view! { cx, Instead, when displaying user input, use interpolation syntax instead. +### Properties + +Properties are set using the `prop:*` directive. + +```rust +view! { cx, + input(type="checkbox", prop:indeterminate=true) +} +``` + +There are some properties that do not have an attribute, such as +`indeterminate` in HTML, which must be set using the `prop:*` directive. + +There are a number of properties that have an associated attribute, such as +`value`, in these cases an attribute is deserialized to become the state of the +property. Consider using the `prop:*` for these cases when the value expected by +the element property is not a `string`. + ### Events Events are attached using the `on:*` directive. @@ -152,8 +170,7 @@ view! { cx, } ## Builder syntax For those who dislike macro DSLs, we also provide an ergonomic builder API for constructing views. -To begin, enable the `"builder"` feature flag on `sycamore` in your `Cargo.toml` file. Also make -sure to add the builder prelude as well as the main sycamore prelude to your source file. +Add the builder prelude as well as the main sycamore prelude to your source file. ```rust use sycamore::builder::prelude::*; diff --git a/docs/versioned_docs/v0.8/getting_started/installation.md b/docs/versioned_docs/v0.8/getting_started/installation.md index 5e19d3958..00daccca8 100644 --- a/docs/versioned_docs/v0.8/getting_started/installation.md +++ b/docs/versioned_docs/v0.8/getting_started/installation.md @@ -61,7 +61,7 @@ You now need to add Sycamore to your new project's dependencies. Add the followi `Cargo.toml` file in your project folder: ```toml -sycamore = "0.8.0-beta.6" +sycamore = "0.8.0-beta.7" ``` > **Note**: Sycamore is currently being developed at a rapid pace. To have access to the latest diff --git a/packages/sycamore-core/Cargo.toml b/packages/sycamore-core/Cargo.toml index 11c0b1aab..b71cae733 100644 --- a/packages/sycamore-core/Cargo.toml +++ b/packages/sycamore-core/Cargo.toml @@ -8,11 +8,11 @@ keywords = ["wasm", "gui", "reactive"] license = "MIT" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" -version = "0.8.0-beta.6" +version = "0.8.0-beta.7" [dependencies] ahash = "0.7.6" -sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.6" } +sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.7" } [dev-dependencies] sycamore = { path = "../sycamore" } diff --git a/packages/sycamore-futures/Cargo.toml b/packages/sycamore-futures/Cargo.toml index 4e6da27a1..6eb4d8996 100644 --- a/packages/sycamore-futures/Cargo.toml +++ b/packages/sycamore-futures/Cargo.toml @@ -8,11 +8,11 @@ keywords = ["wasm", "gui", "reactive"] license = "MIT" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" -version = "0.8.0-beta.6" +version = "0.8.0-beta.7" [dependencies] futures = "0.3.21" -sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.6" } +sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.7" } [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen-futures = "0.4.29" diff --git a/packages/sycamore-macro/Cargo.toml b/packages/sycamore-macro/Cargo.toml index 28eb59c86..71f0ab34b 100644 --- a/packages/sycamore-macro/Cargo.toml +++ b/packages/sycamore-macro/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["wasm", "gui", "reactive"] license = "MIT" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" -version = "0.8.0-beta.6" +version = "0.8.0-beta.7" [lib] proc-macro = true diff --git a/packages/sycamore-reactive/Cargo.toml b/packages/sycamore-reactive/Cargo.toml index 9b545a907..f85d9ff35 100644 --- a/packages/sycamore-reactive/Cargo.toml +++ b/packages/sycamore-reactive/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["wasm", "gui", "reactive"] license = "MIT" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" -version = "0.8.0-beta.6" +version = "0.8.0-beta.7" [dependencies] ahash = "0.7.6" diff --git a/packages/sycamore-router-macro/Cargo.toml b/packages/sycamore-router-macro/Cargo.toml index 58be1739c..e436f84f1 100644 --- a/packages/sycamore-router-macro/Cargo.toml +++ b/packages/sycamore-router-macro/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" name = "sycamore-router-macro" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" -version = "0.8.0-beta.6" +version = "0.8.0-beta.7" [lib] proc-macro = true diff --git a/packages/sycamore-router/Cargo.toml b/packages/sycamore-router/Cargo.toml index 2a47cbb45..8f121317d 100644 --- a/packages/sycamore-router/Cargo.toml +++ b/packages/sycamore-router/Cargo.toml @@ -9,13 +9,13 @@ license = "MIT" name = "sycamore-router" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" -version = "0.8.0-beta.6" +version = "0.8.0-beta.7" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -sycamore = { path = "../sycamore", version = "0.8.0-beta.6" } -sycamore-router-macro = { path = "../sycamore-router-macro", version = "0.8.0-beta.6" } +sycamore = { path = "../sycamore", version = "0.8.0-beta.7" } +sycamore-router-macro = { path = "../sycamore-router-macro", version = "0.8.0-beta.7" } wasm-bindgen = "0.2.79" [dependencies.web-sys] diff --git a/packages/sycamore-web/Cargo.toml b/packages/sycamore-web/Cargo.toml index 6c0add242..7248097ab 100644 --- a/packages/sycamore-web/Cargo.toml +++ b/packages/sycamore-web/Cargo.toml @@ -8,15 +8,15 @@ keywords = ["wasm", "gui", "reactive", "web"] license = "MIT" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" -version = "0.8.0-beta.6" +version = "0.8.0-beta.7" [dependencies] html-escape = "0.2.11" indexmap = "1.8.1" js-sys = "0.3.57" once_cell = "1.10.0" -sycamore-core = { path = "../sycamore-core", version = "0.8.0-beta.6" } -sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.6" } +sycamore-core = { path = "../sycamore-core", version = "0.8.0-beta.7" } +sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.7" } wasm-bindgen = "0.2.80" web-sys = { version = "0.3.57", features = [ "console", diff --git a/packages/sycamore/Cargo.toml b/packages/sycamore/Cargo.toml index 449a00920..a31482a95 100644 --- a/packages/sycamore/Cargo.toml +++ b/packages/sycamore/Cargo.toml @@ -8,7 +8,7 @@ keywords = ["wasm", "gui", "reactive"] license = "MIT" readme = "../../README.md" repository = "https://github.com/sycamore-rs/sycamore" -version = "0.8.0-beta.6" +version = "0.8.0-beta.7" [dependencies] ahash = "0.7.6" @@ -18,11 +18,11 @@ indexmap = { version = "1.8.0", features = ["std"] } js-sys = { version = "0.3.56", optional = true } once_cell = { version = "1.10.0", optional = true } paste = "1.0.6" -sycamore-core = { path = "../sycamore-core", version = "0.8.0-beta.6" } -sycamore-futures = { path = "../sycamore-futures", version = "0.8.0-beta.6", optional = true } -sycamore-macro = { path = "../sycamore-macro", version = "0.8.0-beta.6" } -sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.6" } -sycamore-web = { path = "../sycamore-web", version = "0.8.0-beta.6", optional = true } +sycamore-core = { path = "../sycamore-core", version = "0.8.0-beta.7" } +sycamore-futures = { path = "../sycamore-futures", version = "0.8.0-beta.7", optional = true } +sycamore-macro = { path = "../sycamore-macro", version = "0.8.0-beta.7" } +sycamore-reactive = { path = "../sycamore-reactive", version = "0.8.0-beta.7" } +sycamore-web = { path = "../sycamore-web", version = "0.8.0-beta.7", optional = true } wasm-bindgen = { version = "0.2.79", optional = true } wasm-bindgen-futures = { version = "0.4.29", optional = true } diff --git a/website/src/versions.rs b/website/src/versions.rs index 08c5e4cd2..da1147c88 100644 --- a/website/src/versions.rs +++ b/website/src/versions.rs @@ -9,7 +9,8 @@ enum VersionedDocsLink { const VERSIONS: &[(&str, VersionedDocsLink)] = &[ ("Next", VersionedDocsLink::Next), // v0.8.0 - ("v0.8.0-beta.6", VersionedDocsLink::Some("v0.8")), + ("v0.8.0-beta.7", VersionedDocsLink::Some("v0.8")), + ("v0.8.0-beta.6", VersionedDocsLink::None), ("v0.8.0-beta.5", VersionedDocsLink::None), ("v0.8.0-beta.4", VersionedDocsLink::None), ("v0.8.0-beta.3", VersionedDocsLink::None),