From 8974a57fb9eaaf6612cfa85b297645ee3773faff Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Mon, 13 Aug 2018 14:25:05 -0700 Subject: [PATCH] Bump to version 0.2.16 --- CHANGELOG.md | 77 +++++++++++++++++++++++++++++++++ Cargo.toml | 6 +-- crates/backend/Cargo.toml | 4 +- crates/cli-support/Cargo.toml | 4 +- crates/cli/Cargo.toml | 6 +-- crates/futures/Cargo.toml | 6 +-- crates/js-sys/CHANGELOG.md | 63 +++++++++++++++++++++++++++ crates/js-sys/Cargo.toml | 4 +- crates/macro-support/Cargo.toml | 6 +-- crates/macro/Cargo.toml | 4 +- crates/shared/Cargo.toml | 2 +- crates/test-macro/Cargo.toml | 2 +- crates/test/Cargo.toml | 8 ++-- crates/web-sys/Cargo.toml | 8 ++-- crates/webidl/Cargo.toml | 4 +- 15 files changed, 172 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7341a0c1..decff7cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,83 @@ -------------------------------------------------------------------------------- +## Unreleased + +Released YYYY-MM-DD. + +### Added + +* TODO (or remove section if none) + +### Changed + +* TODO (or remove section if none) + +### Deprecated + +* TODO (or remove section if none) + +### Removed + +* TODO (or remove section if none) + +### Fixed + +* TODO (or remove section if none) + +### Security + +* TODO (or remove section if none) + +-------------------------------------------------------------------------------- + +## 0.2.16 + +Released 2018-08-13. + +### Added + +* Added the `wasm_bindgen::JsCast` trait, as described in [RFC #2][rfc-2]. +* Added [the `#[wasm_bindgen(extends = ...)]` attribute][extends-attr] to + describe inheritance relationships, as described in [RFC #2][rfc-2]. +* Added support for receiving `Option<&T>` parameters from JavaScript in + exported Rust functions and methods. +* Added support for receiving `Option` and other option-wrapped scalars. +* Added reference documentation to the guide for every `#[wasm_bindgen]` + attribute and how it affects the generated bindings. +* Published the `wasm-bindgen-futures` crate for converting between JS + `Promise`s and Rust `Future`s. + +### Changed + +* Overhauled the guide's documentation on passing JS closures to Rust, and Rust + closures to JS. +* Overhauled the guide's documentation on using serde to serialize complex data + to `JsValue` and deserialize `JsValue`s back into complex data. +* Static methods are now always bound to their JS class, as is required for + `Promise`'s static methods. + +### Removed + +* Removed internal usage of `syn`'s `visit-mut` cargo feature, which should + result in faster build times. + +### Fixed + +* Various usage errors for the `#[wasm_bindgen]` proc-macro are now properly + reported with source span information, rather than `panic!()`s inside the + proc-macro. +* Fixed a bug where taking a struct by reference and returning a slice resulted + in lexical variable redeclaration errors in the generated JS glue. [#662][] +* The `#[wasm_bindgen(js_class = "....")]` attribute for binding methods to + renamed imported JS classes now properly works with constructors. + +[rfc-2]: https://rustwasm.github.io/rfcs/002-wasm-bindgen-inheritance-casting.html +[extends-attr]: https://rustwasm.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html +[#662]: https://github.com/rustwasm/wasm-bindgen/pull/662 + +-------------------------------------------------------------------------------- + ## 0.2.15 Released 2018-07-26. diff --git a/Cargo.toml b/Cargo.toml index af895770..46f7d514 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" readme = "README.md" @@ -27,12 +27,12 @@ serde-serialize = ["serde", "serde_json", "std"] 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.15" } +wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.16" } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { path = 'crates/test', version = '=0.2.15' } +wasm-bindgen-test = { path = 'crates/test', version = '=0.2.16' } serde_derive = "1.0" wasm-bindgen-test-crate-a = { path = 'tests/crates/a' } wasm-bindgen-test-crate-b = { path = 'tests/crates/b' } diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index 13682cb0..fd17acda 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-backend" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend" @@ -21,4 +21,4 @@ proc-macro2 = "0.4.8" quote = '0.6' serde_json = "1.0" syn = { version = '0.14', features = ['full', 'visit'] } -wasm-bindgen-shared = { path = "../shared", version = "=0.2.15" } +wasm-bindgen-shared = { path = "../shared", version = "=0.2.16" } diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml index 2c16e608..fc4a1659 100644 --- a/crates/cli-support/Cargo.toml +++ b/crates/cli-support/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-cli-support" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support" @@ -17,6 +17,6 @@ parity-wasm = "0.31" serde = "1.0" serde_json = "1.0" tempfile = "3.0" -wasm-bindgen-shared = { path = "../shared", version = '=0.2.15' } +wasm-bindgen-shared = { path = "../shared", version = '=0.2.16' } wasm-gc-api = "0.1.9" wasmi = "0.3" diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 3e953e79..2bb351ea 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-cli" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli" @@ -23,8 +23,8 @@ rouille = { version = "2.1.0", default-features = false } serde = "1.0" serde_derive = "1.0" serde_json = "1.0" -wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.15" } -wasm-bindgen-shared = { path = "../shared", version = "=0.2.15" } +wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.16" } +wasm-bindgen-shared = { path = "../shared", version = "=0.2.16" } openssl = { version = '0.10.11', optional = true } [features] diff --git a/crates/futures/Cargo.toml b/crates/futures/Cargo.toml index 1c521f1d..49288693 100644 --- a/crates/futures/Cargo.toml +++ b/crates/futures/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "wasm-bindgen-futures" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] [dependencies] futures = "0.1.20" js-sys = { path = "../js-sys", version = '0.2.0' } -wasm-bindgen = { path = "../..", version = '0.2.15' } +wasm-bindgen = { path = "../..", version = '0.2.16' } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { path = '../test', version = '0.2.15' } +wasm-bindgen-test = { path = '../test', version = '0.2.16' } diff --git a/crates/js-sys/CHANGELOG.md b/crates/js-sys/CHANGELOG.md index 16bdd812..f822008a 100644 --- a/crates/js-sys/CHANGELOG.md +++ b/crates/js-sys/CHANGELOG.md @@ -2,6 +2,69 @@ -------------------------------------------------------------------------------- +## Unreleased + +Released YYYY-MM-DD. + +### Added + +* TODO (or remove section if none) + +### Changed + +* TODO (or remove section if none) + +### Deprecated + +* TODO (or remove section if none) + +### Removed + +* TODO (or remove section if none) + +### Fixed + +* TODO (or remove section if none) + +### Security + +* TODO (or remove section if none) + +-------------------------------------------------------------------------------- + +## 0.2.1 + +Released 2018-08-13. + +### Added + +* Added bindings to `Array.prototype.splice`. +* Added bindings to `RegExp`. +* Added bindings to `ArrayBuffer.prototype.byteLength`. +* Started adding the `#[wasm_bindgen(extends = ...)]` attribute to various JS + types. +* Added bindings to `EvalError`. +* Added bindings to `Promise`. See the new `wasm-bindgen-futures` crate for + integrating JS `Promise`s into Rust `Future`s. +* Added bindings to `JSON.{parse,stringify}`. +* Added bindings to `Array.of`. +* Added bindings to `Intl.Collator`. +* Added bindings to `Object.assign`. +* Added bindings to `Object.create`. +* Added bindings to `RangeError`. +* Added bindings to `ReferenceError`. +* Added bindings to `Symbol.unscopables`. +* Added bindings to `URIError`. +* Added bindings to `SyntaxError`. +* Added bindings to `TypeError`. + +### Changed + +* The `Intl` namespace was previously a bound object with static methods hanging + off of it. It is now a module with free functions, and nested types. + +-------------------------------------------------------------------------------- + ## 0.2.0 Released 2018-07-26. diff --git a/crates/js-sys/Cargo.toml b/crates/js-sys/Cargo.toml index 974363bf..cc3a4caf 100644 --- a/crates/js-sys/Cargo.toml +++ b/crates/js-sys/Cargo.toml @@ -18,7 +18,7 @@ test = false doctest = false [dependencies] -wasm-bindgen = { path = "../..", version = "0.2.15" } +wasm-bindgen = { path = "../..", version = "0.2.16" } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { path = '../test', version = '=0.2.15' } +wasm-bindgen-test = { path = '../test', version = '=0.2.16' } diff --git a/crates/macro-support/Cargo.toml b/crates/macro-support/Cargo.toml index 2195c032..c1d4c6eb 100644 --- a/crates/macro-support/Cargo.toml +++ b/crates/macro-support/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-macro-support" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support" @@ -18,5 +18,5 @@ extra-traits = ["syn/extra-traits"] syn = { version = '0.14', features = ['full'] } quote = '0.6' proc-macro2 = "0.4.9" -wasm-bindgen-backend = { path = "../backend", version = "=0.2.15" } -wasm-bindgen-shared = { path = "../shared", version = "=0.2.15" } +wasm-bindgen-backend = { path = "../backend", version = "=0.2.16" } +wasm-bindgen-shared = { path = "../shared", version = "=0.2.16" } diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml index 9851e91e..091ac82c 100644 --- a/crates/macro/Cargo.toml +++ b/crates/macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-macro" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro" @@ -18,5 +18,5 @@ spans = ["wasm-bindgen-macro-support/spans"] xxx_debug_only_print_generated_code = [] [dependencies] -wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.15" } +wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.16" } quote = "0.6" diff --git a/crates/shared/Cargo.toml b/crates/shared/Cargo.toml index 6ad16d2f..a66d03dd 100644 --- a/crates/shared/Cargo.toml +++ b/crates/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-shared" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared" diff --git a/crates/test-macro/Cargo.toml b/crates/test-macro/Cargo.toml index 1f636c4c..ae45f7f3 100644 --- a/crates/test-macro/Cargo.toml +++ b/crates/test-macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-test-macro" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] description = "Internal testing macro for wasm-bindgen" license = "MIT/Apache-2.0" diff --git a/crates/test/Cargo.toml b/crates/test/Cargo.toml index 7d934151..acf50a31 100644 --- a/crates/test/Cargo.toml +++ b/crates/test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-test" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] description = "Internal testing crate for wasm-bindgen" license = "MIT/Apache-2.0" @@ -11,9 +11,9 @@ console_error_panic_hook = '0.1' futures = "0.1" js-sys = { path = '../js-sys', version = '0.2.0' } scoped-tls = "0.1" -wasm-bindgen = { path = '../..', version = '0.2.15' } -wasm-bindgen-futures = { path = '../futures', version = '0.2.15' } -wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.2.15' } +wasm-bindgen = { path = '../..', version = '0.2.16' } +wasm-bindgen-futures = { path = '../futures', version = '0.2.16' } +wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.2.16' } [lib] test = false diff --git a/crates/web-sys/Cargo.toml b/crates/web-sys/Cargo.toml index d07f5830..75b35769 100644 --- a/crates/web-sys/Cargo.toml +++ b/crates/web-sys/Cargo.toml @@ -11,15 +11,15 @@ test = false [build-dependencies] env_logger = "0.5.10" failure = "0.1.2" -wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.15" } +wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.16" } sourcefile = "0.1" [dependencies] -wasm-bindgen = { path = "../..", version = "0.2.15" } +wasm-bindgen = { path = "../..", version = "0.2.16" } js-sys = { path = '../js-sys', version = '0.2.0' } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] futures = "0.1" js-sys = { path = '../js-sys', version = '0.2.0' } -wasm-bindgen-test = { path = '../test', version = '0.2.15' } -wasm-bindgen-futures = { path = '../futures', version = '0.2.15' } +wasm-bindgen-test = { path = '../test', version = '0.2.16' } +wasm-bindgen-futures = { path = '../futures', version = '0.2.16' } diff --git a/crates/webidl/Cargo.toml b/crates/webidl/Cargo.toml index 471b4c73..8bf0e3c2 100644 --- a/crates/webidl/Cargo.toml +++ b/crates/webidl/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasm-bindgen-webidl" -version = "0.2.15" +version = "0.2.16" authors = ["The wasm-bindgen Developers"] license = "MIT/Apache-2.0" categories = ["wasm"] @@ -19,5 +19,5 @@ log = "0.4.1" proc-macro2 = "0.4.8" quote = '0.6' syn = { version = '0.14', features = ['full'] } -wasm-bindgen-backend = { version = "=0.2.15", path = "../backend" } +wasm-bindgen-backend = { version = "=0.2.16", path = "../backend" } weedle = "0.6"