diff --git a/examples/counter/Cargo.toml b/examples/counter/Cargo.toml index db0452811..54d5c4de1 100644 --- a/examples/counter/Cargo.toml +++ b/examples/counter/Cargo.toml @@ -18,4 +18,4 @@ gloo-timers = { version = "0.3.0", features = ["futures"] } [dev-dependencies] wasm-bindgen = "0.2.93" wasm-bindgen-test = "0.3.42" -web-sys = "0.3.69" +web-sys = "0.3.70" diff --git a/examples/counter_url_query/Cargo.toml b/examples/counter_url_query/Cargo.toml index 1a8a5ff22..33b02b1b6 100644 --- a/examples/counter_url_query/Cargo.toml +++ b/examples/counter_url_query/Cargo.toml @@ -15,4 +15,4 @@ console_error_panic_hook = "0.1.7" [dev-dependencies] wasm-bindgen = "0.2.93" wasm-bindgen-test = "0.3.42" -web-sys = "0.3.69" +web-sys = "0.3.70" diff --git a/examples/counter_without_macros/Cargo.toml b/examples/counter_without_macros/Cargo.toml index e0dc6133b..876034a85 100644 --- a/examples/counter_without_macros/Cargo.toml +++ b/examples/counter_without_macros/Cargo.toml @@ -20,4 +20,4 @@ rstest = "0.22.0" [dev-dependencies.web-sys] features = ["HtmlElement", "XPathResult"] -version = "0.3.69" +version = "0.3.70" diff --git a/examples/counters/Cargo.toml b/examples/counters/Cargo.toml index 29ec207f5..33c41d58b 100644 --- a/examples/counters/Cargo.toml +++ b/examples/counters/Cargo.toml @@ -10,4 +10,4 @@ console_error_panic_hook = "0.1.7" [dev-dependencies] wasm-bindgen-test = "0.3.42" wasm-bindgen = "0.2.93" -web-sys = "0.3.69" +web-sys = "0.3.70" diff --git a/examples/directives/Cargo.toml b/examples/directives/Cargo.toml index 54d55f7e6..c33b157ee 100644 --- a/examples/directives/Cargo.toml +++ b/examples/directives/Cargo.toml @@ -8,9 +8,9 @@ leptos = { path = "../../leptos", features = ["csr"] } log = "0.4.22" console_log = "1.0" console_error_panic_hook = "0.1.7" -web-sys = { version = "0.3.69", features = ["Clipboard", "Navigator"] } +web-sys = { version = "0.3.70", features = ["Clipboard", "Navigator"] } [dev-dependencies] wasm-bindgen-test = "0.3.42" wasm-bindgen = "0.2.93" -web-sys = { version = "0.3.69", features = ["NodeList"] } +web-sys = { version = "0.3.70", features = ["NodeList"] } \ No newline at end of file diff --git a/examples/directives/src/lib.rs b/examples/directives/src/lib.rs index f9c34d03a..adae27c22 100644 --- a/examples/directives/src/lib.rs +++ b/examples/directives/src/lib.rs @@ -24,11 +24,7 @@ pub fn copy_to_clipboard(el: Element, content: &str) { evt.prevent_default(); evt.stop_propagation(); - let _ = window() - .navigator() - .clipboard() - .expect("navigator.clipboard to be available") - .write_text(&content); + let _ = window().navigator().clipboard().write_text(&content); el.set_inner_html(&format!("Copied \"{}\"", &content)); }); diff --git a/examples/hackernews/Cargo.toml b/examples/hackernews/Cargo.toml index d955b798e..58ed6caae 100644 --- a/examples/hackernews/Cargo.toml +++ b/examples/hackernews/Cargo.toml @@ -26,7 +26,7 @@ serde = { version = "1.0", features = ["derive"] } gloo-net = { version = "0.6.0", features = ["http"] } reqwest = { version = "0.12.5", features = ["json"] } wasm-bindgen = "0.2.93" -web-sys = { version = "0.3.69", features = ["AbortController", "AbortSignal"] } +web-sys = { version = "0.3.70", features = ["AbortController", "AbortSignal"] } send_wrapper = "0.6.0" [features] diff --git a/examples/hackernews_axum/Cargo.toml b/examples/hackernews_axum/Cargo.toml index 72c37c9ac..4f6446564 100644 --- a/examples/hackernews_axum/Cargo.toml +++ b/examples/hackernews_axum/Cargo.toml @@ -25,7 +25,7 @@ tower = { version = "0.4.13", optional = true } tower-http = { version = "0.5.2", features = ["fs"], optional = true } tokio = { version = "1.39", features = ["full"], optional = true } http = { version = "1.1", optional = true } -web-sys = { version = "0.3.69", features = ["AbortController", "AbortSignal"] } +web-sys = { version = "0.3.70", features = ["AbortController", "AbortSignal"] } wasm-bindgen = "0.2.93" send_wrapper = { version = "0.6.0", features = ["futures"] } diff --git a/examples/hackernews_islands_axum/Cargo.toml b/examples/hackernews_islands_axum/Cargo.toml index f1071d137..d6bd2c692 100644 --- a/examples/hackernews_islands_axum/Cargo.toml +++ b/examples/hackernews_islands_axum/Cargo.toml @@ -29,7 +29,7 @@ tower-http = { version = "0.5.2", features = [ ], optional = true } tokio = { version = "1.39", features = ["full"], optional = true } http = { version = "1.1", optional = true } -web-sys = { version = "0.3.69", features = ["AbortController", "AbortSignal"] } +web-sys = { version = "0.3.70", features = ["AbortController", "AbortSignal"] } wasm-bindgen = "0.2.93" lazy_static = "1.5" rust-embed = { version = "8.5", features = [ diff --git a/examples/hackernews_js_fetch/Cargo.toml b/examples/hackernews_js_fetch/Cargo.toml index c07f9d196..53fb419a0 100644 --- a/examples/hackernews_js_fetch/Cargo.toml +++ b/examples/hackernews_js_fetch/Cargo.toml @@ -26,7 +26,7 @@ reqwest = { version = "0.12.5", features = ["json"] } axum = { version = "0.7.5", default-features = false, optional = true } tower = { version = "0.4.13", optional = true } http = { version = "1.1", optional = true } -web-sys = { version = "0.3.69", features = [ +web-sys = { version = "0.3.70", features = [ "AbortController", "AbortSignal", "Request", diff --git a/examples/parent_child/Cargo.toml b/examples/parent_child/Cargo.toml index 6a051e770..f3137302e 100644 --- a/examples/parent_child/Cargo.toml +++ b/examples/parent_child/Cargo.toml @@ -12,4 +12,4 @@ leptos = { path = "../../leptos", features = ["csr"] } console_log = "1.0" log = "0.4.22" console_error_panic_hook = "0.1.7" -web-sys = "0.3.69" +web-sys = "0.3.70" diff --git a/examples/portal/Cargo.toml b/examples/portal/Cargo.toml index 698d1d642..872b06899 100644 --- a/examples/portal/Cargo.toml +++ b/examples/portal/Cargo.toml @@ -13,4 +13,4 @@ wasm-bindgen = "0.2.93" [dev-dependencies] wasm-bindgen-test = "0.3.42" wasm-bindgen = "0.2.93" -web-sys = "0.3.69" +web-sys = "0.3.70" \ No newline at end of file diff --git a/examples/server_fns_axum/Cargo.toml b/examples/server_fns_axum/Cargo.toml index 47942e61c..c8f691a81 100644 --- a/examples/server_fns_axum/Cargo.toml +++ b/examples/server_fns_axum/Cargo.toml @@ -32,7 +32,7 @@ thiserror = "1.0" wasm-bindgen = "0.2.93" serde_toml = "0.0.1" toml = "0.8.19" -web-sys = { version = "0.3.69", features = ["FileList", "File"] } +web-sys = { version = "0.3.70", features = ["FileList", "File"] } strum = { version = "0.26.3", features = ["strum_macros", "derive"] } notify = { version = "6.1", optional = true } pin-project-lite = "0.2.14" diff --git a/examples/stores/Cargo.toml b/examples/stores/Cargo.toml index f20828689..5d17c320d 100644 --- a/examples/stores/Cargo.toml +++ b/examples/stores/Cargo.toml @@ -17,4 +17,4 @@ console_error_panic_hook = "0.1.7" [dev-dependencies] wasm-bindgen = "0.2.93" wasm-bindgen-test = "0.3.42" -web-sys = "0.3.69" +web-sys = "0.3.70" diff --git a/examples/timer/Cargo.toml b/examples/timer/Cargo.toml index 34421a80b..175fcfa2e 100644 --- a/examples/timer/Cargo.toml +++ b/examples/timer/Cargo.toml @@ -15,7 +15,7 @@ console_error_panic_hook = "0.1.7" wasm-bindgen = "0.2.93" [dependencies.web-sys] -version = "0.3.69" +version = "0.3.70" features = ["Window"] [dev-dependencies] diff --git a/examples/todomvc/Cargo.toml b/examples/todomvc/Cargo.toml index d2f9aaecf..488044070 100644 --- a/examples/todomvc/Cargo.toml +++ b/examples/todomvc/Cargo.toml @@ -13,7 +13,7 @@ console_error_panic_hook = "0.1.7" uuid = { version = "1.10", features = ["v4", "js", "serde"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -web-sys = { version = "0.3.69", features = ["Storage"] } +web-sys = { version = "0.3.70", features = ["Storage"] } [dev-dependencies] wasm-bindgen-test = "0.3.42" diff --git a/leptos/Cargo.toml b/leptos/Cargo.toml index a77189fec..e96a49124 100644 --- a/leptos/Cargo.toml +++ b/leptos/Cargo.toml @@ -40,7 +40,7 @@ server_fn = { workspace = true, features = [ "browser", "url", ] } -web-sys = { version = "0.3.69", features = [ +web-sys = { version = "0.3.70", features = [ "ShadowRoot", "ShadowRootInit", "ShadowRootMode", diff --git a/leptos_dom/Cargo.toml b/leptos_dom/Cargo.toml index d1b29a762..840a964bb 100644 --- a/leptos_dom/Cargo.toml +++ b/leptos_dom/Cargo.toml @@ -21,7 +21,7 @@ wasm-bindgen = "0.2.93" leptos = { path = "../leptos" } [dependencies.web-sys] -version = "0.3.69" +version = "0.3.70" features = ["Location"] [features] diff --git a/meta/Cargo.toml b/meta/Cargo.toml index 03474125a..9b819e33a 100644 --- a/meta/Cargo.toml +++ b/meta/Cargo.toml @@ -19,7 +19,7 @@ wasm-bindgen = "0.2.93" futures = "0.3.30" [dependencies.web-sys] -version = "0.3.69" +version = "0.3.70" features = ["HtmlLinkElement", "HtmlMetaElement", "HtmlTitleElement"] [features] diff --git a/reactive_graph/Cargo.toml b/reactive_graph/Cargo.toml index 61d47669c..ab97e7d5e 100644 --- a/reactive_graph/Cargo.toml +++ b/reactive_graph/Cargo.toml @@ -25,7 +25,7 @@ async-lock = "3.4.0" send_wrapper = { version = "0.6.0", features = ["futures"] } [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] -web-sys = "0.3.69" +web-sys = "0.3.70" [dev-dependencies] tokio = { version = "1.39", features = ["rt-multi-thread", "macros"] } diff --git a/router/Cargo.toml b/router/Cargo.toml index 2c5475e86..204729b15 100644 --- a/router/Cargo.toml +++ b/router/Cargo.toml @@ -30,7 +30,7 @@ percent-encoding = { version = "2.3", optional = true } gloo-net = "0.6.0" [dependencies.web-sys] -version = "0.3.69" +version = "0.3.70" features = [ "Document", "Window", diff --git a/server_fn/Cargo.toml b/server_fn/Cargo.toml index 7022cf723..673f49429 100644 --- a/server_fn/Cargo.toml +++ b/server_fn/Cargo.toml @@ -63,7 +63,7 @@ js-sys = { version = "0.3.69", optional = true } wasm-bindgen = { version = "0.2.93", optional = true } wasm-bindgen-futures = { version = "0.4.42", optional = true } wasm-streams = { version = "0.4.0", optional = true } -web-sys = { version = "0.3.69", optional = true, features = [ +web-sys = { version = "0.3.70", optional = true, features = [ "console", "ReadableStream", "ReadableStreamDefaultReader", diff --git a/server_fn/src/request/browser.rs b/server_fn/src/request/browser.rs index f6120402c..550b898cd 100644 --- a/server_fn/src/request/browser.rs +++ b/server_fn/src/request/browser.rs @@ -237,14 +237,16 @@ fn streaming_request( Ok(data) as Result })) .into_raw(); + let headers = Headers::new()?; headers.append("Content-Type", content_type)?; headers.append("Accept", accepts)?; - let mut init = RequestInit::new(); - init.headers(&headers) - .method("POST") - .signal(abort_signal.as_ref()) - .body(Some(&stream)); + + let init = RequestInit::new(); + init.set_headers(&headers); + init.set_method("POST"); + init.set_signal(abort_signal.as_ref()); + init.set_body(&stream); // Chrome requires setting `duplex: "half"` on streaming requests Reflect::set( diff --git a/tachys/Cargo.toml b/tachys/Cargo.toml index d6dc3c696..efe19d82c 100644 --- a/tachys/Cargo.toml +++ b/tachys/Cargo.toml @@ -25,7 +25,7 @@ pin-project-lite = "0.2.14" wasm-bindgen = "0.2.93" html-escape = "0.2.13" js-sys = "0.3.69" -web-sys = { version = "0.3.69", features = [ +web-sys = { version = "0.3.70", features = [ "Window", "Document", "HtmlElement",