Skip to content

Bump wasm-bindgen from 0.2.118 to 0.2.122 in /core#4

Merged
mkh-user merged 1 commit into
mainfrom
dependabot/cargo/core/wasm-bindgen-0.2.122
Jun 5, 2026
Merged

Bump wasm-bindgen from 0.2.118 to 0.2.122 in /core#4
mkh-user merged 1 commit into
mainfrom
dependabot/cargo/core/wasm-bindgen-0.2.122

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 5, 2026

Copy link
Copy Markdown
Contributor

Bumps wasm-bindgen from 0.2.118 to 0.2.122.

Release notes

Sourced from wasm-bindgen's releases.

0.2.122

Notices

  • Threading support now requires -Clink-arg=--export=__heap_base to be set in RUSTFLAGS for nightly toolchains from 2026-05-06 onward, after rust-lang/rust#156174 removed the implicit __heap_base/__data_end exports on wasm* targets. Atomics CI, CLI reference tests, and the nodejs-threads, raytrace-parallel, and wasm-audio-worklet examples have been updated to pass --export=__heap_base explicitly. The flag is backward-compatible with older nightlies.

  • -Cpanic=unwind on wasm targets now emits modern (exnref) exception handling by default after rust-lang/rust#156061, and requires Node.js 22.22.3+ (for WebAssembly.JSTag). Legacy EH wasm can still be produced on current nightlies by adding -Cllvm-args=-wasm-use-legacy-eh to RUSTFLAGS; Node.js 20 may be supported with legacy exception handling, with a tracking issue in #5151.

Added

  • Implemented TryFromJsValue for Vec<T> where T: TryFromJsValue. A JS value converts when it is a real Array (per Array.isArray) and every element converts via T::try_from_js_value. This composes recursively (Vec<Vec<String>>, Vec<Option<T>>) and works for any T with a TryFromJsValue impl, including primitives, String, JsValue, and JsCast types. Array-likes (objects with length and numeric indices) are intentionally rejected to mirror the static ABI representation used by js_value_vector_from_abi.

  • New extends_js_class and extends_js_namespace attributes on exported structs to allow defining the parent js_class name when it has been customized by js_name and the parent's own js_namespace as well in turn. New validation is added at code generation time that will now catch these cases instead of emitting invalid code. Example:

    #[wasm_bindgen(js_name = "Animal", js_namespace = zoo)]
    pub struct AnimalImpl { /* ... */ }
    #[wasm_bindgen(
    extends = AnimalImpl,
    extends_js_class = "Animal",
    extends_js_namespace = zoo,
    )]
    pub struct DogImpl { /* ... */ }

    #5154

... (truncated)

Changelog

Sourced from wasm-bindgen's changelog.

0.2.122

Notices

  • Threading support now requires -Clink-arg=--export=__heap_base to be set in RUSTFLAGS for nightly toolchains from 2026-05-06 onward, after rust-lang/rust#156174 removed the implicit __heap_base/__data_end exports on wasm* targets. Atomics CI, CLI reference tests, and the nodejs-threads, raytrace-parallel, and wasm-audio-worklet examples have been updated to pass --export=__heap_base explicitly. The flag is backward-compatible with older nightlies.

  • -Cpanic=unwind on wasm targets now emits modern (exnref) exception handling by default after rust-lang/rust#156061, and requires Node.js 22.22.3+ (for WebAssembly.JSTag). Legacy EH wasm can still be produced on current nightlies by adding -Cllvm-args=-wasm-use-legacy-eh to RUSTFLAGS; Node.js 20 may be supported with legacy exception handling, with a tracking issue in #5151.

Added

  • Implemented TryFromJsValue for Vec<T> where T: TryFromJsValue. A JS value converts when it is a real Array (per Array.isArray) and every element converts via T::try_from_js_value. This composes recursively (Vec<Vec<String>>, Vec<Option<T>>) and works for any T with a TryFromJsValue impl, including primitives, String, JsValue, and JsCast types. Array-likes (objects with length and numeric indices) are intentionally rejected to mirror the static ABI representation used by js_value_vector_from_abi.

  • New extends_js_class and extends_js_namespace attributes on exported structs to allow defining the parent js_class name when it has been customized by js_name and the parent's own js_namespace as well in turn. New validation is added at code generation time that will now catch these cases instead of emitting invalid code. Example:

    #[wasm_bindgen(js_name = "Animal", js_namespace = zoo)]
    pub struct AnimalImpl { /* ... */ }
    #[wasm_bindgen(
    extends = AnimalImpl,
    extends_js_class = "Animal",
    extends_js_namespace = zoo,
    )]
    pub struct DogImpl { /* ... */ }

... (truncated)

Commits
  • ddd3225 release: 0.2.122 - schema bump (#5162)
  • a64603e Fix emscripten output: dep graph, HEAP_DATA_VIEW, function declarations (#5156)
  • 2c543af Implement TryFromJsValue for Vec<T> (#5150)
  • fabc617 fix: key WrapInExportedClass/UnwrapExportedClass by qualified_name (renamed-s...
  • 32d8df2 drop codspeed runner (#5161)
  • f5bf1c8 fix: Handle Br and BrIf instructions in the descriptor interpreter (#5158)
  • bbcdb9c fix: route methods to the right class when js_name + js_namespace + js_class ...
  • 8b5d213 Enforce unwind safety on #[wasm_bindgen] exports under panic=unwind (#5128)
  • e4fdb2c ci: pin legacy EH job to nightly-2026-05-12 (#5155)
  • 14b86ad Add --export=__heap_base for threading after rust-lang/rust#156174 (#5152)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Jun 5, 2026
@mkh-user

mkh-user commented Jun 5, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

@mkh-user mkh-user self-assigned this Jun 5, 2026
Bumps [wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen) from 0.2.118 to 0.2.122.
- [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.118...0.2.122)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/cargo/core/wasm-bindgen-0.2.122 branch from 179ca7a to 028a88d Compare June 5, 2026 08:53
@mkh-user mkh-user merged commit e96d58f into main Jun 5, 2026
22 checks passed
@mkh-user mkh-user deleted the dependabot/cargo/core/wasm-bindgen-0.2.122 branch June 5, 2026 09:20
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