Skip to content

chore(deps): bump wasm-bindgen from 0.2.127 to 0.2.128 - #114

Merged
mdn-bot merged 1 commit into
mainfrom
dependabot/cargo/wasm-bindgen-0.2.128
Sep 9, 2026
Merged

chore(deps): bump wasm-bindgen from 0.2.127 to 0.2.128#114
mdn-bot merged 1 commit into
mainfrom
dependabot/cargo/wasm-bindgen-0.2.128

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 9, 2026

Copy link
Copy Markdown
Contributor

Bumps wasm-bindgen from 0.2.127 to 0.2.128.

Release notes

Sourced from wasm-bindgen's releases.

0.2.128

Added

  • Added OffscreenCanvas overloads for the WebGL texImage2D, texSubImage2D, texImage3D and texSubImage3D functions, matching the TexImageSource typedef in the WebGL specification. #5312

  • Added --split-debug-info to the CLI. This option extracts the DWARF debug info to a separate *_bg.debug.wasm file. Use --debug-info-url to set the recorded URL for the debug info. #5279

  • Added #[wasm_bindgen(experimental_generic_mono)] for imported functions, which binds a generic import once per monomorphisation instead of erasing its type parameters to JsValue. It can be applied to an individual import or to a whole extern "C" block, which every generic function in the block then inherits. Each instantiation gets its own descriptor, so arguments and return values are marshalled at their concrete types (a u32 crosses as a number, a String as a string) rather than being boxed. Trait bounds, where predicates (including higher-ranked ones), associated-type projections, lifetime parameters, argument-position impl Trait, raw callbacks with owned generic inputs and returns, async, catch, and slice_to_array are all supported; see the guide for the supported surface and the shapes that are rejected. The attribute is experimental and may change as it stabilizes. #5230 #5272 #5314

  • #[wasm_bindgen(experimental_generic_mono)] now supports class-level generic parameters: an imported type that is itself generic (type Holder<T>), used as a method receiver (this: &Holder<T>), or as the return type of a constructor or self-returning static method (fn new<T>(value: T) -> Holder<T>). See Class-level generics in the guide. #5290

  • A generic imported type used as a method receiver or a constructor's return type may now carry concrete generic arguments (this: &Holder<u32>, this: &Holder<u32, T>). The arguments are re-emitted as written, so the generated method hangs off impl Holder<u32> rather than the class's own parameter defaults. #5290

  • Added experimental JSPI (JS Promise Integration) support: using it emits a compiler warning noting the experimental status. Supports #[wasm_bindgen(jspi)] on exports (sync or async), within which a #[wasm_bindgen(suspending)] import call can suspend to the JS event loop until its Promise settles. js_sys::futures::jspi_block_on_promise

... (truncated)

Changelog

Sourced from wasm-bindgen's changelog.

0.2.128

Added

  • Added OffscreenCanvas overloads for the WebGL texImage2D, texSubImage2D, texImage3D and texSubImage3D functions, matching the TexImageSource typedef in the WebGL specification. #5312

  • Added --split-debug-info to the CLI. This option extracts the DWARF debug info to a separate *_bg.debug.wasm file. Use --debug-info-url to set the recorded URL for the debug info. #5279

  • Added #[wasm_bindgen(experimental_generic_mono)] for imported functions, which binds a generic import once per monomorphisation instead of erasing its type parameters to JsValue. It can be applied to an individual import or to a whole extern "C" block, which every generic function in the block then inherits. Each instantiation gets its own descriptor, so arguments and return values are marshalled at their concrete types (a u32 crosses as a number, a String as a string) rather than being boxed. Trait bounds, where predicates (including higher-ranked ones), associated-type projections, lifetime parameters, argument-position impl Trait, raw callbacks with owned generic inputs and returns, async, catch, and slice_to_array are all supported; see the guide for the supported surface and the shapes that are rejected. The attribute is experimental and may change as it stabilizes. #5230 #5272 #5314

  • Added the experimental, sealed JsStringLike marker trait — implemented for String/&str (and js_sys::JsString/&js_sys::JsString in js-sys) — as a bound for experimental_generic_mono imports that accept any string shape at its native wire format.

  • #[wasm_bindgen(experimental_generic_mono)] now supports class-level generic parameters: an imported type that is itself generic (type Holder<T>), used as a method receiver (this: &Holder<T>), or as the return type of a constructor or self-returning static method (fn new<T>(value: T) -> Holder<T>). See Class-level generics in the guide. #5290

  • A generic imported type used as a method receiver or a constructor's return type may now carry concrete generic arguments (this: &Holder<u32>, this: &Holder<u32, T>). The arguments are re-emitted as written, so the generated method hangs off impl Holder<u32> rather than the class's own parameter defaults. #5290

... (truncated)

Commits
  • 246946f Release 0.2.128 (#5319)
  • 81c701d Generate correct type for vec of c-style enum (#5321)
  • 6e8b940 js-sys: fix compilation failure with no_std and futures-core-03-stream (#...
  • bd07ee8 Add JsStringLike marker trait (#5316)
  • f2effca Revert "cli-support: --experimental-memory-discard trampoline generation (#52...
  • a3244b4 Whitelist unstable Bluetooth and WebUSB write APIs as immutable slices (#5309)
  • a94c1ed Skip the thread-bootstrap transform in Emscripten mode (#5315)
  • 25ebcae web-sys: include OffscreenCanvas in WebGL texImage* functions (#5312)
  • e689172 Per-monomorphization generic callbacks (#5314)
  • 0643142 Update main branch in URLs (#5313)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen) from 0.2.127 to 0.2.128.
- [Release notes](https://github.com/wasm-bindgen/wasm-bindgen/releases)
- [Changelog](https://github.com/wasm-bindgen/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](wasm-bindgen/wasm-bindgen@0.2.127...0.2.128)

---
updated-dependencies:
- dependency-name: wasm-bindgen
  dependency-version: 0.2.128
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Sep 9, 2026
@dependabot
dependabot Bot requested review from a team and mdn-bot as code owners September 9, 2026 11:53
@dependabot
dependabot Bot requested a review from caugner September 9, 2026 11:53
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Sep 9, 2026
@mdn-bot
mdn-bot enabled auto-merge (squash) September 9, 2026 11:54
@mdn-bot
mdn-bot merged commit 9fd743c into main Sep 9, 2026
4 checks passed
@dependabot
dependabot Bot deleted the dependabot/cargo/wasm-bindgen-0.2.128 branch September 9, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant