NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #4123 most downloaded on crates.io
Support for threading-related transformations in wasm-bindgen
Latest stable
0.2.100
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 5 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
75 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
7392df8a3990466405e536355de2fab3ca0cc190 Merge pull request #1381 from alexcrichton/bump
7392df8a3990466405e536355de2fab3ca0cc190 Merge pull request #1381 from alexcrichton/bump
6803c619bbda9fefa5448b33d4bea2a8f93e873f Bump to 0.2.40
a8c5fa4a2a808292d9df7ff8940bd801ffc30606 Merge pull request #1385 from alexcrichton/fix-uaf
6c62d54ad990f8829202dcd4a6e9440a0790710f Update crates/cli-support/src/js/closures.rs
407bc5dfbbe948e688badc8557e69213e3c5bfd1 Update crates/cli-support/src/js/closures.rs
1a7b3d56bda102de5f09291237303d3958379190 Merge pull request #1384 from rustwasm/cloudflare-workers
3e814a682475073546e250ac79e43a3aff0d6c46 feat(js): add check to no_modules gen js for cloudflare workers
2ff2e2505ac360c80632e2500f9a973cfa72d4fb Fix use-after-free with closures in JS bindings
b8e9a20d8f9090e2104421f2c06e7209ef8cc627 Merge pull request #1377 from alexcrichton/fix-dupe
c9a972ac55a40ef0fe1e14254584c9b2d097ea0a Merge pull request #1376 from alexcrichton/more-debugging [ #1373 ] <details><summary><b>See more</b></summary>
a4736682d5492e3f1b8d1f68540b2b9ae5495576 Merge pull request #1383 from alexcrichton/deterministic
80899abf84e0ebb45cfcb281ac01111869f918d9 Merge pull request #1378 from alexcrichton/doc-tweaks
a5a600192a2199a516b77ea2d83da67f7dc6f80e Fix a nondeterministic bug in the JS wrapper emitted
629a19b8deb45f24e4db3e395ddcb8a126bb01f6 Bring back accidentally deleted raytrace build script
0e864a4855ec1bff1cbd18ba68b4dbbf58f099b9 Merge pull request #1369 from alexcrichton/targets
995be7c02742c6c4ecc32719a133e65de95e32ca Replace target flags with --target
93cab3d7557df065fd84b992a54e8ec0c9fd60dd Merge pull request #1382 from fitzgen/wasm-pack-web-target
1e98f6b0dd2c41529ffa7c3540165130b3499bb1 Use wasm-pack build --target web for without-a-bundler example
e39b5c1121f28e6c2cfa89530065bb3cb0d4fd24 Clarify some introductory docs
7b6731fd3b4f766b10fa5126d1ca87e96bb3aa9e Move links annotation to wasm-bindgen-shared [ #1373 ]
12355ce81c2786c5db1b58139c37f7df093a4f70 Add some logging useful in debugging #1373
d49d8c9e1b730dc18dd1f9efc2fe8cc470c63f47 Merge pull request #1372 from RReverser/fix-dataview-docs
3f86c9429fea4e65da530f99584abb9ee5f4592f Merge pull request #1371 from RReverser/merge-typed-arrays
4e806bab705cbf7a54b0048fe1f23dfc6c449499 Fix docs for DataView::getint32
c5260f29aab51d1825fbd16e3eafbd935ab24d10 Merge TypedArray definitions into a macro
2177dee9e493ca8a7d077bbc247ee0062377b39c Merge pull request #1353 from alexcrichton/raw-module
ae47665b4d6244474b7c780f2aacc3d8d8413c8a Merge pull request #1356 from c410-f3r/ts-tests
b89fefde298b03d2588a819f5ab7e2620b884c0b Merge pull request #1346 from rustwasm/dependabot/npm_and_yarn/@wasm-tool/wasm-pack-plugin-0.2.7
8cc93749043f5de7f21875ebb4bca19396525caf Merge pull request #1350 from alexlapa/enable-rtc-rtp-transceiver
dc50a5ab582e0d5a59304a5b107852e44caa4bfe Improve TS tests
4e32b5e430d52a3d30d0a0975bb3280e3044794e add read_optional_enum_attribute to webidl-tests/enums
0d592fffb04b361023bbfbfd5bdcc83b30e3777f Add a raw_module attribute to #[wasm_bindgen] [ #1343 ]
9e74085f4b131c248fc27dc545412c87ad6a9095 Merge pull request #1351 from konradsz/number_slices_guide
185c2b66fadf9658b268f64724b48a0ea5bec0d2 Import correct functions
1014bdb5dffc96b9c612b580c9f69f586b7b7c64 Merge remote-tracking branch 'upstream/master' into enable-rtc-rtp-transceiver
e6c42d4155648e438eba0af40caa41d9ca96be6f fix
d5a9208b49f009c41035acc68d66cd86ac1f696e Merge pull request #1344 from c410-f3r/arg-names
bf273a2035c69f609a1a43c578b4d802fd022c30 fix
9178231b60a92e8554e7ef8cb1377067be0ef4c0 impl OptionFromWasmAbi and OptionIntoWasmAbi for ImportEnum, enable RTCRtpTransceiver.webidl, add add rtc_rtp_transceiver_direction test
91ea972c030781a0120085b22d165631b2f50753 Take &str instead of String in argument fn
59c1b2a565c43b28dfa37d1e7b19050ed12e2900 Merge branch 'master' into arg-names
70f537334877f57c06fcf6edd617f6608f3f04f5 Preserve argument names
5403510594c9d0e9fa4e801f6f7620769ddedde1 Update @wasm-tool/wasm-pack-plugin requirement from 0.2.5 to 0.2.7
This list of changes was auto generated.</details>
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Released 2019-03-21.
TypeScript and JS generation will now attempt to preserve argument names in the generated JS where possible. #1344
Enable Option<T> support for enums defined in WebIDL.
#1350
Add a raw_module attribute to #[wasm_bindgen] which is the same as
module except doesn't attempt to recognize ./, ../, or /` prefixed
paths.
#1353
The wasm-bindgen CLI flags have now all been renamed under a --target
flag. Instead of --web you'll now pass --target web, for example. This
increases consistency between the wasm-bindgen and wasm-pack CLI.
#1369
Definitions for TypedArray imports of js-sys have been unified with a
macro to improve consistency and fix future bugs.
#1371
Usage of --no-modules in CloudFlare workers should now work by default.
#1384
A use-after-free when a closure is reinvoked after being destroyed on the Rust die has been fixed. #1385
A bug causing nondeterministic generation of JS bindings has been fixed. #1383
e075d0492d4aaffaf38252fe8188b433edb0cb83 Merge pull request #1342 from alexcrichton/bump
e075d0492d4aaffaf38252fe8188b433edb0cb83 Merge pull request #1342 from alexcrichton/bump
228f58dca394efdc7c9a01599defdb068826cdf9 Bump to 0.2.39
4cda18f777767aad96cfabafdc46d41658801b19 Merge pull request #1338 from alexcrichton/fix-nom
5192b95bf3d03190c26432b0b8358311e23d314b Workaround an upstream nom bug [ eal/nom#843 ]
90c3196b7b435e7d3cd6a568a0b35575ed8d7f05 Merge pull request #1333 from nstoddard/master
c857a9378403c2337c03b1d6abd62c81db0375c8 Merge pull request #1336 from ibaryshnikov/issue-1322-simplify-webgl-example
daad58f9b33e04be0a6e0a9d8472237809a93c38 simplified webgl example
03fa00d201b5b1959d7302358badaffc7d4706d2 Make the slice argument of texImage2D and related functions immutable
8db85ddddebd20fd9b342c794aa49af6476653fa Update a few links here and there with doc restructuring
a7e7f8b5e1c0ae9254f68a9de012288ce261c75e Merge pull request #1328 from alexcrichton/switch-to-web <details><summary><b>See more</b></summary>
e5ec474896882fade1c89ac0e4847c97c0c14cb9 Update crates/cli-support/src/js/mod.rs
7627b8e00ac8cf6f734db2769fe2970039210f5f Merge pull request #1329 from alexcrichton/nightly-header
91e47360d94bae09c473bac21db3b163fd5da169 Update README.md
fcafd03dcdf6e000ebbfc83a0f53071dea9bb29a Update guide/src/contributing/index.md
0b7fab447425a0a30262043cbfe32d7fe488eca9 Merge pull request #1331 from c410-f3r/span-impls
f00c74aeb07305bcbbe2b70088651d5255c802a2 Merge pull request #1330 from Vlad-Shcherbina/mkdir_pkg
ded4fdf52d5539d972c6f625c6f7227cc78dde1e Remove PartialEq and Eq from Function
2a2581188a53c6a8680b0efbcd60e7662d7f551d Create out_dir (usually "pkg") if it does not exist
cd3781cb731a7fd6be972ba69e40c68bac954e60 Switch the --browser argument to --web [ #1318 ]
96f4c8aa6396db41e0c0fa4d3eee3e94fc1b9e9b Add a "nightly only" warning to documentation
79a8c5d27cea8b5757763934add4d8ebef6f7a22 Merge pull request #1325 from rustwasm/dependabot/npm_and_yarn/@wasm-tool/wasm-pack-plugin-0.2.5
e817780172d2b0c7633da5a34fffddd80cfd9bae Update @wasm-tool/wasm-pack-plugin requirement from 0.2.3 to 0.2.5
17bd1969b62de27cb757aebd81f85805a2665733 Merge pull request #1323 from alexcrichton/bump-walrus
795bf7c6b1a09640561ab8e469d943b881649762 Update walrus to 0.5.0
eaaf3461bd88dbeec782395e1e5ae92ae4460dee Merge pull request #1321 from ibaryshnikov/master
fa0a3610af9c040fc6bcca37a7fc6ec0309713b8 issue-1317-typed-array-typo-fixed
e84b327306f16f232294bc2e6bc9df4172c8f531 Fix a dead link in new example [ #1319 ]
9f6c2a612503f99c76c3c2c0446710866f102e9f Merge pull request #1314 from alexcrichton/typescript-tests
20c25ca9225433663db4efb3513bcd1945452c0c Merge pull request #1295 from alexcrichton/js-snippets
d6e37703502b9f028038de59ade197973abef2d0 Scope snippets within a crate
c463cc96df2473920fbe6708c32a987cec535cc4 Clean up the super long finalize function
f3935cc44f29a0d079733b9d89e284c2e9558e57 Enable special env vars for Windows CI on webidl tests
bdf98f3a116f0c8c3e16227e3622b378c694381b Fixup some documentation
f3f3ebee3ae97931c5113025da99ec40e1b44225 Remove unsafe usage in backend/src/encode.rs
93a1301c9f62bfe5a7a42872df119c129ddf60ce Don't explicitly hide _INCLUDED_FILES
95ab24a4e2e594b5de6dd98f0b76767f4c29872b Try to reduce spurious failures on Windows
59e88449b80c27e6eec4effa3743833562215729 Update examples/without-a-bundler/index.html
6c86d238363f8e7d5740b5c4312c4c218be4a1ac Update examples/without-a-bundler-no-modules/README.md
bdcfcb49b1a3c877aad5f20f3652e9591a9b3b6b Log webdriver command we execute
235bc7c889e57f2629b109bffb62351cc63acd49 Start testing TypeScript output on CI [ #922 ]
9063a6b701bec5f3ddc9cf469517b92ffb3b67a6 Get WebIDL tests working
f1e391e3db06c0e1f16e592036a283fd7a2e698d Attempt to debug geckodriver spurious failures on Windows
33494a25ad1eddb1666dce402a4c59491b43aab8 Fix import_js example
20f1e503d312400ed1fb7ddc2d707062502bcb31 Fix the webidl-tests crate
5de318941109e8ea0b08a9e237436da14141cacf Fix js-sys and web-sys tests
7e62aff1ce6d480ca55ef7ff48d5df3ad53b9c85 Fix a case where snippet is specified twice
6283169a3089cb3ba5f27e66c2ae0c258a1158cc Paths are relative to CARGO_MANIFEST_DIR
b762948456617ee263de8e43b3636bd3a4d1da75 Implement the local JS snippets RFC [ #1311 ]
f161717afefd87d1cfea9ce830d055186169a70f Try another github connection for next release
3034523d394a417eb575abc3f72010ebf87a0dda Fix azure pipelines syntax
d8ac6e074b4276270ef8b0502078150ba7039f3d Only publish github release on tags
This list of changes was auto generated.</details>
Released 2018-03-13.
A typo in the return value of slice methods on typed arrays in js-sys was
corrected.
#1321
The directory specified by --out-dir is now created if it doesn't exist
already.
#1330
nom was in a crate graph and was compiled with the
verbose-errors feature has been fixed. Previously the wasm-bindgen-webidl
crate wouldn't compile, and now it will.
#1338Support for Option in #[wasm_bindgen] functions has now been added. #1275
Released 2019-03-04.
Support for Option<RustStruct> in #[wasm_bindgen] functions has now been
added.
#1275
Experimental support for the anyref type proposal in WebAssembly has now
landed and is enabled with WASM_BINDGEN_ANYREF=1.
#1002
Support for the new browser TextEncode#encodeInto API has been added.
#1279
JS doc comments are now added to TypeScript bindings in addition to the JS bindings generated. #1302
Initial support for FnOnce closures has been added to the Closure type.
#1281
Fixed an internal assert tripping when some modules were compiled with LTO. #1274
The Context type in the wasm-bindgen-test crate had its JS name changed to
avoid conflicts with other crates that have a Context type being exported.
#1280
The headless test runner for Safari on macOS High Sierra has been fixed. #1298
wasm-bindgen CLI tool now emits the producers section again with
relevant bugs having been fixed in the meantime. The
--remove-producers-section flag can continue to be used to omit emission of
this section.
#1263The HtmlMediaElement type now exposes a src_object getter. #1248.
Released 2019-02-15.
The HtmlMediaElement type now exposes a src_object getter.
#1248.
The js_sys::Reflect type now has specializes getter/setters for u32 and
f64 indices.
#1225.
A --remove-producers-section flag has been added to the CLI tool to, well,
remove the producers section from the final Wasm file.
#1256.
wasm-bindgen CLI tool will correctly strip DWARF debug information
unless --keep-debug is passed.
#1255.wasm-bindgen CLI tool no longer emits the producers custom section by
default to work around a webpack bug. See
#1260.Fixed a bug where using closures and LTO together caused a panic inside the wasm-bindgen CLI tool. See #1244.
Released 2019-02-12.
wasm-bindgen CLI tool. See
#1244.wasm-bindgen now internally uses the walrus crate to perform its transformations of the Wasm that rustc/LLVM emits. See #1237.
Added support for optional enums. See #1214.
Released 2019-02-11.
enums. See
#1214.UnwrapThrowExt<T> trait, which can enable smaller code sizes for
panics. See #1219.WebGlRenderingContext methods are now whitelisted to use shared slices
instead of exclusive slices. See
#1199.cfg_attr and wasm_bindgen together like #[cfg_attr(..., wasm_bindgen)]. See
1208.wasm-bindgen-test. See
#1233.WebAssembly.instantiateStreaming fails due to incorrect MIME type,
properly recover. See
#1235.Improved the Debug output of JsValue #1161
Added support for Web IDL sequences. This enabled bindings generation for a couple more Web APIs. We generate functions for Web APIs that take sequenc
Released 2019-01-16.
js_sys::Array is returned. See
#1152 and
#1038.wasm-bindgen-test test runner will capture console.debug,
console.info, and console.warn log messages and print them to stdout
now. It already supported console.log and console.error and continues to
support them. See
#1183 and
#1184.--debug-only assertions in the emitted JS glue for cases
where an imported JS function that is not annotated with
#[wasm_bindgen(catch)] throws an exception. This should help catch some bugs
earlier! See #1179.#[wasm_bindgen_test] tests would fail in non-headless Web
browsers if they used console.log. See
#1167.A new spawn_local function has been added to the wasm-bindgen-futures crate. #1148
The wasm-bindgen CLI now has an --out-name argument to name the output module. #1084
Released 2019-01-07.
The wasm-bindgen CLI now has an --out-name argument to name the output
module.
#1084
Support for importing the default export has been added.
#1106
web-sys methods are now flagged as structural, fixing a few bindings.
#1117Add a #[wasm_bindgen(start)] attribute to customize the start section of the Wasm module. #1057
Released 2018-12-04.
Add a #[wasm_bindgen(start)] attribute to customize the start section of
the Wasm module.
#1057
Add support for producing the new "producers" section of Wasm binaries #1041
Add support a typescript_custom_section attribute for producing custom
typescript abstractions
#1048
Generate *.d.ts files for Wasm files in addition to the JS bindings
#1053
Add a feature to assert that all attributes in #[wasm_bindgen] are used to
help catch typos and mistakes
#1055
JS glue generation has received a few small optimizations such as removing shims and removing object allocations #1033 #1030
JS glue now just uses one array of JS objects instead of two #1069
--no-modules generated JS
#1045The js_class support is now supported on exported types to define a different class in JS than is named in Rust #1012
Released 2018-11-12.
The js_class support is now supported on exported types to define a
different class in JS than is named in Rust
#1012
More WebIDL bindings are exposed with some internal restructuring to ignore unimplemented types at a different location #1014
All imported types now implement Deref to their first extends attribute
(or JsValue if one isn't listed). This is intended to greatly improve the
ergonomics of web-sys bindings by allowing easy access to parent class
methods
#1019
A new attribute, final, can be applied to JS imports. This attribute is
relatively nuanced and best explained in documentation, but is
added since structural is now the default
#1019
--remove-name-section, can be passed to remove the wasm
name section which contains the names of functions for debugging (typically
not needed in release mode)
#1024structural by default. This shouldn't change
the semantics of imported functions, only how they're invoked in the JS
function shims that are generated by wasm-bindgen. More discussion can be
founed on RFC 5 and the PR
#1019Typescript generated bindings now correctly reflect Option<T> for more types
#1008
The JS shim code generation has been optimized for structural bindings (now
the default) to include fewer JS shims and more easily optimizable for JS
engines
#1019
Passing a WebAssembly.Module to the --no-modules constructor has been
fixed
#1025
Fixed an internal panic where the gc passes were being too aggressive #995
Released 2018-10-29.
The TypedArray.slice methods have now been bound in js-sys. #956
Released 2018-10-29.
The TypedArray.slice methods have now been bound in js-sys.
#956
The Debug and Clone traits are now implemented for js_sys::Promise.
#957
The js_sys::DataView type now exposes overloads to specify endianness.
#966
When using --no-modules a WebAssembly.Module can now be directly passed
into the instantiation glue.
#969
The JsValue type is no longer considered Send.
#955
The generated JS glue is now more robust in the face of missing APIs. #959
An issue with the latest version of safaridriver used to run headless tests
has been resolved.
#991
One column per quarter.