Skip to content

Comments

Bump wasm-bindgen from 0.2.106 to 0.2.109#42

Merged
shilangyu merged 1 commit intomainfrom
dependabot/cargo/wasm-bindgen-0.2.109
Feb 21, 2026
Merged

Bump wasm-bindgen from 0.2.106 to 0.2.109#42
shilangyu merged 1 commit intomainfrom
dependabot/cargo/wasm-bindgen-0.2.109

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 20, 2026

Bumps wasm-bindgen from 0.2.106 to 0.2.109.

Release notes

Sourced from wasm-bindgen's releases.

0.2.109

Added

  • Added support for erasable generic type parameters on imported JavaScript types, using sound type erasure in JS bindgen boundary. Includes updated js-sys bindings with generic implementations for many standard JS types and functions including Array<T>, Promise<T>, Map<K, V>, Iterator<T>, and more. #4876

  • Added ScopedClosure<'a, T> as a unified closure type with lifetime parameter. ScopedClosure::borrow(&f) (for immutable Fn) and ScopedClosure::borrow_mut(&mut f) (for mutable FnMut) create borrowed closures that can capture non-'static references, ideal for immediate/synchronous JS callbacks. Closure<T> is now a type alias for ScopedClosure<'static, T>, maintaining backwards compatibility. Also added IntoWasmAbi implementation for Closure<T> enabling pass-by-value ownership transfer to JavaScript.

  • Added ImmediateClosure<'a, T> as a lightweight, unwind-safe replacement for &dyn FnMut in immediate/synchronous callbacks. Unlike ScopedClosure, it has no JS call on creation, no JS call on drop, and no GC overhead—the same ABI as &dyn FnMut but with panic safety. Use ImmediateClosure::new(&f) for immutable Fn closures (easier to satisfy unwind safety) or ImmediateClosure::new_mut(&mut f) for mutable FnMut closures. Closure parameter types are automatically inferred from context. Also implements From<&ImmediateClosure<T>> for ScopedClosure<T> for API migration. #4950

  • Implement #[wasm_bindgen(catch)] exception handling directly in Wasm using WebAssembly.JSTag when Wasm exception handling is available. This generates smaller and faster code by avoiding JavaScript handleError wrapper functions. #4942

  • Add Node.js worker_threads support for atomics builds. When targeting Node.js with atomics enabled, wasm-bindgen now generates initSync({ module, memory, thread_stack_size }) and __wbg_get_imports(memory) functions that allow worker threads to initialize with a shared WebAssembly.Memory and pre-compiled module. Auto-initialization occurs only on the main thread for backwards compatibility.

  • Added a panic message when a getter has more than one argument. #4936

  • Added support for WebIDL namespace attributes in wasm-bindgen-webidl. This enables APIs like the CSS Custom Highlight API which adds the highlights attribute to the CSS namespace. #4930

  • Added stable ShowPopoverOptions dictionary and show_popover_with_options() method to HtmlElement, and unstable TogglePopoverOptions dictionary per the WHATWG HTML spec. #4968

  • Added unstable Geolocation API types per the latest W3C spec: GeolocationCoordinates, GeolocationPosition, and GeolocationPositionError. The Geolocation interface now has both stable methods (using the old Position/PositionError types with [Throws]) and unstable methods (using the new types without [Throws]}, matching actual browser behavior). #2578

  • Added matrixTransform() method to DOMPointReadOnly in web-sys. #4962

  • Added the web and node targets to the --experimental-reset-state-function flag. #4909

... (truncated)

Changelog

Sourced from wasm-bindgen's changelog.

0.2.109

