0.2.107
Added
-
Support catching panics, and raising JS Exceptions for them, when building
with panic=unwind on nightly, with thestdfeature.
#4790 -
Added support for passing
&[JsValue]slices from Rust to JavaScript functions.
#4872 -
Added
privateattribute on exported types to allow generating
exports and structs as implicit internal exported types for function
arguments and returns, without exporting them on the public interface.
#4788 -
Added
iter_customanditer_custom_futurefor bench to do custom measurements.
#4841 -
Added Window Management API.
#4843
Changed
-
Changed WASM import namespace from
wbgto./{name}_bg.jsforwebandno-modulestargets,
aligning withbundlerandexperimental-nodejs-moduleto enable cross-target WASM sharing.
#4850 -
Replace
WASM_BINDGEN_UNSTABLE_TEST_PROFRAW_OUTandWASM_BINDGEN_UNSTABLE_TEST_PROFRAW_PREFIXwith parsingLLVM_PROFILE_FILEanalogous to Rust test coverage.
#4367 -
Typescript custom sections sorted alphabetically across codegen-units.
#4738 -
Optimized demangling performance by removing redundant string formatting
#4867 -
Changed WASM import namespace from
__wbindgen_placeholder__to./{name}_bg.jsfornodetargets, aligning withbundlerandexperimental-nodejs-moduleto enable cross-target WASM sharing.
#4869 -
Changed WASM import namespace from
__wbindgen_placeholder__to./{name}_bg.jsfordenoandmoduletargets, aligning withnode,bundlerandexperimental-nodejs-moduleto enable cross-target WASM sharing.
#4871 -
Consolidate JavaScript glue generation
Move target-specific JS emission into a single finalize phase, reducing
branching and making the generated output more consistent across targets.- Centralize JS output assembly in a single finalize phase (exports/imports/wasm loading).
- Make
--target experimental-nodejs-moduleemit one JS entrypoint (no separate_bg.js). - Ensure Node (CJS/ESM) and bundler entrypoints only expose public exports (no internal import shims).
- Add
/* @ts-self-types="./<name>.d.ts" */to JS entrypoints for JSR/Deno resolution. - Refresh reference test fixtures.
#4879
-
Forward worker errors to test output in the test runner.
#4855