-
✨ Features
-
🤕 Fixes
-
Read the
package.jsonwritten by wasm-bindgen 0.2.94+ - tomoyan596, pull/1533Since wasm-bindgen 0.2.94, the
package.jsonit writes for the npm dependencies of JS
snippets has the form{"dependencies": {...}}. wasm-pack expected a flat map of names to
versions, so builds failed withinvalid type: map, expected a string. Both forms are now
read, and the dependencies are merged into the generatedpackage.json. -
Download prebuilt wasm-bindgen for every platform it is published for - guybedford, pull/1619
On Windows ARM64, wasm-bindgen and cargo-generate are now downloaded as their x64 builds,
which run under emulation, instead of being built from source. Linux ARM64 downloads
the static musl build of wasm-bindgen (0.2.104+) and cargo-generate, so they also run on
musl hosts, and Linux RISC-V 64 downloads the prebuilt wasm-bindgen (0.2.127+). -
Drop 32-bit Linux geckodriver support - guybedford, pull/1595
Mozilla discontinued 32-bit (x86) Linux geckodriver builds in v0.37.0, so the
download URL now 404s. The 32-bit Linux target is removed frominstall_geckodriver
and its test is skipped on that platform. -
Use prebuilt wasm-bindgen binary on macOS aarch64 - guybedford, pull/1585
Previously wasm-pack built
wasm-bindgen-clifrom source on Apple Silicon. The
prebuiltaarch64-apple-darwinrelease is now used directly. -
Download prebuilt wasm-opt binary on Windows aarch64/arm64 - gSys1337, pull/1605
wasm-pack now downloads prebuilt
wasm-optbinaries for Windows on AARCH64/ARM64
(arm64-windows) from Binaryen releases instead of failing with an
unrecognized target error. -
Pass
--enable-exception-handlingto wasm-opt for--panic-unwindbuilds - guybedford, pull/1600Previously this relied on Binaryen detecting the feature from the
target_features
custom section, so the optimisation step failed if that section was stripped or an
olderwasm-optonPATHwas used. -
Update Binaryen to v130 - divergentdave, pull/1599
The bundled
wasm-optnow accepts builds with the wide arithmetic target feature enabled. -
Fix tier-3 target handling for wasm64 and bump Binaryen to v129 - guybedford, pull/1586
Building for
wasm64-unknown-unknownno longer fails onrustup target add. wasm-pack
now resolves the target triple the same way cargo does, checks for a nightly toolchain
and installsrust-srcfor tier-3 wasm targets, and leaves+nightlyand-Z build-std
to the project'srust-toolchain.tomland.cargo/config.toml. The bundled Binaryen
is bumped sowasm-optaccepts 64-bit memories and tables. -
Bundle snippets - coval3nte, pull/1584
The generated
package.jsonnow lists thesnippetsdirectory infileswhen it
exists, so wasm-bindgen JS snippets are included in the published package.
-
-
📖 Documentation
-
Document custom profile configuration for wasm-pack - viandoxdev, pull/1558
Documents the
Cargo.tomlwasm-pack configuration for custom profiles used with--profile.
-