cargo wasm-bindgen 0.2.117

latest releases: 0.2.130, 0.2.129, 0.2.128...
8 months ago

Fixed

  • Fixed a regression introduced in #5026 where stable web-sys methods that
    accept a union type containing a [WbgGeneric] interface (e.g.
    ImageBitmapSource, which includes VideoFrame) incorrectly applied typed
    generics to all union expansions rather than only those whose argument type
    is itself [WbgGeneric]. In practice this caused Window::create_image_bitmap_with_*
    and the corresponding WorkerGlobalScope overloads to return
    Promise<ImageBitmap> instead of Promise<JsValue> for the stable
    (non-VideoFrame) call sites, breaking JsFuture::from(promise).await?.
    #5064
    #5073

Don't miss a new wasm-bindgen release

NewReleases is sending notifications on new releases.