|
2 | 2 |
|
3 | 3 | --------------------------------------------------------------------------------
|
4 | 4 |
|
| 5 | +## 0.2.59 |
| 6 | + |
| 7 | +Released 2020-03-03. |
| 8 | + |
| 9 | +### Added |
| 10 | + |
| 11 | +* The `js_sys::Number` type now has a number of JS-number associated constants |
| 12 | + on it now. |
| 13 | + [#1965](https://github.com/rustwasm/wasm-bindgen/pull/1965) |
| 14 | + |
| 15 | +* The `getTransform` method on `CanvasRenderingContext2D` has been added. |
| 16 | + [#1966](https://github.com/rustwasm/wasm-bindgen/pull/1966) |
| 17 | + |
| 18 | +* Initial experimental support was added for electron targets with a new |
| 19 | + `--omit-imports` flag. |
| 20 | + [#1958](https://github.com/rustwasm/wasm-bindgen/pull/1958) |
| 21 | + |
| 22 | +* Optional struct fields are now reflected idiomatically in TypeScript. |
| 23 | + [#1990](https://github.com/rustwasm/wasm-bindgen/pull/1990) |
| 24 | + |
| 25 | +* Typed arrays in `js_sys` onw have `get_index` and `set_index` methods. |
| 26 | + [#2001](https://github.com/rustwasm/wasm-bindgen/pull/2001) |
| 27 | + |
| 28 | +* The `web_sys::Blob` type has been updated with `arrayBuffer` and `text` |
| 29 | + methods. |
| 30 | + [#2008](https://github.com/rustwasm/wasm-bindgen/pull/2008) |
| 31 | + |
| 32 | +* Support for unstable browser interfaces has now been added. By compiling |
| 33 | + `web_sys` with `--cfg web_sys_unstable_apis` (typically via `RUSTFLAGS`) |
| 34 | + you'll be able to access all bound WebIDL functions, even those like GPU |
| 35 | + support on the web, which has now also had its WebIDL updated. |
| 36 | + [#1997](https://github.com/rustwasm/wasm-bindgen/pull/1997) |
| 37 | + |
| 38 | +* The compile time for `web_sys` has been massively reduced by pre-generating |
| 39 | + Rust code from WebIDL. It is also readable now since it generates |
| 40 | + `#[wasm_bindgen]` annotations instead of expanded code. |
| 41 | + [#2012](https://github.com/rustwasm/wasm-bindgen/pull/2012) |
| 42 | + |
| 43 | +* A new `skip_tyepscript` attribute is recognized to skip generating TypeScript |
| 44 | + bindings for a function or type. |
| 45 | + [#2016](https://github.com/rustwasm/wasm-bindgen/pull/2016) |
| 46 | + |
| 47 | +### Changed |
| 48 | + |
| 49 | +* More `uniformMatrix*` bindings now are whitelisted take shared slice instead |
| 50 | + of a mutable slice. |
| 51 | + [#1957](https://github.com/rustwasm/wasm-bindgen/pull/1957) |
| 52 | + |
| 53 | +* Non-`dependency` keys in `package.json` are now ignored instead of error'd |
| 54 | + about. |
| 55 | + [#1969](https://github.com/rustwasm/wasm-bindgen/pull/1969) |
| 56 | + |
| 57 | +* WebGPU has been removed from `web_sys` since it was outdated and didn't work |
| 58 | + anywhere anyway. |
| 59 | + [#1972](https://github.com/rustwasm/wasm-bindgen/pull/1972) |
| 60 | + |
| 61 | +* The JS heap of objects managed by wasm-bindgen has had its definition |
| 62 | + tightended up a bit. |
| 63 | + [#1987](https://github.com/rustwasm/wasm-bindgen/pull/1987) |
| 64 | + |
| 65 | +* The `self` identifier is no longe used on the `no-modules` target, making it a |
| 66 | + bit more flexible in more environments. |
| 67 | + [#1995](https://github.com/rustwasm/wasm-bindgen/pull/1995) |
| 68 | + |
| 69 | +* The wasm-loading logic is now more flexible and can take promises as well. |
| 70 | + [#1996](https://github.com/rustwasm/wasm-bindgen/pull/1996) |
| 71 | + |
| 72 | +* JS glue for closures is now deduplicated. |
| 73 | + [#2002](https://github.com/rustwasm/wasm-bindgen/pull/2002) |
| 74 | + |
| 75 | +* The `web_sys` crate now emits more accurate TypeScript definitions using named |
| 76 | + types instead of `any` everywhere. |
| 77 | + [#1998](https://github.com/rustwasm/wasm-bindgen/pull/1998) |
| 78 | + |
| 79 | +* The `send_with_u8_array` methods in `web_sys` are whitelisted to take shared |
| 80 | + slices instead of mutable slices. |
| 81 | + [#2015](https://github.com/rustwasm/wasm-bindgen/pull/2015) |
| 82 | + |
| 83 | +-------------------------------------------------------------------------------- |
| 84 | + |
5 | 85 | ## 0.2.58
|
6 | 86 |
|
7 | 87 | Released 2020-01-07.
|
|
0 commit comments