Skip to content

Commit db8d3e4

Browse files
authored
Bump to 0.2.59 (#2026)
Wow this is a big release!
1 parent 597af6c commit db8d3e4

File tree

42 files changed

+167
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+167
-87
lines changed

CHANGELOG.md

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

33
--------------------------------------------------------------------------------
44

5+
## 0.2.59
6+
7+
Released 2020-03-03.
8+
9+
### Added
10+
11+
* The `js_sys::Number` type now has a number of JS-number associated constants
12+
on it now.
13+
[#1965](https://github.com/rustwasm/wasm-bindgen/pull/1965)
14+
15+
* The `getTransform` method on `CanvasRenderingContext2D` has been added.
16+
[#1966](https://github.com/rustwasm/wasm-bindgen/pull/1966)
17+
18+
* Initial experimental support was added for electron targets with a new
19+
`--omit-imports` flag.
20+
[#1958](https://github.com/rustwasm/wasm-bindgen/pull/1958)
21+
22+
* Optional struct fields are now reflected idiomatically in TypeScript.
23+
[#1990](https://github.com/rustwasm/wasm-bindgen/pull/1990)
24+
25+
* Typed arrays in `js_sys` onw have `get_index` and `set_index` methods.
26+
[#2001](https://github.com/rustwasm/wasm-bindgen/pull/2001)
27+
28+
* The `web_sys::Blob` type has been updated with `arrayBuffer` and `text`
29+
methods.
30+
[#2008](https://github.com/rustwasm/wasm-bindgen/pull/2008)
31+
32+
* Support for unstable browser interfaces has now been added. By compiling
33+
`web_sys` with `--cfg web_sys_unstable_apis` (typically via `RUSTFLAGS`)
34+
you'll be able to access all bound WebIDL functions, even those like GPU
35+
support on the web, which has now also had its WebIDL updated.
36+
[#1997](https://github.com/rustwasm/wasm-bindgen/pull/1997)
37+
38+
* The compile time for `web_sys` has been massively reduced by pre-generating
39+
Rust code from WebIDL. It is also readable now since it generates
40+
`#[wasm_bindgen]` annotations instead of expanded code.
41+
[#2012](https://github.com/rustwasm/wasm-bindgen/pull/2012)
42+
43+
* A new `skip_tyepscript` attribute is recognized to skip generating TypeScript
44+
bindings for a function or type.
45+
[#2016](https://github.com/rustwasm/wasm-bindgen/pull/2016)
46+
47+
### Changed
48+
49+
* More `uniformMatrix*` bindings now are whitelisted take shared slice instead
50+
of a mutable slice.
51+
[#1957](https://github.com/rustwasm/wasm-bindgen/pull/1957)
52+
53+
* Non-`dependency` keys in `package.json` are now ignored instead of error'd
54+
about.
55+
[#1969](https://github.com/rustwasm/wasm-bindgen/pull/1969)
56+
57+
* WebGPU has been removed from `web_sys` since it was outdated and didn't work
58+
anywhere anyway.
59+
[#1972](https://github.com/rustwasm/wasm-bindgen/pull/1972)
60+
61+
* The JS heap of objects managed by wasm-bindgen has had its definition
62+
tightended up a bit.
63+
[#1987](https://github.com/rustwasm/wasm-bindgen/pull/1987)
64+
65+
* The `self` identifier is no longe used on the `no-modules` target, making it a
66+
bit more flexible in more environments.
67+
[#1995](https://github.com/rustwasm/wasm-bindgen/pull/1995)
68+
69+
* The wasm-loading logic is now more flexible and can take promises as well.
70+
[#1996](https://github.com/rustwasm/wasm-bindgen/pull/1996)
71+
72+
* JS glue for closures is now deduplicated.
73+
[#2002](https://github.com/rustwasm/wasm-bindgen/pull/2002)
74+
75+
* The `web_sys` crate now emits more accurate TypeScript definitions using named
76+
types instead of `any` everywhere.
77+
[#1998](https://github.com/rustwasm/wasm-bindgen/pull/1998)
78+
79+
* The `send_with_u8_array` methods in `web_sys` are whitelisted to take shared
80+
slices instead of mutable slices.
81+
[#2015](https://github.com/rustwasm/wasm-bindgen/pull/2015)
82+
83+
--------------------------------------------------------------------------------
84+
585
## 0.2.58
686

787
Released 2020-01-07.

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"
@@ -36,15 +36,15 @@ strict-macro = ["wasm-bindgen-macro/strict-macro"]
3636
xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"]
3737

3838
[dependencies]
39-
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.58" }
39+
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.59" }
4040
serde = { version = "1.0", optional = true }
4141
serde_json = { version = "1.0", optional = true }
4242
cfg-if = "0.1.9"
4343

4444
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
45-
js-sys = { path = 'crates/js-sys', version = '0.3.35' }
46-
wasm-bindgen-test = { path = 'crates/test', version = '=0.3.8' }
47-
wasm-bindgen-futures = { path = 'crates/futures', version = '=0.4.8' }
45+
js-sys = { path = 'crates/js-sys', version = '0.3.36' }
46+
wasm-bindgen-test = { path = 'crates/test', version = '=0.3.9' }
47+
wasm-bindgen-futures = { path = 'crates/futures', version = '=0.4.9' }
4848
serde_derive = "1.0"
4949
wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' }
5050
wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' }

crates/anyref-xform/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-anyref-xform"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/anyref-xform"

crates/backend/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-backend"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
@@ -22,4 +22,4 @@ log = "0.4"
2222
proc-macro2 = "1.0"
2323
quote = '1.0'
2424
syn = { version = '1.0', features = ['full'] }
25-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.58" }
25+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.59" }

crates/cli-support/Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-cli-support"
3-
version = "0.2.58"
3+
version = "0.2.59"
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"
@@ -19,12 +19,12 @@ rustc-demangle = "0.1.13"
1919
serde_json = "1.0"
2020
tempfile = "3.0"
2121
walrus = "0.14.0"
22-
wasm-bindgen-anyref-xform = { path = '../anyref-xform', version = '=0.2.58' }
23-
wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.58' }
24-
wasm-bindgen-shared = { path = "../shared", version = '=0.2.58' }
25-
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.58' }
26-
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.58' }
27-
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.58' }
22+
wasm-bindgen-anyref-xform = { path = '../anyref-xform', version = '=0.2.59' }
23+
wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.59' }
24+
wasm-bindgen-shared = { path = "../shared", version = '=0.2.59' }
25+
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.59' }
26+
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.59' }
27+
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.59' }
2828
wit-text = "0.1.1"
2929
wit-walrus = "0.1.0"
3030
wit-validator = "0.1.0"

crates/cli/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-cli"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli"
@@ -25,8 +25,8 @@ serde = { version = "1.0", features = ['derive'] }
2525
serde_derive = "1.0"
2626
serde_json = "1.0"
2727
walrus = { version = "0.14.0", features = ['parallel'] }
28-
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.58" }
29-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.58" }
28+
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.59" }
29+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.59" }
3030

3131
[dev-dependencies]
3232
assert_cmd = "0.11"

crates/futures/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ 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.4.8"
10+
version = "0.4.9"
1111
edition = "2018"
1212

1313
[dependencies]
1414
cfg-if = "0.1.9"
15-
js-sys = { path = "../js-sys", version = '0.3.35' }
16-
wasm-bindgen = { path = "../..", version = '0.2.58' }
15+
js-sys = { path = "../js-sys", version = '0.3.36' }
16+
wasm-bindgen = { path = "../..", version = '0.2.59' }
1717

1818
[target.'cfg(target_feature = "atomics")'.dependencies.web-sys]
1919
path = "../web-sys"
@@ -24,5 +24,5 @@ features = [
2424
]
2525

2626
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
27-
wasm-bindgen-test = { path = '../test', version = '0.3.8' }
27+
wasm-bindgen-test = { path = '../test', version = '0.3.9' }
2828
futures-channel-preview = { version = "0.3.0-alpha.18" }

crates/js-sys/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "js-sys"
3-
version = "0.3.35"
3+
version = "0.3.36"
44
authors = ["The wasm-bindgen Developers"]
55
readme = "./README.md"
66
categories = ["wasm"]
@@ -19,8 +19,8 @@ test = false
1919
doctest = false
2020

2121
[dependencies]
22-
wasm-bindgen = { path = "../..", version = "0.2.58" }
22+
wasm-bindgen = { path = "../..", version = "0.2.59" }
2323

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

crates/macro-support/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-macro-support"
3-
version = "0.2.58"
3+
version = "0.2.59"
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"
@@ -20,5 +20,5 @@ strict-macro = []
2020
syn = { version = '1.0', features = ['visit'] }
2121
quote = '1.0'
2222
proc-macro2 = "1.0"
23-
wasm-bindgen-backend = { path = "../backend", version = "=0.2.58" }
24-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.58" }
23+
wasm-bindgen-backend = { path = "../backend", version = "=0.2.59" }
24+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.59" }

crates/macro/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-macro"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro"
@@ -20,10 +20,10 @@ xxx_debug_only_print_generated_code = []
2020
strict-macro = ["wasm-bindgen-macro-support/strict-macro"]
2121

2222
[dependencies]
23-
wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.58" }
23+
wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.59" }
2424
quote = "1.0"
2525

2626
[dev-dependencies]
2727
trybuild = "1.0"
28-
wasm-bindgen = { path = "../..", version = "0.2.58", features = ['strict-macro'] }
29-
wasm-bindgen-futures = { path = "../futures", version = "0.4.8" }
28+
wasm-bindgen = { path = "../..", version = "0.2.59", features = ['strict-macro'] }
29+
wasm-bindgen-futures = { path = "../futures", version = "0.4.9" }

crates/multi-value-xform/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-multi-value-xform"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/multi-value-xform"

crates/shared/Cargo.toml

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

crates/test-macro/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-test-macro"
3-
version = "0.3.8"
3+
version = "0.3.9"
44
authors = ["The wasm-bindgen Developers"]
55
description = "Internal testing macro for wasm-bindgen"
66
license = "MIT/Apache-2.0"

crates/test/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-test"
3-
version = "0.3.8"
3+
version = "0.3.9"
44
authors = ["The wasm-bindgen Developers"]
55
description = "Internal testing crate for wasm-bindgen"
66
license = "MIT/Apache-2.0"
@@ -9,11 +9,11 @@ edition = "2018"
99

1010
[dependencies]
1111
console_error_panic_hook = '0.1'
12-
js-sys = { path = '../js-sys', version = '0.3.35' }
12+
js-sys = { path = '../js-sys', version = '0.3.36' }
1313
scoped-tls = "1.0"
14-
wasm-bindgen = { path = '../..', version = '0.2.58' }
15-
wasm-bindgen-futures = { path = '../futures', version = '0.4.8' }
16-
wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.8' }
14+
wasm-bindgen = { path = '../..', version = '0.2.59' }
15+
wasm-bindgen-futures = { path = '../futures', version = '0.4.9' }
16+
wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.9' }
1717

1818
[lib]
1919
test = false

crates/threads-xform/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-threads-xform"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/threads-xform"
@@ -14,4 +14,4 @@ edition = "2018"
1414
[dependencies]
1515
anyhow = "1.0"
1616
walrus = "0.14.0"
17-
wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.58" }
17+
wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.59" }

crates/wasm-conventions/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-wasm-conventions"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen developers"]
55
license = "MIT/Apache-2.0"
66
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/wasm-conventions"

crates/wasm-interpreter/Cargo.toml

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

crates/web-sys/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "web-sys"
3-
version = "0.3.35"
3+
version = "0.3.36"
44
authors = ["The wasm-bindgen Developers"]
55
readme = "./README.md"
66
homepage = "https://rustwasm.github.io/wasm-bindgen/web-sys/index.html"
@@ -21,12 +21,12 @@ doctest = false
2121
test = false
2222

2323
[dependencies]
24-
wasm-bindgen = { path = "../..", version = "0.2.58" }
25-
js-sys = { path = '../js-sys', version = '0.3.35' }
24+
wasm-bindgen = { path = "../..", version = "0.2.59" }
25+
js-sys = { path = '../js-sys', version = '0.3.36' }
2626

2727
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
28-
wasm-bindgen-test = { path = '../test', version = '0.3.8' }
29-
wasm-bindgen-futures = { path = '../futures', version = '0.4.8' }
28+
wasm-bindgen-test = { path = '../test', version = '0.3.9' }
29+
wasm-bindgen-futures = { path = '../futures', version = '0.4.9' }
3030

3131
# This list is auto-generated by the wasm-bindgen-webidl program
3232
[features]

crates/webidl/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wasm-bindgen-webidl"
3-
version = "0.2.58"
3+
version = "0.2.59"
44
authors = ["The wasm-bindgen Developers"]
55
license = "MIT/Apache-2.0"
66
categories = ["wasm"]
@@ -20,7 +20,7 @@ log = "0.4.1"
2020
proc-macro2 = "1.0"
2121
quote = '1.0'
2222
syn = { version = '1.0', features = ['full'] }
23-
wasm-bindgen-backend = { version = "=0.2.58", path = "../backend" }
23+
wasm-bindgen-backend = { version = "=0.2.59", path = "../backend" }
2424
weedle = "0.11"
2525
lazy_static = "1.0.0"
2626
sourcefile = "0.1"

examples/add/Cargo.toml

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

1010
[dependencies]
11-
wasm-bindgen = "0.2.58"
11+
wasm-bindgen = "0.2.59"

0 commit comments

Comments
 (0)