Wasmbind

Latest version: v0.4

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

Scan your dependencies

Page 7 of 10

0.2.31

Released 2019-01-09.

Added

* A new `spawn_local` function has been added to the `wasm-bindgen-futures`
crate.
[1148](https://github.com/rustwasm/wasm-bindgen/pull/1148)

* Built-in conversions are now available from typed arrays and Rust arrays.
[1147](https://github.com/rustwasm/wasm-bindgen/pull/1147)

Fixed

* Some casing of dictionary properties in WebIDL has been fixed.
[1155](https://github.com/rustwasm/wasm-bindgen/pull/1155)

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

0.2.30

Released 2019-01-07.

Added

* The `wasm-bindgen` CLI now has an `--out-name` argument to name the output
module.
[1084](https://github.com/rustwasm/wasm-bindgen/pull/1084)

* Support for importing the `default` export has been added.
[1106](https://github.com/rustwasm/wasm-bindgen/pull/1106)

Changed

* All `web-sys` methods are now flagged as `structural`, fixing a few bindings.
[1117](https://github.com/rustwasm/wasm-bindgen/pull/1117)

Fixed

* A small bug with LTO and closures has been fixed.
[1145](https://github.com/rustwasm/wasm-bindgen/pull/1145)

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

0.2.29

Released 2018-12-04.

Added

* Add a `[wasm_bindgen(start)]` attribute to customize the `start` section of
the wasm module.
[1057](https://github.com/rustwasm/wasm-bindgen/pull/1057)

* Add support for producing the new "producers" section of wasm binaries
[1041](https://github.com/rustwasm/wasm-bindgen/pull/1041)

* Add support a `typescript_custom_section` attribute for producing custom
typescript abstractions
[1048](https://github.com/rustwasm/wasm-bindgen/pull/1048)

* Generate `*.d.ts` files for wasm files in addition to the JS bindings
[1053](https://github.com/rustwasm/wasm-bindgen/pull/1053)

* Add a feature to assert that all attributes in `[wasm_bindgen]` are used to
help catch typos and mistakes
[1055](https://github.com/rustwasm/wasm-bindgen/pull/1055)

Changed

* JS glue generation has received a few small optimizations such as removing
shims and removing object allocations
[1033](https://github.com/rustwasm/wasm-bindgen/pull/1033)
[1030](https://github.com/rustwasm/wasm-bindgen/pull/1030)

* JS glue now just uses one array of JS objects instead of two
[1069](https://github.com/rustwasm/wasm-bindgen/pull/1069)

Fixed

* Fix a typo in the `--no-modules` generated JS
[1045](https://github.com/rustwasm/wasm-bindgen/pull/1045)

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

0.2.28

Released 2018-11-12.

Added

* The `js_class` support is now supported on exported types to define a
different class in JS than is named in Rust
[1012](https://github.com/rustwasm/wasm-bindgen/pull/1012)

* More WebIDL bindings are exposed with some internal restructuring to ignore
unimplemented types at a different location
[1014](https://github.com/rustwasm/wasm-bindgen/pull/1014)

* All imported types now implement `Deref` to their first `extends` attribute
(or `JsValue` if one isn't listed). This is intended to greatly improve the
ergonomics of `web-sys` bindings by allowing easy access to parent class
methods
[1019](https://github.com/rustwasm/wasm-bindgen/pull/1019)

* A new attribute, `final`, can be applied to JS imports. This attribute is
relatively nuanced and [best explained in documentation][final-dox], but is
added since `structural` is now the default
[1019](https://github.com/rustwasm/wasm-bindgen/pull/1019)

[final-dox]: https://rustwasm.github.io/wasm-bindgen/reference/attributes/on-js-imports/final.html

* A new CLI flag, `--remove-name-section`, can be passed to remove the wasm
`name` section which contains the names of functions for debugging (typically
not needed in release mode)
[1024](https://github.com/rustwasm/wasm-bindgen/pull/1024)

Changed

* All imported functions are now `structural` by default. This shouldn't change
the semantics of imported functions, only how they're invoked in the JS
function shims that are generated by `wasm-bindgen`. More discussion can be
founed on [RFC 5] and the PR
[1019](https://github.com/rustwasm/wasm-bindgen/pull/1019)

[RFC 5]: https://rustwasm.github.io/rfcs/005-structural-and-deref.html

* JS glue assertions for moved arguments are now only emitted in debug mode,
which is still off by default
[1020](https://github.com/rustwasm/wasm-bindgen/pull/1020)

Fixed

* Typescript generated bindings now correctly reflect `Option<T>` for more types
[1008](https://github.com/rustwasm/wasm-bindgen/pull/1008)

* The JS shim code generation has been optimized for `structural` bindings (now
the default) to include fewer JS shims and more easily optimizable for JS
engines
[1019](https://github.com/rustwasm/wasm-bindgen/pull/1019)

* Passing a `WebAssembly.Module` to the `--no-modules` constructor has been
fixed
[1025](https://github.com/rustwasm/wasm-bindgen/pull/1025)

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

0.2.27

Released 2018-10-29.

Fixed

* Fixed an internal panic where the gc passes were being too aggressive
[995](https://github.com/rustwasm/wasm-bindgen/pull/995)

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

0.2.26

Released 2018-10-29.

Added

* The `TypedArray.slice` methods have now been bound in `js-sys`.
[956](https://github.com/rustwasm/wasm-bindgen/pull/956)

* The `Debug` and `Clone` traits are now implemented for `js_sys::Promise`.
[957](https://github.com/rustwasm/wasm-bindgen/pull/957)

* The `js_sys::DataView` type now exposes overloads to specify endianness.
[966](https://github.com/rustwasm/wasm-bindgen/pull/966)

* When using `--no-modules` a `WebAssembly.Module` can now be directly passed
into the instantiation glue.
[969](https://github.com/rustwasm/wasm-bindgen/pull/969)

Fixed

* The `JsValue` type is no longer considered `Send`.
[955](https://github.com/rustwasm/wasm-bindgen/pull/955)

* The generated JS glue is now more robust in the face of missing APIs.
[959](https://github.com/rustwasm/wasm-bindgen/pull/959)

* An issue with the latest version of `safaridriver` used to run headless tests
has been resolved.
[991](https://github.com/rustwasm/wasm-bindgen/pull/991)

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

Page 7 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.