Bump to 0.2.59 (#2026)

Wow this is a big release!
This commit is contained in:
Alex Crichton 2020-03-03 10:55:51 -06:00 committed by GitHub
parent 597af6c2e6
commit db8d3e4412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 167 additions and 87 deletions

View File

@ -2,6 +2,86 @@
--------------------------------------------------------------------------------
## 0.2.59
Released 2020-03-03.
### Added
* The `js_sys::Number` type now has a number of JS-number associated constants
on it now.
[#1965](https://github.com/rustwasm/wasm-bindgen/pull/1965)
* The `getTransform` method on `CanvasRenderingContext2D` has been added.
[#1966](https://github.com/rustwasm/wasm-bindgen/pull/1966)
* Initial experimental support was added for electron targets with a new
`--omit-imports` flag.
[#1958](https://github.com/rustwasm/wasm-bindgen/pull/1958)
* Optional struct fields are now reflected idiomatically in TypeScript.
[#1990](https://github.com/rustwasm/wasm-bindgen/pull/1990)
* Typed arrays in `js_sys` onw have `get_index` and `set_index` methods.
[#2001](https://github.com/rustwasm/wasm-bindgen/pull/2001)
* The `web_sys::Blob` type has been updated with `arrayBuffer` and `text`
methods.
[#2008](https://github.com/rustwasm/wasm-bindgen/pull/2008)
* Support for unstable browser interfaces has now been added. By compiling
`web_sys` with `--cfg web_sys_unstable_apis` (typically via `RUSTFLAGS`)
you'll be able to access all bound WebIDL functions, even those like GPU
support on the web, which has now also had its WebIDL updated.
[#1997](https://github.com/rustwasm/wasm-bindgen/pull/1997)
* The compile time for `web_sys` has been massively reduced by pre-generating
Rust code from WebIDL. It is also readable now since it generates
`#[wasm_bindgen]` annotations instead of expanded code.
[#2012](https://github.com/rustwasm/wasm-bindgen/pull/2012)
* A new `skip_tyepscript` attribute is recognized to skip generating TypeScript
bindings for a function or type.
[#2016](https://github.com/rustwasm/wasm-bindgen/pull/2016)
### Changed
* More `uniformMatrix*` bindings now are whitelisted take shared slice instead
of a mutable slice.
[#1957](https://github.com/rustwasm/wasm-bindgen/pull/1957)
* Non-`dependency` keys in `package.json` are now ignored instead of error'd
about.
[#1969](https://github.com/rustwasm/wasm-bindgen/pull/1969)
* WebGPU has been removed from `web_sys` since it was outdated and didn't work
anywhere anyway.
[#1972](https://github.com/rustwasm/wasm-bindgen/pull/1972)
* The JS heap of objects managed by wasm-bindgen has had its definition
tightended up a bit.
[#1987](https://github.com/rustwasm/wasm-bindgen/pull/1987)
* The `self` identifier is no longe used on the `no-modules` target, making it a
bit more flexible in more environments.
[#1995](https://github.com/rustwasm/wasm-bindgen/pull/1995)
* The wasm-loading logic is now more flexible and can take promises as well.
[#1996](https://github.com/rustwasm/wasm-bindgen/pull/1996)
* JS glue for closures is now deduplicated.
[#2002](https://github.com/rustwasm/wasm-bindgen/pull/2002)
* The `web_sys` crate now emits more accurate TypeScript definitions using named
types instead of `any` everywhere.
[#1998](https://github.com/rustwasm/wasm-bindgen/pull/1998)
* The `send_with_u8_array` methods in `web_sys` are whitelisted to take shared
slices instead of mutable slices.
[#2015](https://github.com/rustwasm/wasm-bindgen/pull/2015)
--------------------------------------------------------------------------------
## 0.2.58
Released 2020-01-07.

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
@ -36,15 +36,15 @@ strict-macro = ["wasm-bindgen-macro/strict-macro"]
xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_generated_code"]
[dependencies]
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.58" }
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.59" }
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
cfg-if = "0.1.9"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
js-sys = { path = 'crates/js-sys', version = '0.3.35' }
wasm-bindgen-test = { path = 'crates/test', version = '=0.3.8' }
wasm-bindgen-futures = { path = 'crates/futures', version = '=0.4.8' }
js-sys = { path = 'crates/js-sys', version = '0.3.36' }
wasm-bindgen-test = { path = 'crates/test', version = '=0.3.9' }
wasm-bindgen-futures = { path = 'crates/futures', version = '=0.4.9' }
serde_derive = "1.0"
wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' }
wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' }

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-anyref-xform"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/anyref-xform"

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-backend"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
@ -22,4 +22,4 @@ log = "0.4"
proc-macro2 = "1.0"
quote = '1.0'
syn = { version = '1.0', features = ['full'] }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.58" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.59" }

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-cli-support"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support"
@ -19,12 +19,12 @@ rustc-demangle = "0.1.13"
serde_json = "1.0"
tempfile = "3.0"
walrus = "0.14.0"
wasm-bindgen-anyref-xform = { path = '../anyref-xform', version = '=0.2.58' }
wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.58' }
wasm-bindgen-shared = { path = "../shared", version = '=0.2.58' }
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.58' }
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.58' }
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.58' }
wasm-bindgen-anyref-xform = { path = '../anyref-xform', version = '=0.2.59' }
wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.59' }
wasm-bindgen-shared = { path = "../shared", version = '=0.2.59' }
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.59' }
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.59' }
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.59' }
wit-text = "0.1.1"
wit-walrus = "0.1.0"
wit-validator = "0.1.0"

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-cli"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli"
@ -25,8 +25,8 @@ serde = { version = "1.0", features = ['derive'] }
serde_derive = "1.0"
serde_json = "1.0"
walrus = { version = "0.14.0", features = ['parallel'] }
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.58" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.58" }
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.59" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.59" }
[dev-dependencies]
assert_cmd = "0.11"

View File

@ -7,13 +7,13 @@ license = "MIT/Apache-2.0"
name = "wasm-bindgen-futures"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures"
readme = "./README.md"
version = "0.4.8"
version = "0.4.9"
edition = "2018"
[dependencies]
cfg-if = "0.1.9"
js-sys = { path = "../js-sys", version = '0.3.35' }
wasm-bindgen = { path = "../..", version = '0.2.58' }
js-sys = { path = "../js-sys", version = '0.3.36' }
wasm-bindgen = { path = "../..", version = '0.2.59' }
[target.'cfg(target_feature = "atomics")'.dependencies.web-sys]
path = "../web-sys"
@ -24,5 +24,5 @@ features = [
]
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = { path = '../test', version = '0.3.8' }
wasm-bindgen-test = { path = '../test', version = '0.3.9' }
futures-channel-preview = { version = "0.3.0-alpha.18" }

View File

@ -1,6 +1,6 @@
[package]
name = "js-sys"
version = "0.3.35"
version = "0.3.36"
authors = ["The wasm-bindgen Developers"]
readme = "./README.md"
categories = ["wasm"]
@ -19,8 +19,8 @@ test = false
doctest = false
[dependencies]
wasm-bindgen = { path = "../..", version = "0.2.58" }
wasm-bindgen = { path = "../..", version = "0.2.59" }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = { path = '../test', version = '=0.3.8' }
wasm-bindgen-futures = { path = '../futures', version = '0.4.8' }
wasm-bindgen-test = { path = '../test', version = '=0.3.9' }
wasm-bindgen-futures = { path = '../futures', version = '0.4.9' }

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-macro-support"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support"
@ -20,5 +20,5 @@ strict-macro = []
syn = { version = '1.0', features = ['visit'] }
quote = '1.0'
proc-macro2 = "1.0"
wasm-bindgen-backend = { path = "../backend", version = "=0.2.58" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.58" }
wasm-bindgen-backend = { path = "../backend", version = "=0.2.59" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.59" }

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-macro"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro"
@ -20,10 +20,10 @@ xxx_debug_only_print_generated_code = []
strict-macro = ["wasm-bindgen-macro-support/strict-macro"]
[dependencies]
wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.58" }
wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.59" }
quote = "1.0"
[dev-dependencies]
trybuild = "1.0"
wasm-bindgen = { path = "../..", version = "0.2.58", features = ['strict-macro'] }
wasm-bindgen-futures = { path = "../futures", version = "0.4.8" }
wasm-bindgen = { path = "../..", version = "0.2.59", features = ['strict-macro'] }
wasm-bindgen-futures = { path = "../futures", version = "0.4.9" }

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-multi-value-xform"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/multi-value-xform"

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-shared"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared"

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-test-macro"
version = "0.3.8"
version = "0.3.9"
authors = ["The wasm-bindgen Developers"]
description = "Internal testing macro for wasm-bindgen"
license = "MIT/Apache-2.0"

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-test"
version = "0.3.8"
version = "0.3.9"
authors = ["The wasm-bindgen Developers"]
description = "Internal testing crate for wasm-bindgen"
license = "MIT/Apache-2.0"
@ -9,11 +9,11 @@ edition = "2018"
[dependencies]
console_error_panic_hook = '0.1'
js-sys = { path = '../js-sys', version = '0.3.35' }
js-sys = { path = '../js-sys', version = '0.3.36' }
scoped-tls = "1.0"
wasm-bindgen = { path = '../..', version = '0.2.58' }
wasm-bindgen-futures = { path = '../futures', version = '0.4.8' }
wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.8' }
wasm-bindgen = { path = '../..', version = '0.2.59' }
wasm-bindgen-futures = { path = '../futures', version = '0.4.9' }
wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.9' }
[lib]
test = false

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-threads-xform"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/threads-xform"
@ -14,4 +14,4 @@ edition = "2018"
[dependencies]
anyhow = "1.0"
walrus = "0.14.0"
wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.58" }
wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.59" }

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-wasm-conventions"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/wasm-conventions"

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-wasm-interpreter"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/wasm-interpreter"

View File

@ -1,6 +1,6 @@
[package]
name = "web-sys"
version = "0.3.35"
version = "0.3.36"
authors = ["The wasm-bindgen Developers"]
readme = "./README.md"
homepage = "https://rustwasm.github.io/wasm-bindgen/web-sys/index.html"
@ -21,12 +21,12 @@ doctest = false
test = false
[dependencies]
wasm-bindgen = { path = "../..", version = "0.2.58" }
js-sys = { path = '../js-sys', version = '0.3.35' }
wasm-bindgen = { path = "../..", version = "0.2.59" }
js-sys = { path = '../js-sys', version = '0.3.36' }
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = { path = '../test', version = '0.3.8' }
wasm-bindgen-futures = { path = '../futures', version = '0.4.8' }
wasm-bindgen-test = { path = '../test', version = '0.3.9' }
wasm-bindgen-futures = { path = '../futures', version = '0.4.9' }
# This list is auto-generated by the wasm-bindgen-webidl program
[features]

View File

@ -1,6 +1,6 @@
[package]
name = "wasm-bindgen-webidl"
version = "0.2.58"
version = "0.2.59"
authors = ["The wasm-bindgen Developers"]
license = "MIT/Apache-2.0"
categories = ["wasm"]
@ -20,7 +20,7 @@ log = "0.4.1"
proc-macro2 = "1.0"
quote = '1.0'
syn = { version = '1.0', features = ['full'] }
wasm-bindgen-backend = { version = "=0.2.58", path = "../backend" }
wasm-bindgen-backend = { version = "=0.2.59", path = "../backend" }
weedle = "0.11"
lazy_static = "1.0.0"
sourcefile = "0.1"

View File

@ -8,4 +8,4 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"

View File

@ -8,8 +8,8 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
js-sys = "0.3.35"
wasm-bindgen = "0.2.58"
js-sys = "0.3.36"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.4"

View File

@ -8,4 +8,4 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"

View File

@ -8,8 +8,8 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
js-sys = "0.3.35"
wasm-bindgen = "0.2.59"
js-sys = "0.3.36"
[dependencies.web-sys]
version = "0.3.4"

View File

@ -8,5 +8,5 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
web-sys = { version = "0.3.35", features = ['console'] }
wasm-bindgen = "0.2.59"
web-sys = { version = "0.3.36", features = ['console'] }

View File

@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.4"

View File

@ -8,4 +8,4 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"

View File

@ -8,9 +8,9 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = { version = "0.2.58", features = ["serde-serialize"] }
js-sys = "0.3.35"
wasm-bindgen-futures = "0.4.8"
wasm-bindgen = { version = "0.2.59", features = ["serde-serialize"] }
js-sys = "0.3.36"
wasm-bindgen-futures = "0.4.9"
serde = { version = "1.0.80", features = ["derive"] }
serde_derive = "^1.0.59"

View File

@ -8,4 +8,4 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"

View File

@ -8,4 +8,4 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"

View File

@ -8,4 +8,4 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"

View File

@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.4"

View File

@ -8,8 +8,8 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
js-sys = "0.3.35"
wasm-bindgen = "0.2.58"
js-sys = "0.3.36"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.4"

View File

@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"
humantime = "1"
[dependencies.web-sys]

View File

@ -9,13 +9,13 @@ crate-type = ["cdylib"]
[dependencies]
console_error_panic_hook = "0.1"
js-sys = "0.3.35"
js-sys = "0.3.36"
rayon = "1.1.0"
rayon-core = "1.5.0"
raytracer = { git = 'https://github.com/alexcrichton/raytracer', branch = 'update-deps' }
futures-channel-preview = "0.3.0-alpha.18"
wasm-bindgen = { version = "0.2.58", features = ['serde-serialize'] }
wasm-bindgen-futures = "0.4.8"
wasm-bindgen = { version = "0.2.59", features = ['serde-serialize'] }
wasm-bindgen-futures = "0.4.9"
[dependencies.web-sys]
version = "0.3.23"

View File

@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.4"

View File

@ -11,8 +11,8 @@ crate-type = ["cdylib"]
askama = "0.7.2"
[dependencies]
js-sys = "0.3.35"
wasm-bindgen = "0.2.58"
js-sys = "0.3.36"
wasm-bindgen = "0.2.59"
askama = "0.7.2"
console_error_panic_hook = "0.1.5"

View File

@ -8,6 +8,6 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
js-sys = "0.3.35"
wasm-bindgen-futures = "0.4.8"
wasm-bindgen = "0.2.59"
js-sys = "0.3.36"
wasm-bindgen-futures = "0.4.9"

View File

@ -8,4 +8,4 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"

View File

@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.4"

View File

@ -8,8 +8,8 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
js-sys = "0.3.35"
wasm-bindgen = "0.2.58"
js-sys = "0.3.36"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.4"

View File

@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.22"

View File

@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"
[dependencies.web-sys]
version = "0.3.4"