rustwasm/wasm-bindgen (wasm-bindgen)
### [`v0.2.92`](https://togithub.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0292)
[Compare Source](https://togithub.com/rustwasm/wasm-bindgen/compare/0.2.91...0.2.92)
Released 2024-03-04
##### Added
- Add bindings for `RTCPeerConnectionIceErrorEvent`.
[#3835](https://togithub.com/rustwasm/wasm-bindgen/pull/3835)
- Add bindings for `CanvasState.reset()`, affecting `CanvasRenderingContext2D` and `OffscreenCanvasRenderingContext2D`.
[#3844](https://togithub.com/rustwasm/wasm-bindgen/pull/3844)
- Add `TryFrom` implementations for `Number`, that allow losslessly converting from 64- and 128-bits numbers.
[#3847](https://togithub.com/rustwasm/wasm-bindgen/pull/3847)
- Add support for `Option<*const T>`, `Option<*mut T>` and `NonNull`.
[#3852](https://togithub.com/rustwasm/wasm-bindgen/pull/3852)
[#3857](https://togithub.com/rustwasm/wasm-bindgen/pull/3857)
- Allow overriding the URL used for headless tests by setting `WASM_BINDGEN_TEST_ADDRESS`.
[#3861](https://togithub.com/rustwasm/wasm-bindgen/pull/3861)
##### Fixed
- Make .wasm output deterministic when using `--reference-types`.
[#3851](https://togithub.com/rustwasm/wasm-bindgen/pull/3851)
- Don't allow invalid Unicode scalar values in `char`.
[#3866](https://togithub.com/rustwasm/wasm-bindgen/pull/3866)
***
### [`v0.2.91`](https://togithub.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0291)
[Compare Source](https://togithub.com/rustwasm/wasm-bindgen/compare/0.2.90...0.2.91)
Released 2024-02-06
##### Added
- Added bindings for the `RTCRtpTransceiver.setCodecPreferences()` and unstable bindings for the `RTCRtpEncodingParameters.scalabilityMode`.
[#3828](https://togithub.com/rustwasm/wasm-bindgen/pull/3828)
- Add unstable bindings for the FileSystemAccess API
[#3810](https://togithub.com/rustwasm/wasm-bindgen/pull/3810)
- Added support for running tests in shared and service workers with `wasm_bindgen_test_configure!` `run_in_shared_worker` and `run_in_service_worker`.
[#3804](https://togithub.com/rustwasm/wasm-bindgen/pull/3804)
- Accept the `--skip` flag with `wasm-bindgen-test-runner`.
[#3803](https://togithub.com/rustwasm/wasm-bindgen/pull/3803)
- Introduce environment variable `WASM_BINDGEN_TEST_NO_ORIGIN_ISOLATION` to disable origin isolation for `wasm-bindgen-test-runner`.
[#3807](https://togithub.com/rustwasm/wasm-bindgen/pull/3807)
- Add bindings for `USBDevice.forget()`.
[#3821](https://togithub.com/rustwasm/wasm-bindgen/pull/3821)
##### Changed
- Stabilize `ClipboardEvent`.
[#3791](https://togithub.com/rustwasm/wasm-bindgen/pull/3791)
- Use immutable buffers in `SubtleCrypto` methods.
[#3797](https://togithub.com/rustwasm/wasm-bindgen/pull/3797)
- Deprecate `wasm_bindgen_test_configure!`s `run_in_worker` in favor of `run_in_dedicated_worker`.
[#3804](https://togithub.com/rustwasm/wasm-bindgen/pull/3804)
- Updated the WebGPU WebIDL to the current draft as of 2024-01-30. Note that this retains the previous update's workaround for `GPUPipelineError`, and holds back an update to the `buffer` argument of the `GPUQueue.{writeBuffer,writeTexture}` methods.
[#3816](https://togithub.com/rustwasm/wasm-bindgen/pull/3816)
- Depreate `--weak-refs` and `WASM_BINDGEN_WEAKREF` in favor of automatic run-time detection.
[#3822](https://togithub.com/rustwasm/wasm-bindgen/pull/3822)
##### Fixed
- Fixed UB when freeing strings received from JS if not using the default allocator.
[#3808](https://togithub.com/rustwasm/wasm-bindgen/pull/3808)
- Fixed temporary folder detection by `wasm-bindgen-test-runner` on MacOS.
[#3817](https://togithub.com/rustwasm/wasm-bindgen/pull/3817)
- Fixed using `#[wasm_bindgen(js_name = default)]` with `#[wasm_bindgen(module = ...)]`.
[#3823](https://togithub.com/rustwasm/wasm-bindgen/pull/3823)
- Fixed nighly build of `wasm-bindgen-futures`.
[#3827](https://togithub.com/rustwasm/wasm-bindgen/pull/3827)
***
### [`v0.2.90`](https://togithub.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0290)
[Compare Source](https://togithub.com/rustwasm/wasm-bindgen/compare/0.2.89...0.2.90)
Released 2024-01-06
##### Fixed
- Fix JS shim default path detection for the no-modules target.
[#3748](https://togithub.com/rustwasm/wasm-bindgen/pull/3748)
##### Added
- Add bindings for `HTMLFormElement.requestSubmit()`.
[#3747](https://togithub.com/rustwasm/wasm-bindgen/pull/3747)
- Add bindings for `RTCRtpSender.getCapabilities(DOMString)` method, `RTCRtpCapabilities`, `RTCRtpCodecCapability` and `RTCRtpHeaderExtensionCapability`.
[#3737](https://togithub.com/rustwasm/wasm-bindgen/pull/3737)
- Add bindings for `UserActivation`.
[#3719](https://togithub.com/rustwasm/wasm-bindgen/pull/3719)
- Add unstable bindings for the Compression Streams API.
[#3752](https://togithub.com/rustwasm/wasm-bindgen/pull/3752)
##### Changed
- Stabilize File System API.
[#3745](https://togithub.com/rustwasm/wasm-bindgen/pull/3745)
- Stabilize `QueuingStrategy`.
[#3753](https://togithub.com/rustwasm/wasm-bindgen/pull/3753)
##### Fixed
- Fixed a compiler error when using `#[wasm_bindgen]` inside `macro_rules!`.
[#3725](https://togithub.com/rustwasm/wasm-bindgen/pull/3725)
##### Removed
- Removed Gecko-only `InstallTriggerData` and Gecko-internal `FlexLineGrowthState`, `GridDeclaration`, `GridTrackState`,
`RtcLifecycleEvent` and `WebrtcGlobalStatisticsReport` features.
[#3723](https://togithub.com/rustwasm/wasm-bindgen/pull/3723)
***
### [`v0.2.89`](https://togithub.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0289)
[Compare Source](https://togithub.com/rustwasm/wasm-bindgen/compare/0.2.88...0.2.89)
Released 2023-11-27.
##### Added
- Add additional constructor to `DataView` for `SharedArrayBuffer`.
[#3695](https://togithub.com/rustwasm/wasm-bindgen/pull/3695)
- Stabilize `wasm_bindgen::module()`.
[#3690](https://togithub.com/rustwasm/wasm-bindgen/pull/3690)
##### Fixed
- The DWARF section is now correctly modified instead of leaving it in a broken state.
[#3483](https://togithub.com/rustwasm/wasm-bindgen/pull/3483)
- Fixed an issue where `#[wasm_bindgen]` automatically derived the `TryFrom` trait for any struct, preventing custom `TryFrom` implementations. It has been updated to utilize a new `TryFromJsValue` trait instead.
[#3709](https://togithub.com/rustwasm/wasm-bindgen/pull/3709)
- Update the TypeScript signature of `__wbindgen_thread_destroy` to indicate that it's parameters are optional.
[#3703](https://togithub.com/rustwasm/wasm-bindgen/pull/3703)
##### Removed
- Removed Gecko-internal dictionary bindings `Csp`, `CspPolicies`, `CspReport` and `CspReportProperties`.
[#3721](https://togithub.com/rustwasm/wasm-bindgen/pull/3721)
***
### [`v0.2.88`](https://togithub.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0288)
[Compare Source](https://togithub.com/rustwasm/wasm-bindgen/compare/0.2.87...0.2.88)
Released 2023-11-01
##### Added
- Add bindings for `RTCRtpTransceiverInit.sendEncodings`.
[#3642](https://togithub.com/rustwasm/wasm-bindgen/pull/3642)
- Add bindings for the Web Locks API to `web-sys`.
[#3604](https://togithub.com/rustwasm/wasm-bindgen/pull/3604)
- Add bindings for `ViewTransition` to `web-sys`.
[#3598](https://togithub.com/rustwasm/wasm-bindgen/pull/3598)
- Extend `AudioContext` with unstable features supporting audio sink configuration.
[#3433](https://togithub.com/rustwasm/wasm-bindgen/pull/3433)
- Add bindings for `WebAssembly.Tag` and `WebAssembly.Exception`.
[#3484](https://togithub.com/rustwasm/wasm-bindgen/pull/3484)
- Re-export `wasm-bindgen` from `js-sys`, `web-sys` and `wasm-bindgen-futures`.
[#3466](https://togithub.com/rustwasm/wasm-bindgen/pull/3466)
[#3601](https://togithub.com/rustwasm/wasm-bindgen/pull/3601)
- Re-export `js-sys` from `web-sys` and `wasm-bindgen-futures`.
[#3466](https://togithub.com/rustwasm/wasm-bindgen/pull/3466)
[#3601](https://togithub.com/rustwasm/wasm-bindgen/pull/3601)
- Add bindings for async variants of `Atomics.wait`.
[#3504](https://togithub.com/rustwasm/wasm-bindgen/pull/3504)
- Add bindings for `WorkerGlobalScope.performance`.
[#3506](https://togithub.com/rustwasm/wasm-bindgen/pull/3506)
- Add support for installing pre-built artifacts of `wasm-bindgen-cli`
via `cargo binstall wasm-bindgen-cli`.
[#3544](https://togithub.com/rustwasm/wasm-bindgen/pull/3544)
- Add bindings for `RTCDataChannel.id`.
[#3547](https://togithub.com/rustwasm/wasm-bindgen/pull/3547)
- Add bindings for `HTMLElement.inert`.
[#3557](https://togithub.com/rustwasm/wasm-bindgen/pull/3557)
- Add unstable bindings for the Prioritized Task Scheduling API.
[#3566](https://togithub.com/rustwasm/wasm-bindgen/pull/3566)
- Add bindings for `CssStyleSheet` constructor and `replace(_sync)` methods.
[#3573](https://togithub.com/rustwasm/wasm-bindgen/pull/3573)
- Add bindings for `CanvasTransform.setTransform(DOMMatrix2DInit)`.
[#3580](https://togithub.com/rustwasm/wasm-bindgen/pull/3580)
- Add a `crate` attribute to the `wasm_bindgen_test` proc-macro to specify a
non-default path to the `wasm-bindgen-test` crate.
[#3593](https://togithub.com/rustwasm/wasm-bindgen/pull/3593)
- Add support for passing `Vec`s of exported Rust types and strings to/from JS.
[#3554](https://togithub.com/rustwasm/wasm-bindgen/pull/3554)
- Implement `TryFrom` for exported Rust types and strings.
[#3554](https://togithub.com/rustwasm/wasm-bindgen/pull/3554)
- Handle the `#[ignore = "reason"]` attribute with the `wasm_bindgen_test`
proc-macro and accept the `--include-ignored` flag with `wasm-bindgen-test-runner`.
[#3644](https://togithub.com/rustwasm/wasm-bindgen/pull/3644)
- Added missing additions to the Notification API.
[#3667](https://togithub.com/rustwasm/wasm-bindgen/pull/3667)
##### Changed
- Updated the WebGPU WebIDL.
The optional `message` argument of [`GPUPipelineError`](https://www.w3.org/TR/webgpu/#gpupipelineerror)'s constructor has been manually specified as a required argument,
because required arguments occurring after optional arguments are currently not supported by the generator.
[#3480](https://togithub.com/rustwasm/wasm-bindgen/pull/3480)
- Replaced `curl` with `ureq`. By default we now use Rustls instead of OpenSSL.
[#3511](https://togithub.com/rustwasm/wasm-bindgen/pull/3511)
- Changed mutability of the argument `buffer` in `write` functions to immutable for `FileSystemSyncAccessHandle` and `FileSystemWritableFileStream`.
It was also automatically changed for `IdbFileHandle`, which is deprecated.
[#3537](https://togithub.com/rustwasm/wasm-bindgen/pull/3537)
- Changed behavior when compiling to `wasm32-wasi` to match `wasm32-emscripten` and
non-WASM targets, generating a stub that panics when called rather than a wasm-
bindgen placeholder.
[#3233](https://togithub.com/rustwasm/wasm-bindgen/pull/3233)
- Changed constructor implementation in generated JS bindings, it is now
possible to override methods from generated JS classes using inheritance.
When exported constructors return `Self`.
[#3562](https://togithub.com/rustwasm/wasm-bindgen/pull/3562)
- Made `wasm-bindgen` forwards-compatible with the standard C ABI.
[#3595](https://togithub.com/rustwasm/wasm-bindgen/pull/3595)
- Changed the design of the internal `WasmAbi` trait. Rather than marking a type
which can be passed directly as a parameter/result to/from JS, it now lets
types specify how they can be split into / recreated from multiple primitive
types which are then passed to/from JS.
`WasmPrimitive` now serves the old function of `WasmAbi`, minus allowing
`#[repr(C)]` types.
[#3595](https://togithub.com/rustwasm/wasm-bindgen/pull/3595)
- Use `queueMicrotask` in `wasm-bindgen-futures` for scheduling tasks on the next tick.
If that is not available, use the previous `Promise.then` mechanism as a fallback.
This should avoid quirks, like exceptions thrown get now properly reported
as normal exceptions rather than as rejected promises.
[#3611](https://togithub.com/rustwasm/wasm-bindgen/pull/3611)
- Improved TypeScript bindings to accurately reference Rust enum types in function signatures,
enhancing type safety and compatibility.
[#3647](https://togithub.com/rustwasm/wasm-bindgen/pull/3647)
- Throw an error on enum name collisions, previously only one enum would be emitted.
[#3669](https://togithub.com/rustwasm/wasm-bindgen/pull/3669)
##### Fixed
- Fixed `wasm_bindgen` macro to handle raw identifiers in field names.
[#3621](https://togithub.com/rustwasm/wasm-bindgen/pull/3621)
- Fixed bindings and comments for `Atomics.wait`.
[#3509](https://togithub.com/rustwasm/wasm-bindgen/pull/3509)
- Fixed `wasm_bindgen_test` macro to handle raw identifiers in test names.
[#3541](https://togithub.com/rustwasm/wasm-bindgen/pull/3541)
- Fixed Cargo license field to follow the SPDX 2.1 license expression standard.
[#3529](https://togithub.com/rustwasm/wasm-bindgen/pull/3529)
- Use fully qualified paths in the `wasm_bindgen_test` macro.
[#3549](https://togithub.com/rustwasm/wasm-bindgen/pull/3549)
- Fixed bug allowing JS primitives to be returned from exported constructors.
[#3562](https://togithub.com/rustwasm/wasm-bindgen/pull/3562)
- Fixed optional parameters in JSDoc.
[#3577](https://togithub.com/rustwasm/wasm-bindgen/pull/3577)
- Use re-exported `js-sys` from `wasm-bindgen-futures` to account for
non-default path specified by the `crate` attribute in `wasm_bindgen_futures`
proc-macro.
[#3601](https://togithub.com/rustwasm/wasm-bindgen/pull/3601)
- Fix bug with function arguments coming from `macro_rules!`.
[#3625](https://togithub.com/rustwasm/wasm-bindgen/pull/3625)
- Fix some calls to `free()` missing alignment.
[#3639](https://togithub.com/rustwasm/wasm-bindgen/pull/3639)
- Fix wrong ABI for raw pointers.
[#3655](https://togithub.com/rustwasm/wasm-bindgen/pull/3655)
##### Removed
- Removed `ReadableStreamByobReader::read_with_u8_array()` because it doesn't work with Wasm.
[#3582](https://togithub.com/rustwasm/wasm-bindgen/pull/3582)
- Removed `GetNotificationOptions`, `NotificationBehavior` and `Notification.get()` because
they don't exist anymore.
***
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
0.2.87
->0.2.92
0.3
->0.3.42
Release Notes
rustwasm/wasm-bindgen (wasm-bindgen)
### [`v0.2.92`](https://togithub.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0292) [Compare Source](https://togithub.com/rustwasm/wasm-bindgen/compare/0.2.91...0.2.92) Released 2024-03-04 ##### Added - Add bindings for `RTCPeerConnectionIceErrorEvent`. [#3835](https://togithub.com/rustwasm/wasm-bindgen/pull/3835) - Add bindings for `CanvasState.reset()`, affecting `CanvasRenderingContext2D` and `OffscreenCanvasRenderingContext2D`. [#3844](https://togithub.com/rustwasm/wasm-bindgen/pull/3844) - Add `TryFrom` implementations for `Number`, that allow losslessly converting from 64- and 128-bits numbers. [#3847](https://togithub.com/rustwasm/wasm-bindgen/pull/3847) - Add support for `Option<*const T>`, `Option<*mut T>` and `NonNullConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.