diff --git a/.github/workflows/ci-changed-examples.yml b/.github/workflows/ci-changed-examples.yml index fbf9f59ba4..3c14b2fa43 100644 --- a/.github/workflows/ci-changed-examples.yml +++ b/.github/workflows/ci-changed-examples.yml @@ -29,4 +29,4 @@ jobs: with: directory: ${{ matrix.directory }} cargo_make_task: "ci" - toolchain: nightly-2024-01-29 + toolchain: nightly-2024-03-31 diff --git a/.github/workflows/ci-examples.yml b/.github/workflows/ci-examples.yml index bced8a5cd4..ed0d936206 100644 --- a/.github/workflows/ci-examples.yml +++ b/.github/workflows/ci-examples.yml @@ -24,4 +24,4 @@ jobs: with: directory: ${{ matrix.directory }} cargo_make_task: "ci" - toolchain: nightly-2024-01-29 + toolchain: nightly-2024-03-31 diff --git a/.github/workflows/ci-semver.yml b/.github/workflows/ci-semver.yml index 2a066edd64..f5d7567024 100644 --- a/.github/workflows/ci-semver.yml +++ b/.github/workflows/ci-semver.yml @@ -15,7 +15,7 @@ jobs: test: needs: [get-leptos-changed] if: needs.get-leptos-changed.outputs.leptos_changed == 'true' - name: Run semver check (nightly-2024-01-29) + name: Run semver check (nightly-2024-03-31) runs-on: ubuntu-latest steps: @@ -25,4 +25,4 @@ jobs: - name: Semver Checks uses: obi1kenobi/cargo-semver-checks-action@v2 with: - rust-toolchain: nightly-2024-01-29 + rust-toolchain: nightly-2024-03-31 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c23f30761..00434b8d0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,4 +40,4 @@ jobs: with: directory: ${{ matrix.directory }} cargo_make_task: "ci" - toolchain: nightly-2024-01-29 + toolchain: nightly-2024-03-31 diff --git a/.github/workflows/get-leptos-changed.yml b/.github/workflows/get-leptos-changed.yml index 36483bc096..d41a0bcfc6 100644 --- a/.github/workflows/get-leptos-changed.yml +++ b/.github/workflows/get-leptos-changed.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Get source files that changed id: changed-source diff --git a/.github/workflows/run-cargo-make-task.yml b/.github/workflows/run-cargo-make-task.yml index b7a073fb86..6b40161967 100644 --- a/.github/workflows/run-cargo-make-task.yml +++ b/.github/workflows/run-cargo-make-task.yml @@ -48,6 +48,9 @@ jobs: - name: Install wasm-bindgen run: cargo binstall wasm-bindgen-cli --no-confirm + - name: Install wasm-pack + run: cargo binstall wasm-pack --no-confirm + - name: Install cargo-leptos run: cargo binstall cargo-leptos --no-confirm diff --git a/Cargo.toml b/Cargo.toml index 849881a834..00a577c711 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,23 +25,23 @@ members = [ exclude = ["benchmarks", "examples"] [workspace.package] -version = "0.6.9" +version = "0.6.10" rust-version = "1.75" [workspace.dependencies] -leptos = { path = "./leptos", version = "0.6.9" } -leptos_dom = { path = "./leptos_dom", version = "0.6.9" } -leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.6.9" } -leptos_macro = { path = "./leptos_macro", version = "0.6.9" } -leptos_reactive = { path = "./leptos_reactive", version = "0.6.9" } -leptos_server = { path = "./leptos_server", version = "0.6.9" } -server_fn = { path = "./server_fn", version = "0.6.9" } -server_fn_macro = { path = "./server_fn_macro", version = "0.6.9" } +leptos = { path = "./leptos", version = "0.6.10" } +leptos_dom = { path = "./leptos_dom", version = "0.6.10" } +leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.6.10" } +leptos_macro = { path = "./leptos_macro", version = "0.6.10" } +leptos_reactive = { path = "./leptos_reactive", version = "0.6.10" } +leptos_server = { path = "./leptos_server", version = "0.6.10" } +server_fn = { path = "./server_fn", version = "0.6.10" } +server_fn_macro = { path = "./server_fn_macro", version = "0.6.10" } server_fn_macro_default = { path = "./server_fn/server_fn_macro_default", version = "0.6" } -leptos_config = { path = "./leptos_config", version = "0.6.9" } -leptos_router = { path = "./router", version = "0.6.9" } -leptos_meta = { path = "./meta", version = "0.6.9" } -leptos_integration_utils = { path = "./integrations/utils", version = "0.6.9" } +leptos_config = { path = "./leptos_config", version = "0.6.10" } +leptos_router = { path = "./router", version = "0.6.10" } +leptos_meta = { path = "./meta", version = "0.6.10" } +leptos_integration_utils = { path = "./integrations/utils", version = "0.6.10" } [profile.release] codegen-units = 1 diff --git a/cargo-make/check.toml b/cargo-make/check.toml index da8951cb26..6ce13a8229 100644 --- a/cargo-make/check.toml +++ b/cargo-make/check.toml @@ -3,5 +3,5 @@ alias = "check-all" [tasks.check-all] command = "cargo" -args = ["+nightly-2024-01-29", "check-all-features"] +args = ["+nightly-2024-03-31", "check-all-features"] install_crate = "cargo-all-features" diff --git a/cargo-make/lint.toml b/cargo-make/lint.toml index a996462fb7..36154091ca 100644 --- a/cargo-make/lint.toml +++ b/cargo-make/lint.toml @@ -9,12 +9,10 @@ args = ["fmt", "--", "--check", "--config-path", "${LEPTOS_PROJECT_DIRECTORY}"] dependencies = ["install-clippy"] command = "cargo" args = [ - "hack", "clippy", - "--all", - "--each-feature", - "--no-dev-deps", + "--all-features", + "--no-deps", "--", "-D", - "clippy::print_stdout" + "clippy::print_stdout", ] diff --git a/cargo-make/test.toml b/cargo-make/test.toml index b0903e1e5b..356fb2f0ab 100644 --- a/cargo-make/test.toml +++ b/cargo-make/test.toml @@ -3,5 +3,5 @@ alias = "test-all" [tasks.test-all] command = "cargo" -args = ["+nightly-2024-01-29", "test-all-features"] +args = ["+nightly-2024-03-31", "test-all-features"] install_crate = "cargo-all-features" diff --git a/examples/animated_show/Cargo.toml b/examples/animated_show/Cargo.toml index 4df8cfa0b8..c4850bd292 100644 --- a/examples/animated_show/Cargo.toml +++ b/examples/animated_show/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" codegen-units = 1 lto = true -[dependencies] +[dependencies] leptos = { path = "../../leptos", features = ["csr"] } console_log = "1" log = "0.4" diff --git a/examples/cargo-make/cargo-leptos.toml b/examples/cargo-make/cargo-leptos.toml index 825add57db..37602188ad 100644 --- a/examples/cargo-make/cargo-leptos.toml +++ b/examples/cargo-make/cargo-leptos.toml @@ -15,13 +15,13 @@ clear = true dependencies = ["check-debug", "check-release"] [tasks.check-debug] -toolchain = "nightly-2024-01-29" +toolchain = "nightly-2024-03-31" command = "cargo" args = ["check-all-features"] install_crate = "cargo-all-features" [tasks.check-release] -toolchain = "nightly-2024-01-29" +toolchain = "nightly-2024-03-31" command = "cargo" args = ["check-all-features", "--release"] install_crate = "cargo-all-features" diff --git a/examples/cargo-make/compile.toml b/examples/cargo-make/compile.toml index 88d650aea7..14724d90e1 100644 --- a/examples/cargo-make/compile.toml +++ b/examples/cargo-make/compile.toml @@ -1,11 +1,11 @@ [tasks.build] -toolchain = "nightly-2024-01-29" +toolchain = "nightly-2024-03-31" command = "cargo" args = ["build-all-features"] install_crate = "cargo-all-features" [tasks.check] -toolchain = "nightly-2024-01-29" +toolchain = "nightly-2024-03-31" command = "cargo" args = ["check-all-features"] install_crate = "cargo-all-features" diff --git a/examples/cargo-make/deno-build.toml b/examples/cargo-make/deno-build.toml index 30b5f4da26..3b74b619d1 100644 --- a/examples/cargo-make/deno-build.toml +++ b/examples/cargo-make/deno-build.toml @@ -12,13 +12,13 @@ clear = true dependencies = ["check-debug", "check-release"] [tasks.check-debug] -toolchain = "nightly-2024-01-29" +toolchain = "nightly-2024-03-31" command = "cargo" args = ["check-all-features"] install_crate = "cargo-all-features" [tasks.check-release] -toolchain = "nightly-2024-01-29" +toolchain = "nightly-2024-03-31" command = "cargo" args = ["check-all-features", "--release"] install_crate = "cargo-all-features" diff --git a/examples/counter/Cargo.toml b/examples/counter/Cargo.toml index 9ae44fe19b..46f237b64f 100644 --- a/examples/counter/Cargo.toml +++ b/examples/counter/Cargo.toml @@ -8,7 +8,7 @@ codegen-units = 1 lto = true [dependencies] -leptos = { path = "../../leptos", features = ["csr", "nightly"] } +leptos = { path = "../../leptos", features = ["csr"] } console_log = "1" log = "0.4" console_error_panic_hook = "0.1.7" diff --git a/examples/counter/rust-toolchain.toml b/examples/counter/rust-toolchain.toml index 055e912d2e..99fa95aaaf 100644 --- a/examples/counter/rust-toolchain.toml +++ b/examples/counter/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly-2024-01-29" +channel = "nightly-2024-03-31" diff --git a/examples/counter/src/lib.rs b/examples/counter/src/lib.rs index a55a630693..66b0e90dcd 100644 --- a/examples/counter/src/lib.rs +++ b/examples/counter/src/lib.rs @@ -14,9 +14,9 @@ pub fn SimpleCounter( view! {
- + - "Value: " {value} "!" + "Value: " {move || value.get()} "!"
} diff --git a/examples/counter_isomorphic/Cargo.toml b/examples/counter_isomorphic/Cargo.toml index 370987d779..fccc8a4904 100644 --- a/examples/counter_isomorphic/Cargo.toml +++ b/examples/counter_isomorphic/Cargo.toml @@ -31,7 +31,6 @@ simple_logger = "4.3" tracing = { version = "0.1", optional = true } [features] -default = ["nightly"] hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"] ssr = [ "dep:actix-files", @@ -45,7 +44,7 @@ ssr = [ nightly = ["leptos/nightly", "leptos_router/nightly"] [package.metadata.cargo-all-features] -denylist = ["actix-files", "actix-web", "leptos_actix", "nightly"] +denylist = ["actix-files", "actix-web", "leptos_actix"] skip_feature_sets = [["ssr", "hydrate"]] [package.metadata.leptos] diff --git a/examples/counter_url_query/Cargo.toml b/examples/counter_url_query/Cargo.toml index 743c848aa5..8bfa95fb56 100644 --- a/examples/counter_url_query/Cargo.toml +++ b/examples/counter_url_query/Cargo.toml @@ -8,7 +8,7 @@ codegen-units = 1 lto = true [dependencies] -leptos = { path = "../../leptos", features = ["csr", "nightly"] } +leptos = { path = "../../leptos", features = ["csr"] } leptos_router = { path = "../../router", features = ["csr"] } console_log = "1" log = "0.4" diff --git a/examples/counter_url_query/rust-toolchain.toml b/examples/counter_url_query/rust-toolchain.toml index 055e912d2e..292fe499e3 100644 --- a/examples/counter_url_query/rust-toolchain.toml +++ b/examples/counter_url_query/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly-2024-01-29" +channel = "stable" diff --git a/examples/counter_url_query/src/lib.rs b/examples/counter_url_query/src/lib.rs index 39165f3df2..f4f4ff3b05 100644 --- a/examples/counter_url_query/src/lib.rs +++ b/examples/counter_url_query/src/lib.rs @@ -7,17 +7,17 @@ use leptos_router::*; #[component] pub fn SimpleQueryCounter() -> impl IntoView { let (count, set_count) = create_query_signal::("count"); - let clear = move |_| set_count(None); - let decrement = move |_| set_count(Some(count().unwrap_or(0) - 1)); - let increment = move |_| set_count(Some(count().unwrap_or(0) + 1)); + let clear = move |_| set_count.set(None); + let decrement = move |_| set_count.set(Some(count.get().unwrap_or(0) - 1)); + let increment = move |_| set_count.set(Some(count.get().unwrap_or(0) + 1)); let (msg, set_msg) = create_query_signal::("message"); let update_msg = move |ev| { let new_msg = event_target_value(&ev); if new_msg.is_empty() { - set_msg(None); + set_msg.set(None); } else { - set_msg(Some(new_msg)); + set_msg.set(Some(new_msg)); } }; @@ -25,13 +25,13 @@ pub fn SimpleQueryCounter() -> impl IntoView {
- "Value: " {move || count().unwrap_or(0)} "!" + "Value: " {move || count.get().unwrap_or(0)} "!"
diff --git a/examples/counter_without_macros/src/lib.rs b/examples/counter_without_macros/src/lib.rs index ca67982a7f..6124517f8c 100644 --- a/examples/counter_without_macros/src/lib.rs +++ b/examples/counter_without_macros/src/lib.rs @@ -1,4 +1,4 @@ -use leptos::{ev, html::*, *}; +use leptos::{html::*, *}; /// A simple counter view. // A component is really just a function call: it runs once to create the DOM and reactive system diff --git a/examples/counters/Cargo.toml b/examples/counters/Cargo.toml index a788c6ddbb..d59b430352 100644 --- a/examples/counters/Cargo.toml +++ b/examples/counters/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { path = "../../leptos", features = ["csr", "nightly"] } +leptos = { path = "../../leptos", features = ["csr"] } log = "0.4" console_log = "1" console_error_panic_hook = "0.1.7" diff --git a/examples/counters/rust-toolchain.toml b/examples/counters/rust-toolchain.toml index 055e912d2e..99fa95aaaf 100644 --- a/examples/counters/rust-toolchain.toml +++ b/examples/counters/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly-2024-01-29" +channel = "nightly-2024-03-31" diff --git a/examples/counters/src/lib.rs b/examples/counters/src/lib.rs index b154be3b69..3df34397c7 100644 --- a/examples/counters/src/lib.rs +++ b/examples/counters/src/lib.rs @@ -1,4 +1,4 @@ -use leptos::{For, *}; +use leptos::*; const MANY_COUNTERS: usize = 1000; @@ -16,14 +16,14 @@ pub fn Counters() -> impl IntoView { provide_context(CounterUpdater { set_counters }); let add_counter = move |_| { - let id = next_counter_id(); + let id = next_counter_id.get(); let sig = create_signal(0); set_counters.update(move |counters| counters.push((id, sig))); set_next_counter_id.update(|id| *id += 1); }; let add_many_counters = move |_| { - let next_id = next_counter_id(); + let next_id = next_counter_id.get(); let new_counters = (next_id..next_id + MANY_COUNTERS).map(|id| { let signal = create_signal(0); (id, signal) @@ -53,17 +53,17 @@ pub fn Counters() -> impl IntoView { {move || counters.get() .iter() - .map(|(_, (count, _))| count()) + .map(|(_, (count, _))| count.get()) .sum::() .to_string() } " from " - {move || counters().len().to_string()} + {move || counters.get().len().to_string()} " counters."