Add 'stable' feature; Relax versions; Update examples

This commit is contained in:
Lukas Potthast 2023-06-21 18:14:43 +02:00
parent 460d448c5f
commit 61a0e1a03f
28 changed files with 37 additions and 36 deletions

View file

@ -13,15 +13,15 @@ repository = "https://github.com/Synphonyte/leptos-use"
homepage = "https://leptos-use.rs"
[dependencies]
leptos = { version = "0.3", features = ["stable"] }
wasm-bindgen = "0.2.86"
js-sys = "0.3.63"
default-struct-builder = "0.2.1"
num = { version = "0.4.0", optional = true }
serde = { version = "1.0.163", optional = true }
serde_json = { version = "1.0.96", optional = true }
paste = "1.0.12"
lazy_static = "1.4.0"
leptos = "0.3"
wasm-bindgen = "0.2"
js-sys = "0.3"
default-struct-builder = "0.2"
num = { version = "0.4", optional = true }
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
paste = "1.0"
lazy_static = "1.4"
[dependencies.web-sys]
version = "0.3.63"
@ -60,6 +60,7 @@ features = [
docs = []
math = ["num"]
storage = ["serde", "serde_json", "web-sys/Storage", "web-sys/StorageEvent"]
stable = ["leptos/stable"]
[package.metadata."docs.rs"]
all-features = true

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs", "math"] }
leptos-use = { path = "../..", features = ["docs", "math", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = { version = "0.3", features = ["HtmlElement", "DomStringMap"] }
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs", "math"] }
leptos-use = { path = "../..", features = ["docs", "math", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../.." }
leptos-use = { path = "../..", features=["stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs", "math"] }
leptos-use = { path = "../..", features = ["docs", "math", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs", "math"] }
leptos-use = { path = "../..", features = ["docs", "math", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs", "math"] }
leptos-use = { path = "../..", features = ["docs", "math", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs", "storage"] }
leptos-use = { path = "../..", features = ["docs", "storage", "stable"] }
web-sys = "0.3"
serde = "1.0.163"

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]

View file

@ -8,7 +8,7 @@ leptos = "0.3"
console_error_panic_hook = "0.1"
console_log = "1"
log = "0.4"
leptos-use = { path = "../..", features = ["docs"] }
leptos-use = { path = "../..", features = ["docs", "stable"] }
web-sys = "0.3"
[dev-dependencies]