From 18eeee8e1f1e3aa5393cc1c92a015fdef70c5cd8 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 22 Sep 2023 17:38:54 -0400 Subject: [PATCH 1/2] `0.5.0-rc3` --- Cargo.toml | 28 ++++++++++++++-------------- docs/book/src/01_introduction.md | 2 +- docs/book/src/02_getting_started.md | 4 ++-- meta/Cargo.toml | 2 +- router/Cargo.toml | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e8abafeeb7..b5ffe13705 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,22 +26,22 @@ members = [ exclude = ["benchmarks", "examples"] [workspace.package] -version = "0.5.0-rc2" +version = "0.5.0-rc3" [workspace.dependencies] -leptos = { path = "./leptos", version = "0.5.0-rc2" } -leptos_dom = { path = "./leptos_dom", version = "0.5.0-rc2" } -leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.5.0-rc2" } -leptos_macro = { path = "./leptos_macro", version = "0.5.0-rc2" } -leptos_reactive = { path = "./leptos_reactive", version = "0.5.0-rc2" } -leptos_server = { path = "./leptos_server", version = "0.5.0-rc2" } -server_fn = { path = "./server_fn", version = "0.5.0-rc2" } -server_fn_macro = { path = "./server_fn_macro", version = "0.5.0-rc2" } -server_fn_macro_default = { path = "./server_fn/server_fn_macro_default", version = "0.5.0-rc2" } -leptos_config = { path = "./leptos_config", version = "0.5.0-rc2" } -leptos_router = { path = "./router", version = "0.5.0-rc2" } -leptos_meta = { path = "./meta", version = "0.5.0-rc2" } -leptos_integration_utils = { path = "./integrations/utils", version = "0.5.0-rc2" } +leptos = { path = "./leptos", version = "0.5.0-rc3" } +leptos_dom = { path = "./leptos_dom", version = "0.5.0-rc3" } +leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.5.0-rc3" } +leptos_macro = { path = "./leptos_macro", version = "0.5.0-rc3" } +leptos_reactive = { path = "./leptos_reactive", version = "0.5.0-rc3" } +leptos_server = { path = "./leptos_server", version = "0.5.0-rc3" } +server_fn = { path = "./server_fn", version = "0.5.0-rc3" } +server_fn_macro = { path = "./server_fn_macro", version = "0.5.0-rc3" } +server_fn_macro_default = { path = "./server_fn/server_fn_macro_default", version = "0.5.0-rc3" } +leptos_config = { path = "./leptos_config", version = "0.5.0-rc3" } +leptos_router = { path = "./router", version = "0.5.0-rc3" } +leptos_meta = { path = "./meta", version = "0.5.0-rc3" } +leptos_integration_utils = { path = "./integrations/utils", version = "0.5.0-rc3" } [profile.release] codegen-units = 1 diff --git a/docs/book/src/01_introduction.md b/docs/book/src/01_introduction.md index 25e1d2a9e9..250a5752bc 100644 --- a/docs/book/src/01_introduction.md +++ b/docs/book/src/01_introduction.md @@ -17,6 +17,6 @@ understand Leptos. You can find more detailed docs for each part of the API at [Docs.rs](https://docs.rs/leptos/latest/leptos/). -**Important Note**: This current version of the book reflects the upcoming `0.5.0` release, which you can install as version `0.5.0-rc2`. The CodeSandbox versions of the examples still reflect `0.4` and earlier APIs and are in the process of being updated. +**Important Note**: This current version of the book reflects the upcoming `0.5.0` release, which you can install as version `0.5.0-rc3`. The CodeSandbox versions of the examples still reflect `0.4` and earlier APIs and are in the process of being updated. > The source code for the book is available [here](https://github.com/leptos-rs/leptos/tree/main/docs/book). PRs for typos or clarification are always welcome. diff --git a/docs/book/src/02_getting_started.md b/docs/book/src/02_getting_started.md index 11e68d3f17..d082f9b9b1 100644 --- a/docs/book/src/02_getting_started.md +++ b/docs/book/src/02_getting_started.md @@ -23,7 +23,7 @@ cargo init leptos-tutorial `cd` into your new `leptos-tutorial` project and add `leptos` as a dependency ```bash -cargo add leptos@0.5.0-rc2 --features=csr,nightly +cargo add leptos@0.5.0-rc3 --features=csr,nightly ``` > **Note**: This version of the book reflects the upcoming Leptos 0.5.0 release. The CodeSandbox examples have not yet been updated from 0.4 and earlier versions. @@ -31,7 +31,7 @@ cargo add leptos@0.5.0-rc2 --features=csr,nightly Or you can leave off `nightly` if you're using stable Rust ```bash -cargo add leptos@0.5.0-rc2 --features=csr +cargo add leptos@0.5.0-rc3 --features=csr ``` > Using `nightly` Rust, and the `nightly` feature in Leptos enables the function-call syntax for signal getters and setters that is used in most of this book. diff --git a/meta/Cargo.toml b/meta/Cargo.toml index 77b7b7a20d..52eaf3fc35 100644 --- a/meta/Cargo.toml +++ b/meta/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leptos_meta" -version = "0.5.0-rc2" +version = "0.5.0-rc3" edition = "2021" authors = ["Greg Johnston"] license = "MIT" diff --git a/router/Cargo.toml b/router/Cargo.toml index dbd91bf0f5..1b28b56e4b 100644 --- a/router/Cargo.toml +++ b/router/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leptos_router" -version = "0.5.0-rc2" +version = "0.5.0-rc3" edition = "2021" authors = ["Greg Johnston"] license = "MIT" From b1363a16ab1a4e33fa06811deb1faeec8a354fd1 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sat, 23 Sep 2023 12:46:41 -0400 Subject: [PATCH 2/2] docs: fix `Show` docs reference to scope --- leptos/src/show.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/leptos/src/show.rs b/leptos/src/show.rs index b804f7c542..581df29312 100644 --- a/leptos/src/show.rs +++ b/leptos/src/show.rs @@ -35,9 +35,7 @@ use leptos_reactive::{create_memo, signal_prelude::*}; )] #[component] pub fn Show( - /// The scope the component is running in - - /// The components Show wraps + /// The children will be shown whenever the condition in the `when` closure returns `true`. children: ChildrenFn, /// A closure that returns a bool that determines whether this thing runs when: W,