mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-25 06:02:13 +00:00
Bump to version 0.2.16
This commit is contained in:
parent
ea27a172d9
commit
8974a57fb9
77
CHANGELOG.md
77
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<u32>` 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.
|
||||
|
@ -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' }
|
||||
|
@ -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" }
|
||||
|
@ -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"
|
||||
|
@ -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]
|
||||
|
@ -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' }
|
||||
|
@ -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.
|
||||
|
@ -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' }
|
||||
|
@ -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" }
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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' }
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user