Skip to content

Commit 50d2422

Browse files
authored
Merge pull request #1188 from fitzgen/bump-to-0.2.32
Bump to 0.2.32
2 parents 0d3f9eb + 31fdede commit 50d2422

File tree

39 files changed

+116
-78
lines changed

39 files changed

+116
-78
lines changed

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,44 @@ Released YYYY-MM-DD.
3232

3333
--------------------------------------------------------------------------------
3434

35+
## 0.2.32
36+
37+
Released 2019-01-16.
38+
39+
### Added
40+
41+
* Added support for Web IDL sequences. This enabled bindings generation for a
42+
couple more Web APIs. We generate functions for Web APIs that take sequences
43+
to accept any iterable, and for Web APIs that return sequences, a
44+
`js_sys::Array` is returned. See
45+
[#1152](https://github.com/rustwasm/wasm-bindgen/pull/1152) and
46+
[#1038](https://github.com/rustwasm/wasm-bindgen/issues/1038).
47+
* The `wasm-bindgen-test` test runner will capture `console.debug`,
48+
`console.info`, and `console.warn` log messages and print them to `stdout`
49+
now. It already supported `console.log` and `console.error` and continues to
50+
support them. See
51+
[#1183](https://github.com/rustwasm/wasm-bindgen/issues/1183) and
52+
[#1184](https://github.com/rustwasm/wasm-bindgen/pull/1184).
53+
* Added additional `--debug`-only assertions in the emitted JS glue for cases
54+
where an imported JS function that is not annotated with
55+
`#[wasm_bindgen(catch)]` throws an exception. This should help catch some bugs
56+
earlier! See [#1179](https://github.com/rustwasm/wasm-bindgen/pull/1179).
57+
58+
### Fixed
59+
60+
* Fixed a bug where `#[wasm_bindgen_test]` tests would fail in non-headless Web
61+
browsers if they used `console.log`. See
62+
[#1167](https://github.com/rustwasm/wasm-bindgen/pull/1167).
63+
* Fixed a bug where returning closures from exported functions sometimes
64+
resulted in a faulty error. See
65+
[#1174](https://github.com/rustwasm/wasm-bindgen/issues/1174) and
66+
[#1175](https://github.com/rustwasm/wasm-bindgen/pull/1175).
67+
* Sometimes our generated TypeScript interface files had syntax errors in them
68+
(missing semicolons). This has been fixed. See
69+
[#1181](https://github.com/rustwasm/wasm-bindgen/pull/1181).
70+
71+
--------------------------------------------------------------------------------
72+
3573
## 0.2.31
3674

3775
Released 2019-01-09.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen"
3-
version = "0.2.31"
3+
version = "0.2.32"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
# Because only a single `wasm_bindgen` version can be used in a dependency
@@ -39,13 +39,13 @@ strict-macro = ["wasm-bindgen-macro/strict-macro"]
3939
xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"]
4040

4141
[dependencies]
42-
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.31" }
42+
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.32" }
4343
serde = { version = "1.0", optional = true }
4444
serde_json = { version = "1.0", optional = true }
4545

4646
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
47-
js-sys = { path = 'crates/js-sys', version = '0.3.8' }
48-
wasm-bindgen-test = { path = 'crates/test', version = '=0.2.31' }
47+
js-sys = { path = 'crates/js-sys', version = '0.3.9' }
48+
wasm-bindgen-test = { path = 'crates/test', version = '=0.2.32' }
4949
serde_derive = "1.0"
5050
wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' }
5151
wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' }

crates/backend/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-backend"
3-
version = "0.2.31"
3+
version = "0.2.32"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
@@ -20,4 +20,4 @@ log = "0.4"
2020
proc-macro2 = "0.4.8"
2121
quote = '0.6'
2222
syn = { version = '0.15', features = ['full'] }
23-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.31" }
23+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.32" }

crates/cli-support/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-cli-support"
3-
version = "0.2.31"
3+
version = "0.2.32"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support"
@@ -15,7 +15,7 @@ base64 = "0.9"
1515
failure = "0.1.2"
1616
parity-wasm = "0.35"
1717
tempfile = "3.0"
18-
wasm-bindgen-gc = { path = '../gc', version = '=0.2.31' }
19-
wasm-bindgen-shared = { path = "../shared", version = '=0.2.31' }
20-
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.31' }
21-
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.31' }
18+
wasm-bindgen-gc = { path = '../gc', version = '=0.2.32' }
19+
wasm-bindgen-shared = { path = "../shared", version = '=0.2.32' }
20+
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.32' }
21+
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.32' }

crates/cli/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-cli"
3-
version = "0.2.31"
3+
version = "0.2.32"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli"
@@ -23,8 +23,8 @@ rouille = { version = "3.0.0", default-features = false }
2323
serde = "1.0"
2424
serde_derive = "1.0"
2525
serde_json = "1.0"
26-
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.31" }
27-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.31" }
26+
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.32" }
27+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.32" }
2828
openssl = { version = '0.10.11', optional = true }
2929

3030
[features]

crates/futures/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ license = "MIT/Apache-2.0"
77
name = "wasm-bindgen-futures"
88
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures"
99
readme = "./README.md"
10-
version = "0.3.8"
10+
version = "0.3.9"
1111

1212
[dependencies]
1313
futures = "0.1.20"
14-
js-sys = { path = "../js-sys", version = '0.3.8' }
15-
wasm-bindgen = { path = "../..", version = '0.2.31' }
14+
js-sys = { path = "../js-sys", version = '0.3.9' }
15+
wasm-bindgen = { path = "../..", version = '0.2.32' }
1616

1717
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
18-
wasm-bindgen-test = { path = '../test', version = '0.2.31' }
18+
wasm-bindgen-test = { path = '../test', version = '0.2.32' }

crates/gc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-gc"
3-
version = "0.2.31"
3+
version = "0.2.32"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/gc"

crates/js-sys/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "js-sys"
3-
version = "0.3.8"
3+
version = "0.3.9"
44
authors = ["The wasm-bindgen Developers"]
55
readme = "./README.md"
66
categories = ["wasm"]
@@ -18,9 +18,9 @@ test = false
1818
doctest = false
1919

2020
[dependencies]
21-
wasm-bindgen = { path = "../..", version = "0.2.31" }
21+
wasm-bindgen = { path = "../..", version = "0.2.32" }
2222

2323
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
2424
futures = "0.1.20"
25-
wasm-bindgen-test = { path = '../test', version = '=0.2.31' }
26-
wasm-bindgen-futures = { path = '../futures', version = '=0.3.8' }
25+
wasm-bindgen-test = { path = '../test', version = '=0.2.32' }
26+
wasm-bindgen-futures = { path = '../futures', version = '=0.3.9' }

crates/macro-support/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-macro-support"
3-
version = "0.2.31"
3+
version = "0.2.32"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support"
@@ -19,5 +19,5 @@ strict-macro = []
1919
syn = { version = '0.15.0', features = ['visit'] }
2020
quote = '0.6'
2121
proc-macro2 = "0.4.9"
22-
wasm-bindgen-backend = { path = "../backend", version = "=0.2.31" }
23-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.31" }
22+
wasm-bindgen-backend = { path = "../backend", version = "=0.2.32" }
23+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.32" }

crates/macro/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-macro"
3-
version = "0.2.31"
3+
version = "0.2.32"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro"
@@ -19,5 +19,5 @@ xxx_debug_only_print_generated_code = []
1919
strict-macro = ["wasm-bindgen-macro-support/strict-macro"]
2020

2121
[dependencies]
22-
wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.31" }
22+
wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.32" }
2323
quote = "0.6"

0 commit comments

Comments
 (0)