Skip to content

Commit 2fc9287

Browse files
committed
deps: Update wasm-bindgen and related libraries
1 parent 24c773e commit 2fc9287

File tree

10 files changed

+14
-27
lines changed

10 files changed

+14
-27
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [unreleased]
44
- [BREAKING] Base path changed from `Rc<Vec<String>>` to `Rc<[String]>`. It means also `Orders::clone_base_path` returns a slice.
55
- Prevent link listener from intercepting links with the `download` attribute.
6+
- Added examples `record_screen` and `e2e_encryption`.
67

78
## v0.8.0
89
- [BREAKING] Rename `linear_gradient!` to `linearGradient!` for consistency with the other svg macros (same with `radial_gradient!` and `mesh_gradient!`) (#377).

Cargo.toml

+5-18
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build = "build.rs"
1818
version_check = "0.9.2"
1919

2020
[dev-dependencies]
21-
wasm-bindgen-test = "0.3.18"
21+
wasm-bindgen-test = "0.3.20"
2222

2323
[dependencies]
2424
console_error_panic_hook = "0.1.6"
@@ -27,23 +27,23 @@ enclose = "1.1.8"
2727
gloo-timers = { version = "0.2.1", features = ["futures"] }
2828
gloo-file = { version = "0.1.0", features = ["futures"] }
2929
indexmap = "1.6.0"
30-
js-sys = "0.3.46"
30+
js-sys = "0.3.47"
3131
pulldown-cmark = "0.8.0"
3232
rand = { version = "0.8.0", features = ["small_rng"] }
3333
# https://docs.rs/getrandom/0.2.0/getrandom/#webassembly-support
3434
getrandom = { version = "0.2", features = ["js"] }
3535
serde = { version = "1.0.117", features = ['derive'] }
3636
serde_json = "1.0.59"
37-
wasm-bindgen = { version = "0.2.69", features = ["serde-serialize"] }
38-
wasm-bindgen-futures = "0.4.18"
37+
wasm-bindgen = { version = "0.2.70", features = ["serde-serialize"] }
38+
wasm-bindgen-futures = "0.4.20"
3939
# @TODO: remove once we can use entities without `Debug` in `log!` and `error!` on `stable` Rust.
4040
# https://github.com/Centril/rfcs/blob/rfc/quick-debug-macro/text/0000-quick-debug-macro.md#types-which-are-not-debug
4141
dbg = "1.0.4"
4242
futures = "0.3.6"
4343
uuid = { version = "0.8.1", features = ["v4", "wasm-bindgen"] }
4444

4545
[dependencies.web-sys]
46-
version = "0.3.45"
46+
version = "0.3.47"
4747
features = [
4848
"AbortController",
4949
"AbortSignal",
@@ -156,16 +156,3 @@ exclude = [
156156
"examples/e2e_encryption",
157157
"examples/server_integration",
158158
]
159-
160-
[patch.crates-io]
161-
# wasm-bindgen = { path = "d:/repos/wasm-bindgen" }
162-
# wasm-bindgen-test = { path = "d:/repos/wasm-bindgen/crates/test" }
163-
# wasm-bindgen-futures = { path = "d:/repos/wasm-bindgen/crates/futures" }
164-
# js-sys = { path = "d:/repos/wasm-bindgen/crates/js-sys" }
165-
# web-sys = { path = "d:/repos/wasm-bindgen/crates/web-sys" }
166-
167-
wasm-bindgen = { git = "https://github.com/MartinKavik/wasm-bindgen", branch = "feat/webidl_getDisplayMedia" }
168-
wasm-bindgen-test = { git = "https://github.com/MartinKavik/wasm-bindgen", branch = "feat/webidl_getDisplayMedia" }
169-
wasm-bindgen-futures = { git = "https://github.com/MartinKavik/wasm-bindgen", branch = "feat/webidl_getDisplayMedia" }
170-
js-sys = { git = "https://github.com/MartinKavik/wasm-bindgen", branch = "feat/webidl_getDisplayMedia" }
171-
web-sys = { git = "https://github.com/MartinKavik/wasm-bindgen", branch = "feat/webidl_getDisplayMedia" }

examples/e2e_encryption/client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ crate-type = ["cdylib"]
99
path = "src/lib.rs"
1010

1111
[dev-dependencies]
12-
wasm-bindgen-test = "0.3.19"
12+
wasm-bindgen-test = "0.3.20"
1313

1414
[dependencies]
1515
seed = { path = "../../../" }

examples/record_screen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111
seed = {path = "../../"}
1212

1313
[dependencies.web-sys]
14-
version = "0.3.45"
14+
version = "0.3.47"
1515
features = [
1616
"DisplayMediaStreamConstraints",
1717
"MediaDevices",

examples/record_screen/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
How to record the screen using the [Screen Capture API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API/Using_Screen_Capture).
44

5+
Related article: [How To Take Screenshots In The Browser Using JavaScript](https://hackernoon.com/how-to-take-screenshots-in-the-browser-using-javascript-l92k3xq7)
6+
57
---
68

79
```bash

examples/server_integration/client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ crate-type = ["cdylib"]
99
path = "src/lib.rs"
1010

1111
[dev-dependencies]
12-
wasm-bindgen-test = "0.3.18"
12+
wasm-bindgen-test = "0.3.20"
1313

1414
[dependencies]
1515
seed = { path = "../../../" }

examples/service_worker/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ apply = { version = "0.3.0", optional = true }
3333
seed = { path = "../../", optional = true }
3434

3535
[dependencies.web-sys]
36-
version = "0.3.45"
36+
version = "0.3.47"
3737
features = [
3838
"CacheStorage",
3939
"Notification",

examples/tests/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2018"
88
crate-type = ["cdylib"]
99

1010
[dev-dependencies]
11-
wasm-bindgen-test = "0.3.18"
11+
wasm-bindgen-test = "0.3.20"
1212
regex = "1.4.1"
1313

1414
[dependencies]

examples/user_media/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ seed = {path = "../../"}
1212
wasm-bindgen-futures = "0.4.18"
1313

1414
[dependencies.web-sys]
15-
version = "0.3.45"
15+
version = "0.3.47"
1616
features = [
1717
"MediaDevices",
1818
"MediaStreamConstraints",

examples/websocket/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ path = "src/client.rs"
1212
name = "server"
1313
path = "src/server.rs"
1414

15-
# [dev-dependencies]
16-
# wasm-bindgen-test = "0.3.18"
17-
1815
[dependencies]
1916
# common
2017
serde = { version = "1.0.117", features = ["derive"] }

0 commit comments

Comments
 (0)