Skip to content

Commit 00258dd

Browse files
committed
feat: made hydration the default
This also involved requiring a Sycamore version greater than v0.7.1 (which fixed the variables interpolation duplication bug).
1 parent 4c3cc6c commit 00258dd

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

examples/basic/.perseus/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ edition = "2018"
1313
app = { package = "perseus-example-basic", path = "../" }
1414

1515
perseus = { path = "../../../packages/perseus" }
16-
sycamore = { version = "0.7", features = ["ssr"] }
17-
sycamore-router = "0.7"
16+
sycamore = { version = "^0.7.1", features = ["ssr"] }
17+
sycamore-router = "^0.7.1"
1818
web-sys = { version = "0.3", features = ["Event", "Headers", "Request", "RequestInit", "RequestMode", "Response", "ReadableStream", "Window"] }
1919
wasm-bindgen = "0.2"
2020
wasm-bindgen-futures = "0.4"

packages/perseus-actix-web/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ serde_json = "1"
2323
thiserror = "1"
2424
fmterr = "0.1"
2525
futures = "0.3"
26-
sycamore = { version = "0.7", features = ["ssr"] }
26+
sycamore = { version = "^0.7.1", features = ["ssr"] }

packages/perseus-warp/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ serde_json = "1"
2323
thiserror = "1"
2424
fmterr = "0.1"
2525
futures = "0.3"
26-
sycamore = { version = "0.7", features = ["ssr"] }
26+
sycamore = { version = "^0.7.1", features = ["ssr"] }

packages/perseus/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ categories = ["wasm", "web-programming", "development-tools", "asynchronous", "g
1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

1616
[dependencies]
17-
sycamore = { version = "0.7", features = ["ssr"] }
18-
sycamore-router = "0.7"
17+
sycamore = { version = "^0.7.1", features = ["ssr"] }
18+
sycamore-router = "^0.7.1"
1919
perseus-macro = { path = "../perseus-macro", version = "0.3.0-beta.23" }
2020
# TODO review feature flags here
2121
web-sys = { version = "0.3", features = ["Headers", "Navigator", "NodeList", "Request", "RequestInit", "RequestMode", "Response", "ReadableStream", "Window"] }
@@ -36,7 +36,7 @@ unic-langid = { version = "0.9", optional = true }
3636
intl-memoizer = { version = "0.5", optional = true }
3737

3838
[features]
39-
default = []
39+
default = [ "hydrate" ]
4040
translator-fluent = ["fluent-bundle", "unic-langid", "intl-memoizer"]
4141
# This feature makes tinker-only plugins be registered (this flag is enabled internally in the engine)
4242
tinker-plugins = []

0 commit comments

Comments
 (0)