Skip to content

build(deps): bump wasm-bindgen from 0.2.129 to 0.2.130 in the cargo group - #15

Merged
samjay8 merged 1 commit into
mainfrom
dependabot/cargo/cargo-6e54c74389
Nov 3, 2026
Merged

samjay8 merged 1 commit into
mainfrom
dependabot/cargo/cargo-6e54c74389

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 3, 2026

Copy link
Copy Markdown
Contributor

Bumps the cargo group with 1 update: wasm-bindgen.

Updates wasm-bindgen from 0.2.129 to 0.2.130

Release notes

Sourced from wasm-bindgen's releases.

0.2.130

Added

  • A borrowed number, bool, char or borrowed string crosses by copy, so &f64, &Option<T>, &Nullable<T>, Option<&f64> and Option<&Nullable<T>> are argument types, and an experimental_generic_mono import taking &T accepts T = f64, Option<f64> or Nullable<String>, as std's contains(&T) does. #5436

  • Added a rejection type parameter to js_sys::Promise<T, E = JsValue>, mirrored on JsFuture<T, E>, PromiseState<T, E> and PromiseWithResolvers<T, E>. Awaiting a Promise<T, E> yields Result<T, E>, converting the rejection reason as an E the same unchecked way the fulfilled value is converted as a T. Both parameters are covariant under Upcast; catch, then_with_reject and the withResolvers reject function receive an E; all_tuple / all_settled_tuple carry a shared E through; and under js_sys_unstable_apis, Promise::new, Promise::reject and Promise::any are typed on the rejection too, any as AggregateError. The default keeps existing Promise<T> code unchanged. PromiseWithResolvers<T, E> is invariant in both, since its resolve and reject functions take them, and JsFuture<T, E> is UnwindSafe whenever T and E are. #5426

  • Added the --js-string-builtins CLI flag, importing static_string constants as JS String Builtins string constants from wasm:js/string-constants instead of defining them in the JS glue. With reference types, static_string constants now occupy fixed externref table slots filled in when the module is instantiated, so cloning and dropping them is free and never calls into JS. #5401

  • Added Nullable<T>, re-exported as js_sys::Nullable, for a T | null value at the JS boundary, as Option<T> is for T | undefined, with Option<Nullable<T>> for T | null | undefined. Both are accepted wherever Option<T> is, for every T and in every position: JS null is Nullable::Null and is sent back as null, while undefined into a plain Nullable<T> goes to T's own conversion. A plain Option<T> still reads both undefined and null as None and writes None as undefined; the Option layer of Option<Nullable<T>> treats only undefined as None, since null has to reach the Nullable layer. Option<T> converts from and into Nullable<T>, and JsNullable<T> converts from both and into Option<Nullable<T>> for T: JsGeneric. The API follows Option's, including ok_or, and_then, filter, as_deref, take, replace and IntoIterator, and --cfg wasm_bindgen_unstable_try_trait enables ? on nightly. NullableIntoWasmAbi / NullableFromWasmAbi carry Nullable<T>'s null for every T, and are supertraits of JsStringLike and the js-sys

... (truncated)

Changelog

Sourced from wasm-bindgen's changelog.

0.2.130

Added

  • A borrowed number, bool, char or borrowed string crosses by copy, so &f64, &Option<T>, &Nullable<T>, Option<&f64> and Option<&Nullable<T>> are argument types, and an experimental_generic_mono import taking &T accepts T = f64, Option<f64> or Nullable<String>, as std's contains(&T) does. #5436

  • Added a rejection type parameter to js_sys::Promise<T, E = JsValue>, mirrored on JsFuture<T, E>, PromiseState<T, E> and PromiseWithResolvers<T, E>. Awaiting a Promise<T, E> yields Result<T, E>, converting the rejection reason as an E the same unchecked way the fulfilled value is converted as a T. Both parameters are covariant under Upcast; catch, then_with_reject and the withResolvers reject function receive an E; all_tuple / all_settled_tuple carry a shared E through; and under js_sys_unstable_apis, Promise::new, Promise::reject and Promise::any are typed on the rejection too, any as AggregateError. The default keeps existing Promise<T> code unchanged. PromiseWithResolvers<T, E> is invariant in both, since its resolve and reject functions take them, and JsFuture<T, E> is UnwindSafe whenever T and E are. #5426

  • Added the --js-string-builtins CLI flag, importing static_string constants as JS String Builtins string constants from wasm:js/string-constants instead of defining them in the JS glue. With reference types, static_string constants now occupy fixed externref table slots filled in when the module is instantiated, so cloning and dropping them is free and never calls into JS. #5401

  • Added Nullable<T>, re-exported as js_sys::Nullable, for a T | null value at the JS boundary, as Option<T> is for T | undefined, with Option<Nullable<T>> for T | null | undefined. Both are accepted wherever Option<T> is, for every T and in every position: JS null is Nullable::Null and is sent back as null, while undefined into a plain Nullable<T> goes to T's own conversion. A plain Option<T> still reads both undefined and null as None and writes None as undefined; the Option layer of Option<Nullable<T>> treats only undefined as None, since null has to reach the Nullable layer. Option<T> converts from and into Nullable<T>, and JsNullable<T> converts from both and into Option<Nullable<T>> for T: JsGeneric. The API follows Option's, including ok_or, and_then, filter, as_deref, take, replace and IntoIterator, and --cfg wasm_bindgen_unstable_try_trait enables ? on nightly. NullableIntoWasmAbi / NullableFromWasmAbi carry Nullable<T>'s null

... (truncated)

Commits
  • c93b8ae Release 0.2.130 (#5418)
  • f4f4d33 Rework the js-sys Temporal bindings against the final specification (#5402)
  • 7e9536a Fill in the upcasts between Rust carriers, optional carriers and JS values (#...
  • 50dd6a0 Fix UpcastFrom soundness via lifetime-faithful ErasableGeneric repr (#5178)
  • 5a9fbdf Borrowed scalars and optionals cross by copy, so a mono &T import takes any e...
  • 4bc5371 Check wasm-bindgen-bot auto-merge when do not land is removed (#5430)
  • edc57f8 Loosen the JsGeneric bounds on js-sys Function slots and type-level positions...
  • b2e142f Share one in-flight initialization across concurrent __wbg_init calls (#5429)
  • 1859ca8 Add a rejection type parameter to js_sys::Promise<T, E> (#5426)
  • bc6df41 Remove the strict Option cfg so Option<T> reads null as None again (#5428)
  • 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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the cargo group with 1 update: [wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen).


Updates `wasm-bindgen` from 0.2.129 to 0.2.130
- [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.129...0.2.130)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from samjay8 as a code owner November 3, 2026 23:55
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 3, 2026
@samjay8
samjay8 merged commit eefded6 into main Nov 3, 2026
12 checks passed
@samjay8

samjay8 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Merged — thanks for your contribution! 🎉

@dependabot
dependabot Bot deleted the dependabot/cargo/cargo-6e54c74389 branch November 3, 2026 23:57
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