Wasmbind

Latest version: v0.4

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

Scan your dependencies

Page 5 of 10

0.2.43

Released 2019-04-29.

Added

* Support for `isize` and `usize` arrays has been added.
[1448](https://github.com/rustwasm/wasm-bindgen/pull/1448)

* Support customizing `dyn_ref` and friends via a new `is_type_of` attribute and
apply it to some `js_sys` bindings.
[1405](https://github.com/rustwasm/wasm-bindgen/pull/1405)
[1450](https://github.com/rustwasm/wasm-bindgen/pull/1450)
[1490](https://github.com/rustwasm/wasm-bindgen/pull/1490)

* A new `skip` attribute to `[wasm_bindgen]` has been added to skip fields and
methods when generating bindings.
[1410](https://github.com/rustwasm/wasm-bindgen/pull/1410)

* More bindings have been added to `web-sys` for interfaces tagged with
`[NoInterfaceObject]` in WebIDL. These types always fail `dyn_ref` and friends
and must be manually casted into.
[1449](https://github.com/rustwasm/wasm-bindgen/pull/1449)

* Added `Debug for JsFuture`.
[1477](https://github.com/rustwasm/wasm-bindgen/pull/1477)

* Initial bindings for `Atomics` and `SharedArrayBuffer` have been added to
`js_sys`.
[1463](https://github.com/rustwasm/wasm-bindgen/pull/1463)

* Bindings for `Object.fromEntries` has been added to `js_sys`.
[1456](https://github.com/rustwasm/wasm-bindgen/pull/1456)

* Tuple structs exported to JS now have indexed struct properties.
[1467](https://github.com/rustwasm/wasm-bindgen/pull/1467)

* Binding for `new Function(args, body)` has been added to `js_sys`.
[1492](https://github.com/rustwasm/wasm-bindgen/pull/1492)

* Bindings for some variadic functions have been added to `js_sys`.
[1491](https://github.com/rustwasm/wasm-bindgen/pull/1491)

Changed

* Many `js-sys` types have received various tweaks and improvements to ensure
they're consistent and work similarly to native Rust types.
[1447](https://github.com/rustwasm/wasm-bindgen/pull/1447)
[1444](https://github.com/rustwasm/wasm-bindgen/pull/1444)
[1473](https://github.com/rustwasm/wasm-bindgen/pull/1473)

* Dummy types in `js-sys` only used to namespace methods were removed and now
modules are used for namespacing instead.
[1451](https://github.com/rustwasm/wasm-bindgen/pull/1451)

* Bindings in `web-sys` are formatted by default for ease of usage in IDEs.
[1461](https://github.com/rustwasm/wasm-bindgen/pull/1461)

Fixed

* Documentation for Rust methods now show up in TypeScript as well.
[1472](https://github.com/rustwasm/wasm-bindgen/pull/1472)

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

0.2.42

Released 2019-04-11.

Fixed

* Fixed an issue in Firefox where using `encodeInto` accidentally caused empty
strings to keep getting passed to Rust.
[1434](https://github.com/rustwasm/wasm-bindgen/pull/1434)

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

0.2.41

Released 2019-04-10.

Added

* Initial support for transitive NPM dependencies has been added, although
support has not fully landed in `wasm-pack` yet so it's not 100% integrated.
[1305](https://github.com/rustwasm/wasm-bindgen/pull/1305)

* The `constructor` property of `Object` is now bound in `js-sys`.
[1403](https://github.com/rustwasm/wasm-bindgen/pull/1403)

* The `Closure` type now always implements `Debug`.
[1408](https://github.com/rustwasm/wasm-bindgen/pull/1408)

* Closures which take one `&T` argument are now supported. More implementations
may be added in the future, but for now it's just one argument closures.
[1417](https://github.com/rustwasm/wasm-bindgen/pull/1417)

* The TypeScript bindings for `--web` now expose the `init` function.
[1412](https://github.com/rustwasm/wasm-bindgen/pull/1412)

* A `js_sys::JsString::is_valid_utf16` method has been added to handle unpaired
surrogates in JS strings. Surrounding documentation has also been updated to
document this potential pitfall.
[1416](https://github.com/rustwasm/wasm-bindgen/pull/1416)

* A `wasm_bindgen::function_table()` function has been added to expose the
`WebAssembly.Table` and get access to it in wasm code.
[1431](https://github.com/rustwasm/wasm-bindgen/pull/1431)

Fixed

* Reexporting the `wasm_bindgen` macro in crates has been fixed.
[1359](https://github.com/rustwasm/wasm-bindgen/pull/1359)

* Returning `u32` to JS has been fixed where large `u32` values would show up in
JS as large negative numbers.
[1401](https://github.com/rustwasm/wasm-bindgen/pull/1401)

* Manual instantiation with `WebAssembly.Module` has been fixed.
[1419](https://github.com/rustwasm/wasm-bindgen/pull/1419)

* Error message for non-`Copy` public struct fields has been improved.
[1430](https://github.com/rustwasm/wasm-bindgen/pull/1430)

Changed

* Performance of passing strings to Rust in Node.js has been improved.
[1391](https://github.com/rustwasm/wasm-bindgen/pull/1391)

* Performance of `js_sys::try_iter` has been improved.
[1393](https://github.com/rustwasm/wasm-bindgen/pull/1393)

* Performance of using `TextEncoderencodeInto` has been improved.
[1414](https://github.com/rustwasm/wasm-bindgen/pull/1414)

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

0.2.40

Released 2019-03-21.

Added

* TypeScript and JS generation will now attempt to preserve argument names in
the generated JS where possible.
[1344](https://github.com/rustwasm/wasm-bindgen/pull/1344)

* Enable `Option<T>` support for enums defined in WebIDL.
[1350](https://github.com/rustwasm/wasm-bindgen/pull/1350)

* Add a `raw_module` attribute to `[wasm_bindgen]` which is the same as
`module` except doesn't attempt to recognize `./`, `../`, `or `/` prefixed
paths.
[1353](https://github.com/rustwasm/wasm-bindgen/pull/1353)

* The `wasm-bindgen` CLI flags have now all been renamed under a `--target`
flag. Instead of `--web` you'll now pass `--target web`, for example. This
increases consistency between the `wasm-bindgen` and `wasm-pack` CLI.
[1369](https://github.com/rustwasm/wasm-bindgen/pull/1369)

Fixed

* Definitions for `TypedArray` imports of `js-sys` have been unified with a
macro to improve consistency and fix future bugs.
[1371](https://github.com/rustwasm/wasm-bindgen/pull/1371)

* Usage of `--no-modules` in CloudFlare workers should now work by default.
[1384](https://github.com/rustwasm/wasm-bindgen/pull/1384)

* A use-after-free when a closure is reinvoked after being destroyed on the Rust
die has been fixed.
[1385](https://github.com/rustwasm/wasm-bindgen/pull/1385)

* A bug causing nondeterministic generation of JS bindings has been fixed.
[1383](https://github.com/rustwasm/wasm-bindgen/pull/1383)

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

0.2.39

Released 2018-03-13.

Added

* Crates can now import locally written JS snippets to get bundled into the
final output. See [RFC 6] for more details as well as the PR.
[1295](https://github.com/rustwasm/wasm-bindgen/pull/1295)

[RFC 6]: https://github.com/rustwasm/rfcs/pull/6

Changed

* A typo in the return value of `slice` methods on typed arrays in `js-sys` was
corrected.
[1321](https://github.com/rustwasm/wasm-bindgen/pull/1321)

* The directory specified by `--out-dir` is now created if it doesn't exist
already.
[1330](https://github.com/rustwasm/wasm-bindgen/pull/1330)

Fixed

* A bug where if `nom` was in a crate graph and was compiled with the
`verbose-errors` feature has been fixed. Previously the `wasm-bindgen-webidl`
crate wouldn't compile, and now it will.
[1338](https://github.com/rustwasm/wasm-bindgen/pull/1338)

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

0.2.38

Released 2019-03-04.

Added

* Support for `Option<RustStruct>` in `[wasm_bindgen]` functions has now been
added.
[1275](https://github.com/rustwasm/wasm-bindgen/pull/1275)

* Experimental support for the `anyref` type proposal in WebAssembly has now
landed and is enabled with `WASM_BINDGEN_ANYREF=1`.
[1002](https://github.com/rustwasm/wasm-bindgen/pull/1002)

* Support fot the new browser `TextEncodeencodeInto` API has been added.
[1279](https://github.com/rustwasm/wasm-bindgen/pull/1279)

* JS doc comments are now added to TypeScript bindings in addition to the JS
bindings generated.
[1302](https://github.com/rustwasm/wasm-bindgen/pull/1302)

* Initial support for `FnOnce` closures has been added to the `Closure` type.
[1281](https://github.com/rustwasm/wasm-bindgen/pull/1281)

Fixed

* Fixed an internal assert tripping when some modules were compiled with LTO.
[1274](https://github.com/rustwasm/wasm-bindgen/pull/1274)

* The `Context` type in the `wasm-bindgen-test` crate had its JS name changed to
avoid conflicts with other crates that have a `Context` type being exported.
[1280](https://github.com/rustwasm/wasm-bindgen/pull/1280)

* The headless test runner for Safari on macOS High Sierra has been fixed.
[1298](https://github.com/rustwasm/wasm-bindgen/pull/1298)

Changed

* The `wasm-bindgen` CLI tool now emits the `producers` section again with
relevant bugs having been fixed in the meantime. The
`--remove-producers-section` flag can continue to be used to omit emission of
this section.
[1263](https://github.com/rustwasm/wasm-bindgen/pull/1263)

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

Page 5 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.