Added

  • Added support for erasable generic type parameters on imported JavaScript types, using sound type erasure in JS bindgen boundary. Includes updated js-sys bindings with generic implementations for many standard JS types and functions including Array<T>, Promise<T>, Map<K, V>, Iterator<T>, and more. #4876

  • Added ScopedClosure<'a, T> as a unified closure type with lifetime parameter. ScopedClosure::borrow(&f) (for immutable Fn) and ScopedClosure::borrow_mut(&mut f) (for mutable FnMut) create borrowed closures that can capture non-'static references, ideal for immediate/synchronous JS callbacks. Closure<T> is now a type alias for ScopedClosure<'static, T>, maintaining backwards compatibility. Also added IntoWasmAbi implementation for Closure<T> enabling pass-by-value ownership transfer to JavaScript.

  • Added ImmediateClosure<'a, T> as a lightweight, unwind-safe replacement for &dyn FnMut in immediate/synchronous callbacks. Unlike ScopedClosure, it has no JS call on creation, no JS call on drop, and no GC overhead—the same ABI as &dyn FnMut but with panic safety. Use ImmediateClosure::new(&f) for immutable Fn closures (easier to satisfy unwind safety) or ImmediateClosure::new_mut(&mut f) for mutable FnMut closures. Closure parameter types are automatically inferred from context. Also implements From<&ImmediateClosure<T>> for ScopedClosure<T> for API migration. #4950

  • Implement #[wasm_bindgen(catch)] exception handling directly in Wasm using WebAssembly.JSTag when Wasm exception handling is available. This generates smaller and faster code by avoiding JavaScript handleError wrapper functions. #4942

  • Add Node.js worker_threads support for atomics builds. When targeting Node.js with atomics enabled, wasm-bindgen now generates initSync({ module, memory, thread_stack_size }) and __wbg_get_imports(memory) functions that allow worker threads to initialize with a shared WebAssembly.Memory and pre-compiled module. Auto-initialization occurs only on the main thread for backwards compatibility.

  • Added a panic message when a getter has more than one argument. #4936

  • Added support for WebIDL namespace attributes in wasm-bindgen-webidl. This enables APIs like the CSS Custom Highlight API which adds the highlights attribute to the CSS namespace. #4930

  • Added stable ShowPopoverOptions dictionary and show_popover_with_options() method to HtmlElement, and unstable TogglePopoverOptions dictionary per the WHATWG HTML spec. #4968

  • Added unstable Geolocation API types per the latest W3C spec: GeolocationCoordinates, GeolocationPosition, and GeolocationPositionError. The Geolocation interface now has both stable methods (using the old Position/PositionError types with [Throws]) and unstable methods (using the new types without [Throws]}, matching actual browser behavior). #2578

  • Added matrixTransform() method to DOMPointReadOnly in web-sys. #4962

  • Added the web and node targets to the --experimental-reset-state-function flag. #4909

... (truncated)

Commits
  • 815e98d Release 0.2.109 (#4972)
  • 7182a2e fix(web-sys): improve dictionary union expansion and constructor variants (#4...
  • 79bf846 feat(js-sys): add SharedArrayBuffer.grow() binding (#4971)
  • f4234af fix(web-sys): correct scrollTop/scrollLeft types to f64 per CSSOM View spec (...
  • 7449f45 feat(web-sys): add ShowPopoverOptions and TogglePopoverOptions (#4968)
  • f20c013 Update WebGPU to 2026-02-12 (#4955)
  • 3ebac53 feat(web-sys): add matrixTransform method to DOMPointReadOnly (#4962)
  • 9e9aaab Fix aliased exports (#4947)
  • 138c9b9 Fix incorrect Closure adapter deduplication after wasm-ld ICF (#4954)
  • 464f845 CanvasRenderingContext2d.get_image_data argument is float (#1920)
  • 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.106 to 0.2.109.
- [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.106...0.2.109)

---
updated-dependencies:
- dependency-name: wasm-bindgen
  dependency-version: 0.2.109
  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 Feb 20, 2026
@shilangyu shilangyu merged commit ace6bc0 into main Feb 21, 2026
1 check passed
@dependabot dependabot bot deleted the dependabot/cargo/wasm-bindgen-0.2.109 branch February 21, 2026 09:38
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