wasm-bindgen breaking changes
Updated December 4, 2026
On this page
Latest version 0.2.130, released October 30, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
wasm-bindgen 0.2.130 breaking changes
- Removed
PlainDateTime.toPlainMonthDay
The binding is gone from the unstable Temporal bindings, so code calling it must change. github.com - Removed
PlainDateTime.toPlainYearMonth
The binding is gone from the unstable Temporal bindings, so code calling it must change. github.com - Removed
PlainTime.to_plain_date_time
The binding is gone from the unstable Temporal bindings, so code calling it must change. github.com - Removed
wasm_bindgen::convert::VectorRefIntoWasmAbi::slice_none
wasm_bindgen::convert::VectorRefIntoWasmAbi::slice_none was removed in wasm-bindgen 0.2.130 crates.io - Removed
ZonedDateTime.toPlainMonthDay
The binding is gone from the unstable Temporal bindings, so code calling it must change. github.com - Removed
ZonedDateTime.toPlainYearMonth
The binding is gone from the unstable Temporal bindings, so code calling it must change. github.com - Removed
ZonedDateTime.with_plain_date
The binding is gone from the unstable Temporal bindings, so code calling it must change. github.com - Behavior changed
Invalid values from JS such as NaN, fractions or out-of-range numbers now throw in release builds instead of becoming variant 0 or being truncated. github.com - Behavior changed
Declare the conversion bounds each argument, return or callback needs directly on the import, since a missing bound is now reported at that position. github.com - Behavior changed
Option.<JsValue>.try_from_js_value
Option of JsValue converts JS null to None instead of Some(null), so code matching on Some(null) must change. github.com - Signature changed
js_sys.Promise.catch_map
The handler gets the rejection reason typed as E, so a handler written as taking Foo must take JsValue instead. github.com - Signature changed
JsString.match_
Under js_sys_unstable_apis, JsString::match_ returns Nullable<T> rather than Option<T>, so code matching None must handle Null. github.com - Signature changed
Object.define_property
Under js_sys_unstable_apis the key is now generic; callers passing &"key".into() should pass "key" or another concrete key type. github.com - Signature changed
Object.from_entries
Under js_sys_unstable_apis the key is now generic; callers passing &"key".into() should pass "key" or another concrete key type. github.com - Signature changed
Object.get_own_property_descriptor
Under js_sys_unstable_apis the key is generic and the result is Option<PropertyDescriptor<T>>, so callers must adapt both. github.com - Signature changed
Object.has_own
Under js_sys_unstable_apis the key is now generic; callers passing &"key".into() should pass "key" or another concrete key type. github.com - Signature changed
Object.property_is_enumerable
Under js_sys_unstable_apis the key is now generic; callers passing &"key".into() should pass "key" or another concrete key type. github.com - Signature changed
Reflect.define_property
Under js_sys_unstable_apis the key is now generic; callers passing &"key".into() should pass "key" or another concrete key type. github.com - Signature changed
Reflect.delete_property
Under js_sys_unstable_apis the key is now generic; callers passing &"key".into() should pass "key" or another concrete key type. github.com - Signature changed
Reflect.get
Under js_sys_unstable_apis the key is now generic; callers passing &"key".into() should pass "key" or another concrete key type. github.com - Signature changed
Reflect.get_own_property_descriptor
Under js_sys_unstable_apis the key is generic and the result is Option<PropertyDescriptor<T>>, so callers must adapt both. github.com - Signature changed
Reflect.has
Under js_sys_unstable_apis the key is generic and the target must be an &Object<T>, so callers must adapt both. github.com - Signature changed
Reflect.set
Under js_sys_unstable_apis the key is now generic; callers passing &"key".into() should pass "key" or another concrete key type. github.com - Signature changed
RegExp.exec
Under js_sys_unstable_apis, RegExp::exec returns Nullable<T> rather than Option<T>, so code matching None must handle Null. github.com - Signature changed
wasm_bindgen::convert::JsStringLike
Was trait JsStringLike: IntoWasmAbi + OptionIntoWasmAbi + crate::__rt::marker::JsStringLikeSealed; now trait JsStringLike: IntoWasmAbi + OptionIntoWasmAbi + NullableIntoWasmAbi + crate::convert::VectorRefIntoWasmAbi +... crates.io - Signature changed
wasm_bindgen::convert::VectorRefIntoWasmAbi
Was trait VectorRefIntoWasmAbi; now trait VectorRefIntoWasmAbi: WasmDescribe + Sized + crate::__rt::marker::VectorRefIntoWasmAbiSealed. crates.io - Signature changed
wasm_bindgen::convert::VectorRefIntoWasmAbi::slice_into_abi
Was fn slice_into_abi(slice: &[Self]) -> WasmSlice where Self: Sized; now fn slice_into_abi(slice: &[Self]) -> WasmSlice. crates.io - Signature changed
wasm_bindgen::JsStringLike
Was trait JsStringLike: IntoWasmAbi + OptionIntoWasmAbi + crate::__rt::marker::JsStringLikeSealed; now trait JsStringLike: IntoWasmAbi + OptionIntoWasmAbi + NullableIntoWasmAbi + crate::convert::VectorRefIntoWasmAbi +... crates.io
wasm-bindgen 0.2.129 breaking changes
- Behavior changed
The library's minimum supported Rust version moves from 1.77 to 1.81. Users on older Rust toolchains must upgrade to build it. github.com
wasm-bindgen 0.2.128 breaking changes
- Behavior changed
Export shim symbols are now mangled with a per-crate hash, and the wasm-bindgen and CLI versions must match because the schema changed. github.com - Behavior changed
js_namespace
Code that set js_namespace on both an extern block and an item inside it must write the nested path in a single attribute, such as js_namespace = ["a", "b"]. The block-level namespace was previously dropped silently. github.com - Signature changed
controlTransferOut
WebUSB controlTransferOut now takes immutable u8 slices, so callers must update their arguments. github.com - Signature changed
isochronousTransferOut
WebUSB isochronousTransferOut now takes immutable u8 slices, so callers must update their arguments. github.com - Signature changed
setImmediates
The WebGPU setImmediates APIs now take an immutable u8 slice instead of the previous type, so callers must update their arguments. github.com - Signature changed
transferOut
WebUSB transferOut now takes immutable u8 slices, so callers must update their arguments. github.com - Signature changed
writeValue
Web Bluetooth writeValue now takes immutable u8 slices, so callers must update their arguments. github.com - Signature changed
writeValueWithoutResponse
Web Bluetooth writeValueWithoutResponse now takes immutable u8 slices, so callers must update their arguments. github.com - Signature changed
writeValueWithResponse
Web Bluetooth writeValueWithResponse now takes immutable u8 slices, so callers must update their arguments. github.com
wasm-bindgen 0.2.127 breaking changes
- Renamed
LockManager.request_with_callback
LockManager::request_with_callback is now named request. Code calling the old unstable name must switch to the new one. github.com - Renamed
LockManager.request_with_options_and_callback
LockManager::request_with_options_and_callback is now named request_with_options. Code calling the old unstable name must switch to the new one. github.com - Behavior changed
slice_to_array
slice_to_array on a &mut slice or on a slice with a generic element type is now a compile error. Code using those forms must change to a supported form. github.com - Configuration changed
Emscripten output now marks exports with __export and __force attributes, which requires an emscripten version that supports them. Builds with older emscripten may fail. github.com - Signature changed
GPUDevice.popErrorScope
web-sys now uses JsNullable<T> instead of JsOption<T> for nullable types nested inside generics, such as Promise<GpuError?> from popErrorScope. Code that matched on JsOption for these types must be updated. github.com
wasm-bindgen 0.2.126 breaking changes
- Behavior changed
Emscripten builds now expose clean exports as top-level ESM exports and Module properties, and user module imports are wired differently with __wbg_-prefixed bindings. Code relying on the old emscripten output layout may need updating. github.com
wasm-bindgen 0.2.125 breaking changes
- Removed
wasm_bindgen::closure::__wbindgen_destroy_closure
The internal __wbindgen_destroy_closure export is no longer available in the public Rust API, so code that calls it directly will stop compiling. crates.io
Older versions
6 older versions, each with its first changes. Sign up to see every change
Show 6 older versions
wasm-bindgen 0.2.123 breaking changes
- Removed
js_sys.ArrayTuple
Upcasts from js_sys::Array<T> to js_sys::ArrayTuple<(...)> were removed because a plain JavaScript array does not prove the tuple arity. github.com - Removed
JsOption
The impl<T> UpcastFrom<Null> for JsOption<T> is removed; Undefined still models absence. github.com
And 2 more in this version.
wasm-bindgen 0.2.122 breaking changes
- Behavior changed
Namespaced exports now attach to Module.<segments> instead of top-level export const, and ESM imports go to a sidecar library_bindgen.extern-pre.js that must be passed to emcc via --extern-pre-js. github.com - Behavior changed
With -Cpanic=unwind on wasm targets, modern exnref exception handling is now emitted by default, and it requires Node.js 22.22.3 or later. Legacy EH can be restored with -Cllvm-args=-wasm-use-legacy-eh in RUSTFLAGS. github.com
And 2 more in this version.
wasm-bindgen 0.2.121 breaking changes
- Behavior changed
Generated TypeScript for string enums and dynamic unions uses export type instead of a bare type alias. Code that relied on the bare alias may need to update its imports. github.com - Behavior changed
TryFromJsValue
Non-number JS values no longer coerce to a C-style enum discriminant and now return None. Code that relied on string coercion matching a variant must change. github.com
wasm-bindgen 0.2.120 breaking changes
- Signature changed
wasm_bindgen::closure::__wbindgen_destroy_closure
Was unsafe extern "C" fn __wbindgen_destroy_closure(a: usize, b: usize); now unsafe extern "C" fn __wbindgen_destroy_closure(a: WasmWord, b: WasmWord). crates.io - Signature changed
wasm_bindgen::convert::WasmSlice::len
Was len: u32; now len: WasmWord. crates.io
And 1 more in this version.
wasm-bindgen 0.2.118 breaking changes
- Removed
set_on_reinit
The set_on_reinit() handler is gone; code that registered a reinit callback through it must be changed. github.com - Renamed
handler.reinit
Call handler::schedule_reinit() instead of handler::reinit(), which no longer exists under that name. github.com
And 3 more in this version.
wasm-bindgen 0.2.0 breaking changes
- Removed
wasm_bindgen::convert::DESCRIPTOR_CUSTOM_REF_FLAG
wasm_bindgen::convert::DESCRIPTOR_CUSTOM_REF_FLAG was removed in wasm-bindgen 0.2.0 crates.io - Removed
wasm_bindgen::convert::FromRefMutWasmBoundary::from_js_ref_mut
wasm_bindgen::convert::FromRefMutWasmBoundary::from_js_ref_mut was removed in wasm-bindgen 0.2.0 crates.io
And 12 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.