Skip to content

Bump to 0.2.59 #2026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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' }
Expand Down
2 changes: 1 addition & 1 deletion crates/anyref-xform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions crates/backend/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
14 changes: 7 additions & 7 deletions crates/cli-support/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
6 changes: 3 additions & 3 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions crates/futures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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" }
8 changes: 4 additions & 4 deletions crates/js-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand All @@ -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' }
6 changes: 3 additions & 3 deletions crates/macro-support/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
8 changes: 4 additions & 4 deletions crates/macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
2 changes: 1 addition & 1 deletion crates/multi-value-xform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/test-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 5 additions & 5 deletions crates/test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
4 changes: 2 additions & 2 deletions crates/threads-xform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
2 changes: 1 addition & 1 deletion crates/wasm-conventions/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm-interpreter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 5 additions & 5 deletions crates/web-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions crates/webidl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/add/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2018"
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2.58"
wasm-bindgen = "0.2.59"
Loading