chore(ssr): update askama_escape dependency (#4215)
This commit is contained in:
1 parent
77d10a40e3
commit
3a5b68e56d
5 files changed
+15
-15
No files matched your search
Generated
+2
-2
@@ -635,9 +635,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "askama_escape"
|
||||
version = "0.10.3"
|
||||
version = "0.13.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "619743e34b5ba4e9703bba34deac3427c72507c7159f5fd030aea8cac0cfe341"
|
||||
checksum = "3df27b8d5ddb458c5fb1bbc1ce172d4a38c614a97d550b0ac89003897fb01de4"
|
||||
|
||||
[[package]]
|
||||
name = "asn1-rs"
|
||||
|
||||
+1
-1
@@ -202,7 +202,7 @@ warnings = { version = "0.2.1" }
|
||||
prettier-please = { version = "0.3.0", features = ["verbatim"] }
|
||||
anyhow = "1.0.97"
|
||||
clap = { version = "4.5.31" }
|
||||
askama_escape = "0.10.3"
|
||||
askama_escape = "0.13.0"
|
||||
tracing = "0.1.41"
|
||||
tracing-futures = "0.2.5"
|
||||
tracing-subscriber = { version = "0.3.19", default-features = false }
|
||||
|
||||
@@ -335,13 +335,13 @@ fn to_string_works() {
|
||||
PreRendered("\"".to_string()),
|
||||
PreRendered(">".to_string()),
|
||||
InnerHtmlMarker,
|
||||
PreRendered("Hello world 1 -->".to_string()),
|
||||
PreRendered("Hello world 1 -->".to_string()),
|
||||
Node {
|
||||
index: 0,
|
||||
escape_text: EscapeText::Escape
|
||||
},
|
||||
PreRendered(
|
||||
"<-- Hello world 2<div>nest 1</div><div></div><div>nest 2</div>"
|
||||
"<-- Hello world 2<div>nest 1</div><div></div><div>nest 2</div>"
|
||||
.to_string()
|
||||
),
|
||||
Node {
|
||||
@@ -360,7 +360,7 @@ fn to_string_works() {
|
||||
|
||||
use Segment::*;
|
||||
|
||||
assert_eq!(out, "<div class=\"asdasdasd asdasdasd\" id=\"id-123\">Hello world 1 -->123<-- Hello world 2<div>nest 1</div><div></div><div>nest 2</div></diiiiiiiiv><div>finalize 0</div><div>finalize 1</div><div>finalize 2</div><div>finalize 3</div><div>finalize 4</div></div>");
|
||||
assert_eq!(out, "<div class=\"asdasdasd asdasdasd\" id=\"id-123\">Hello world 1 -->123<-- Hello world 2<div>nest 1</div><div></div><div>nest 2</div></diiiiiiiiv><div>finalize 0</div><div>finalize 1</div><div>finalize 2</div><div>finalize 3</div><div>finalize 4</div></div>");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -11,7 +11,7 @@ fn escape_static_values() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<input disabled=\""><div>\" data-node-hydration=\"0\"/>"
|
||||
"<input disabled=\""><div>\" data-node-hydration=\"0\"/>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ fn escape_dynamic_values() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<input disabled=\""><div>\" data-node-hydration=\"0\"/>"
|
||||
"<input disabled=\""><div>\" data-node-hydration=\"0\"/>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ fn escape_static_style() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div style=\"width:"><div>;\" data-node-hydration=\"0\"></div>"
|
||||
"<div style=\"width:"><div>;\" data-node-hydration=\"0\"></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ fn escape_dynamic_style() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div style=\"width:"><div>;\" data-node-hydration=\"0\"></div>"
|
||||
"<div style=\"width:"><div>;\" data-node-hydration=\"0\"></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ fn escape_static_text() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div data-node-hydration=\"0\">"><div></div>"
|
||||
"<div data-node-hydration=\"0\">"><div></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ fn escape_dynamic_text() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->"><div><!--#--></div>"
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->"><div><!--#--></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ fn escape_static_component_fragment_div() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->body { font-family: "sans-serif"; }<!--#--></div>"
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->body { font-family: "sans-serif"; }<!--#--></div>"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -244,6 +244,6 @@ fn escape_dynamic_component_fragment_div() {
|
||||
|
||||
assert_eq!(
|
||||
dioxus_ssr::pre_render(&dom),
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->body { font-family: "sans-serif"; }<!--#--></div>"
|
||||
"<div data-node-hydration=\"0\"><!--node-id1-->body { font-family: "sans-serif"; }<!--#--></div>"
|
||||
);
|
||||
}
|
||||
@@ -42,7 +42,7 @@ fn dynamic() {
|
||||
dioxus_ssr::render_element(rsx! {
|
||||
div { "Hello world 1 -->" "{dynamic}" "<-- Hello world 2" }
|
||||
}),
|
||||
"<div>Hello world 1 -->123<-- Hello world 2</div>"
|
||||
"<div>Hello world 1 -->123<-- Hello world 2</div>"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user