Skip to content

Commit

Permalink
upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Sep 19, 2024
1 parent 9ba05b4 commit 1df6885
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 54 deletions.
74 changes: 41 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions demo_respo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ readme = "README.md"
memoize = "0.4.2"
respo = { path = "../respo/" }
js-sys = "0.3.69"
wasm-bindgen = "0.2.92"
wasm-bindgen = "0.2.93"
console_error_panic_hook = "0.1.7"
uuid = { version = "1.8.0", features = [ "v4", "js" ] }
serde = { version = "1.0.203", features = ["derive", "rc"] }
serde_json = "1.0.117"
uuid = { version = "1.10.0", features = ["v4", "js"] }
serde = { version = "1.0.210", features = ["derive", "rc"] }
serde_json = "1.0.128"
respo_state_derive = { path = "../respo_state_derive" }

[dependencies.web-sys]
version = "0.3.69"
version = "0.3.70"
features = [
"console",
'Document',
Expand All @@ -43,5 +43,5 @@ features = [
"FocusEvent",
"HtmlLabelElement",
"BeforeUnloadEvent",
"Storage"
"Storage",
]
10 changes: 5 additions & 5 deletions respo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ readme = "README.md"

[dependencies]
js-sys = "0.3.69"
wasm-bindgen = "0.2.92"
lazy_static = "1.4.0"
wasm-bindgen = "0.2.93"
lazy_static = "1.5.0"
cirru_parser = "0.1.31"
# cirru_parser = { path = "/Users/chenyong/repo/cirru/parser.rs" }
rust-hsluv = "0.1.4"
serde = { version = "1.0.203", features = ["derive", "rc"] }
serde_json = "1.0.117"
serde = { version = "1.0.210", features = ["derive", "rc"] }
serde_json = "1.0.128"
# respo_state_derive = { path = "../respo_state_derive" }
respo_state_derive = "0.0.1"

Expand All @@ -28,7 +28,7 @@ respo_state_derive = "0.0.1"
crate-type = ["cdylib", "rlib"]

[dependencies.web-sys]
version = "0.3.69"
version = "0.3.70"
features = [
"console",
'Document',
Expand Down
15 changes: 7 additions & 8 deletions respo/src/ui/dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,13 @@ impl RespoEffect for EffectModalClose {
let listener = Closure::wrap(Box::new({
let el = el.to_owned();
move |event: web_sys::KeyboardEvent| {
let mut init_dict: KeyboardEventInit = KeyboardEventInit::new();
init_dict
.key(&event.key())
.code(&event.code())
.char_code(event.char_code())
.view(event.view().as_ref())
.location(event.location())
.key_code(event.key_code());
let init_dict: KeyboardEventInit = KeyboardEventInit::new();
init_dict.set_key(&event.key());
init_dict.set_code(&event.code());
init_dict.set_char_code(event.char_code());
init_dict.set_view(event.view().as_ref());
init_dict.set_location(event.location());
init_dict.set_key_code(event.key_code());
let new_event = KeyboardEvent::new_with_keyboard_event_init_dict(&event.type_(), &init_dict)
.expect("Failed to create new KeyboardEvent from init dict");

Expand Down
10 changes: 8 additions & 2 deletions respo_state_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ documentation = "https://docs.rs/crate/respo_state_derive/"
readme = "README.md"

[dependencies]
quote = { version = "1.0.36", features = ["proc-macro"] }
syn = { version = "2.0.66", features = ["clone-impls", "derive", "parsing", "printing", "proc-macro"] }
quote = { version = "1.0.37", features = ["proc-macro"] }
syn = { version = "2.0.77", features = [
"clone-impls",
"derive",
"parsing",
"printing",
"proc-macro",
] }

# proc-macro2 = "1.0.85"
# proc-macro2 = { version = "1.0.85", features = ["proc-macro"] }
Expand Down

0 comments on commit 1df6885

Please sign in to comment.