Wasmbind

Latest version: v0.4

Safety actively analyzes 626691 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 10

0.2.37

Released 2019-02-15.

Added

* The `HtmlMediaElement` type now exposes a `src_object` getter.
[1248](https://github.com/rustwasm/wasm-bindgen/pull/1248).

* The `js_sys::Reflect` type now has specializes getter/setters for `u32` and
`f64` indices.
[1225](https://github.com/rustwasm/wasm-bindgen/pull/1225).

* A `--remove-producers-section` flag has been added to the CLI tool to, well,
remove the `producers` section from the final wasm file.
[1256](https://github.com/rustwasm/wasm-bindgen/pull/1256).

Fixed

* The `wasm-bindgen` CLI tool will correctly strip DWARF debug information
unless `--keep-debug` is passed.
[1255](https://github.com/rustwasm/wasm-bindgen/pull/1255).

Changed

* The `wasm-bindgen` CLI tool no longer emits the `producers` custom section by
default to work around a [webpack bug]. See
[1260](https://github.com/rustwasm/wasm-bindgen/pull/1260).

[webpack bug]: https://github.com/webpack/webpack/pull/8786

--------------------------------------------------------------------------------

0.2.36

Released 2019-02-12.

Fixed

* Fixed a bug where using closures and LTO together caused a panic inside the
`wasm-bindgen` CLI tool. See
[1244](https://github.com/rustwasm/wasm-bindgen/issues/1244).

--------------------------------------------------------------------------------

0.2.35

Released 2019-02-12.

Changed

* `wasm-bindgen` now internally uses the `walrus` crate to perform its
transformations of the wasm that rustc/LLVM emits. See
[1237](https://github.com/rustwasm/wasm-bindgen/pull/1237).

Fixed

* When `WebAssembly.instantiateStreaming` fails due to incorrect MIME type,
*actually* properly recover. See
[1243](https://github.com/rustwasm/wasm-bindgen/pull/1243).

--------------------------------------------------------------------------------

0.2.34

Released 2019-02-11.

Added

* Added support for optional `enum`s. See
[1214](https://github.com/rustwasm/wasm-bindgen/pull/1214).
* Added the `UnwrapThrowExt<T>` trait, which can enable smaller code sizes for
panics. See [1219](https://github.com/rustwasm/wasm-bindgen/pull/1219).

Fixed

* Some `WebGlRenderingContext` methods are now whitelisted to use shared slices
instead of exclusive slices. See
[1199](https://github.com/rustwasm/wasm-bindgen/pull/1199).
* Fixed TypeScript definitions for optional types. See
[1201](https://github.com/rustwasm/wasm-bindgen/pull/1201).
* Quiet clippy warnings inside generated code. See
[1207](https://github.com/rustwasm/wasm-bindgen/pull/1207).
* Fixed using `cfg_attr` and `wasm_bindgen` together like `[cfg_attr(...,
wasm_bindgen)]`. See
[1208](https://github.com/rustwasm/wasm-bindgen/pull/1208).
* The WebAudio example program was fixed. See
[1215](https://github.com/rustwasm/wasm-bindgen/pull/1215).
* Fixed logging HTML in `wasm-bindgen-test`. See
[1233](https://github.com/rustwasm/wasm-bindgen/pull/1233).
* When `WebAssembly.instantiateStreaming` fails due to incorrect MIME type,
properly recover. See
[1235](https://github.com/rustwasm/wasm-bindgen/pull/1235).

--------------------------------------------------------------------------------

0.2.33

Released 2019-01-18.

Added

* Improved the `Debug` output of `JsValue`
[1161](https://github.com/rustwasm/wasm-bindgen/pull/1161)

* Bindings for `JSON.stringify` and its optional arguments have been added
[1190](https://github.com/rustwasm/wasm-bindgen/pull/1190)

Fixed

* A bug with windows binaries being released has ben resolved.

--------------------------------------------------------------------------------

0.2.32

Released 2019-01-16.

Added

* Added support for Web IDL sequences. This enabled bindings generation for a
couple more Web APIs. We generate functions for Web APIs that take sequences
to accept any iterable, and for Web APIs that return sequences, a
`js_sys::Array` is returned. See
[1152](https://github.com/rustwasm/wasm-bindgen/pull/1152) and
[1038](https://github.com/rustwasm/wasm-bindgen/issues/1038).
* The `wasm-bindgen-test` test runner will capture `console.debug`,
`console.info`, and `console.warn` log messages and print them to `stdout`
now. It already supported `console.log` and `console.error` and continues to
support them. See
[1183](https://github.com/rustwasm/wasm-bindgen/issues/1183) and
[1184](https://github.com/rustwasm/wasm-bindgen/pull/1184).
* Added additional `--debug`-only assertions in the emitted JS glue for cases
where an imported JS function that is not annotated with
`[wasm_bindgen(catch)]` throws an exception. This should help catch some bugs
earlier! See [1179](https://github.com/rustwasm/wasm-bindgen/pull/1179).

Fixed

* Fixed a bug where `[wasm_bindgen_test]` tests would fail in non-headless Web
browsers if they used `console.log`. See
[1167](https://github.com/rustwasm/wasm-bindgen/pull/1167).
* Fixed a bug where returning closures from exported functions sometimes
resulted in a faulty error. See
[1174](https://github.com/rustwasm/wasm-bindgen/issues/1174) and
[1175](https://github.com/rustwasm/wasm-bindgen/pull/1175).
* Sometimes our generated TypeScript interface files had syntax errors in them
(missing semicolons). This has been fixed. See
[1181](https://github.com/rustwasm/wasm-bindgen/pull/1181).

--------------------------------------------------------------------------------

Page 6 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.