Repository: rustwasm/wasm-bindgen
Pull request #4158 (2024-10-09 19:18:54)

Prepare v0.2.94 release
Reasonable time frame achieved!


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ce09f93e..7488ff18 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,9 @@
 # `wasm-bindgen` Change Log
 --------------------------------------------------------------------------------
 
-## Unreleased
+## [0.2.94](https://github.com/rustwasm/wasm-bindgen/compare/0.2.93...0.2.94)
+
+Released 2024-10-09
 
 ### Added
 
diff --git a/Cargo.toml b/Cargo.toml
index c5707b56..d38d318e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ name = "wasm-bindgen"
 readme = "README.md"
 repository = "https://github.com/rustwasm/wasm-bindgen"
 rust-version = "1.57"
-version = "0.2.93"
+version = "0.2.94"
 
 [package.metadata.docs.rs]
 features = ["serde-serialize"]
@@ -45,7 +45,7 @@ cfg-if = "1.0.0"
 once_cell = "1.12"
 serde = { version = "1.0", optional = true }
 serde_json = { version = "1.0", optional = true }
-wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.93" }
+wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.94" }
 
 [dev-dependencies]
 wasm-bindgen-test = { path = 'crates/test' }
diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml
index dbc404c1..7eed099b 100644
--- a/crates/backend/Cargo.toml
+++ b/crates/backend/Cargo.toml
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-backend"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
 rust-version = "1.57"
-version = "0.2.93"
+version = "0.2.94"
 
 [features]
 extra-traits = ["syn/extra-traits"]
@@ -24,4 +24,4 @@ once_cell = "1.12"
 proc-macro2 = "1.0"
 quote = '1.0'
 syn = { version = '2.0', features = ['full'] }
-wasm-bindgen-shared = { path = "../shared", version = "=0.2.93" }
+wasm-bindgen-shared = { path = "../shared", version = "=0.2.94" }
diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml
index b7680d17..e0c4b9e1 100644
--- a/crates/cli-support/Cargo.toml
+++ b/crates/cli-support/Cargo.toml
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-cli-support"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support"
 rust-version = "1.76"
-version = "0.2.93"
+version = "0.2.94"
 
 [dependencies]
 anyhow = "1.0"
@@ -23,9 +23,9 @@ serde_json = "1.0"
 tempfile = "3.0"
 unicode-ident = "1.0.5"
 walrus = "0.22"
-wasm-bindgen-externref-xform = { path = '../externref-xform', version = '=0.2.93' }
-wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.93' }
-wasm-bindgen-shared = { path = "../shared", version = '=0.2.93' }
-wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.93' }
-wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.93' }
-wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.93' }
+wasm-bindgen-externref-xform = { path = '../externref-xform', version = '=0.2.94' }
+wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.94' }
+wasm-bindgen-shared = { path = "../shared", version = '=0.2.94' }
+wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.94' }
+wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.94' }
+wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.94' }
diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml
index e51011a7..db87e877 100644
--- a/crates/cli/Cargo.toml
+++ b/crates/cli/Cargo.toml
@@ -14,7 +14,7 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-cli"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli"
 rust-version = "1.76"
-version = "0.2.93"
+version = "0.2.94"
 
 [package.metadata.binstall]
 bin-dir = "wasm-bindgen-{ version }-{ target }/{ bin }{ binary-ext }"
@@ -32,8 +32,8 @@ serde_derive = "1.0"
 serde_json = "1.0"
 ureq = { version = "2.7", default-features = false, features = ["brotli", "gzip"] }
 walrus = { version = "0.22", features = ['parallel'] }
-wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.93" }
-wasm-bindgen-shared = { path = "../shared", version = "=0.2.93" }
+wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.94" }
+wasm-bindgen-shared = { path = "../shared", version = "=0.2.94" }
 
 [dev-dependencies]
 assert_cmd = "2"
diff --git a/crates/externref-xform/Cargo.toml b/crates/externref-xform/Cargo.toml
index 6a3b744d..e9fbaa68 100644
--- a/crates/externref-xform/Cargo.toml
+++ b/crates/externref-xform/Cargo.toml
@@ -11,12 +11,12 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-externref-xform"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/externref-xform"
 rust-version = "1.76"
-version = "0.2.93"
+version = "0.2.94"
 
 [dependencies]
 anyhow = "1.0"
 walrus = "0.22"
-wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.93" }
+wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.94" }
 
 [dev-dependencies]
 rayon = "1.0"
diff --git a/crates/futures/Cargo.toml b/crates/futures/Cargo.toml
index 0899a830..8b21e2b6 100644
--- a/crates/futures/Cargo.toml
+++ b/crates/futures/Cargo.toml
@@ -10,7 +10,7 @@ name = "wasm-bindgen-futures"
 readme = "./README.md"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures"
 rust-version = "1.57"
-version = "0.4.43"
+version = "0.4.44"
 
 [package.metadata.docs.rs]
 all-features = true
@@ -19,8 +19,8 @@ rustdoc-args = ["--cfg", "docsrs"]
 [dependencies]
 cfg-if = "1.0.0"
 futures-core = { version = '0.3.8', default-features = false, optional = true }
-js-sys = { path = "../js-sys", version = '0.3.70' }
-wasm-bindgen = { path = "../..", version = '0.2.93' }
+js-sys = { path = "../js-sys", version = '0.3.71' }
+wasm-bindgen = { path = "../..", version = '0.2.94' }
 
 [features]
 futures-core-03-stream = ['futures-core']
diff --git a/crates/js-sys/Cargo.toml b/crates/js-sys/Cargo.toml
index ff8c6581..bbc4dc5b 100644
--- a/crates/js-sys/Cargo.toml
+++ b/crates/js-sys/Cargo.toml
@@ -14,14 +14,14 @@ name = "js-sys"
 readme = "./README.md"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys"
 rust-version = "1.57"
-version = "0.3.70"
+version = "0.3.71"
 
 [lib]
 doctest = false
 test = false
 
 [dependencies]
-wasm-bindgen = { path = "../..", version = "0.2.93" }
+wasm-bindgen = { path = "../..", version = "0.2.94" }
 
 [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
 wasm-bindgen-futures = { path = '../futures' }
diff --git a/crates/macro-support/Cargo.toml b/crates/macro-support/Cargo.toml
index 26ae4a4c..1756250a 100644
--- a/crates/macro-support/Cargo.toml
+++ b/crates/macro-support/Cargo.toml
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-macro-support"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support"
 rust-version = "1.57"
-version = "0.2.93"
+version = "0.2.94"
 
 [features]
 extra-traits = ["syn/extra-traits"]
@@ -22,5 +22,5 @@ strict-macro = []
 proc-macro2 = "1.0"
 quote = '1.0'
 syn = { version = '2.0', features = ['visit', 'full'] }
-wasm-bindgen-backend = { path = "../backend", version = "=0.2.93" }
-wasm-bindgen-shared = { path = "../shared", version = "=0.2.93" }
+wasm-bindgen-backend = { path = "../backend", version = "=0.2.94" }
+wasm-bindgen-shared = { path = "../shared", version = "=0.2.94" }
diff --git a/crates/macro/Cargo.toml b/crates/macro/Cargo.toml
index eb5bd214..ad63bd3e 100644
--- a/crates/macro/Cargo.toml
+++ b/crates/macro/Cargo.toml
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-macro"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro"
 rust-version = "1.57"
-version = "0.2.93"
+version = "0.2.94"
 
 [lib]
 proc-macro = true
@@ -23,7 +23,7 @@ xxx_debug_only_print_generated_code = []
 
 [dependencies]
 quote = "1.0"
-wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.93" }
+wasm-bindgen-macro-support = { path = "../macro-support", version = "=0.2.94" }
 
 [dev-dependencies]
 js-sys = { path = "../js-sys" }
diff --git a/crates/multi-value-xform/Cargo.toml b/crates/multi-value-xform/Cargo.toml
index 450ca40a..5f22f5fe 100644
--- a/crates/multi-value-xform/Cargo.toml
+++ b/crates/multi-value-xform/Cargo.toml
@@ -11,12 +11,12 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-multi-value-xform"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/multi-value-xform"
 rust-version = "1.76"
-version = "0.2.93"
+version = "0.2.94"
 
 [dependencies]
 anyhow = "1.0"
 walrus = "0.22"
-wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.93" }
+wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.94" }
 
 [dev-dependencies]
 rayon = "1.0"
diff --git a/crates/shared/Cargo.toml b/crates/shared/Cargo.toml
index 46672e2d..abf1a410 100644
--- a/crates/shared/Cargo.toml
+++ b/crates/shared/Cargo.toml
@@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-shared"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/shared"
 rust-version = "1.57"
-version = "0.2.93"
+version = "0.2.94"
 
 # Because only a single `wasm_bindgen` version can be used in a dependency
 # graph, pretend we link a native library so that `cargo` will provide better
diff --git a/crates/shared/src/lib.rs b/crates/shared/src/lib.rs
index aa3964ec..5bb6a51d 100644
--- a/crates/shared/src/lib.rs
+++ b/crates/shared/src/lib.rs
@@ -6,7 +6,7 @@ mod schema_hash_approval;
 // This gets changed whenever our schema changes.
 // At this time versions of wasm-bindgen and wasm-bindgen-cli are required to have the exact same
 // SCHEMA_VERSION in order to work together.
-pub const SCHEMA_VERSION: &str = "0.2.93";
+pub const SCHEMA_VERSION: &str = "0.2.94";
 
 #[macro_export]
 macro_rules! shared_api {
diff --git a/crates/shared/src/schema_hash_approval.rs b/crates/shared/src/schema_hash_approval.rs
index ad4af57a..bc796aed 100644
--- a/crates/shared/src/schema_hash_approval.rs
+++ b/crates/shared/src/schema_hash_approval.rs
@@ -8,7 +8,7 @@
 // If the schema in this library has changed then:
 //  1. Bump the version in `crates/shared/Cargo.toml`
 //  2. Change the `SCHEMA_VERSION` in this library to this new Cargo.toml version
-const APPROVED_SCHEMA_FILE_HASH: &str = "9179028021460341559";
+const APPROVED_SCHEMA_FILE_HASH: &str = "950257602071279980";
 
 #[test]
 fn schema_version() {
diff --git a/crates/threads-xform/Cargo.toml b/crates/threads-xform/Cargo.toml
index 54ae6e9f..03f8be5f 100644
--- a/crates/threads-xform/Cargo.toml
+++ b/crates/threads-xform/Cargo.toml
@@ -11,12 +11,12 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-threads-xform"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/threads-xform"
 rust-version = "1.76"
-version = "0.2.93"
+version = "0.2.94"
 
 [dependencies]
 anyhow = "1.0"
 walrus = "0.22"
-wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.93" }
+wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.94" }
 
 [dev-dependencies]
 rayon = "1.0"
diff --git a/crates/wasm-conventions/Cargo.toml b/crates/wasm-conventions/Cargo.toml
index 5d1ae31b..74e3026b 100644
--- a/crates/wasm-conventions/Cargo.toml
+++ b/crates/wasm-conventions/Cargo.toml
@@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-wasm-conventions"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/wasm-conventions"
 rust-version = "1.76"
-version = "0.2.93"
+version = "0.2.94"
 
 [dependencies]
 leb128 = "0.2"
diff --git a/crates/wasm-interpreter/Cargo.toml b/crates/wasm-interpreter/Cargo.toml
index 25f34d53..43b5f17e 100644
--- a/crates/wasm-interpreter/Cargo.toml
+++ b/crates/wasm-interpreter/Cargo.toml
@@ -11,13 +11,13 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-wasm-interpreter"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/main/crates/wasm-interpreter"
 rust-version = "1.76"
-version = "0.2.93"
+version = "0.2.94"
 
 [dependencies]
 anyhow = "1.0"
 log = "0.4"
 walrus = "0.22"
-wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "0.2.93" }
+wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "0.2.94" }
 
 [dev-dependencies]
 tempfile = "3"
diff --git a/crates/web-sys/Cargo.toml b/crates/web-sys/Cargo.toml
index 0dd64d2c..489d070e 100644
--- a/crates/web-sys/Cargo.toml
+++ b/crates/web-sys/Cargo.toml
@@ -12,7 +12,7 @@ name = "web-sys"
 readme = "./README.md"
 repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/web-sys"
 rust-version = "1.57"
-version = "0.3.70"
+version = "0.3.71"
 
 [package.metadata.docs.rs]
 all-features = true
@@ -23,8 +23,8 @@ doctest = false
 test = false
 
 [dependencies]
-js-sys = { path = '../js-sys', version = '0.3.70' }
-wasm-bindgen = { path = "../..", version = "0.2.93" }
+js-sys = { path = '../js-sys', version = '0.3.71' }
+wasm-bindgen = { path = "../..", version = "0.2.94" }
 
 [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
 futures = "0.3"


Test patch:
diff --git a/crates/cli/tests/reference/raw.js b/crates/cli/tests/reference/raw.js
index 6c6e3606..02dcddad 100644
--- a/crates/cli/tests/reference/raw.js
+++ b/crates/cli/tests/reference/raw.js
@@ -6,26 +6,6 @@ export function __wbg_set_wasm(val) {
 }
 
 
-const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
-
-let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
-
-cachedTextDecoder.decode();
-
-let cachedUint8ArrayMemory0 = null;
-
-function getUint8ArrayMemory0() {
-    if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
-        cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
-    }
-    return cachedUint8ArrayMemory0;
-}
-
-function getStringFromWasm0(ptr, len) {
-    ptr = ptr >>> 0;
-    return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
-}
-
 const heap = new Array(128).fill(undefined);
 
 heap.push(undefined, null, true, false);
@@ -45,6 +25,26 @@ function takeObject(idx) {
     dropObject(idx);
     return ret;
 }
+
+const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
+
+let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
+
+cachedTextDecoder.decode();
+
+let cachedUint8ArrayMemory0 = null;
+
+function getUint8ArrayMemory0() {
+    if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
+        cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
+    }
+    return cachedUint8ArrayMemory0;
+}
+
+function getStringFromWasm0(ptr, len) {
+    ptr = ptr >>> 0;
+    return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
+}
 /**
  * @param {number} test
  * @returns {number}
@@ -109,11 +109,11 @@ export function __wbg_test2_39fe629b9aa739cf() {
     return addHeapObject(ret);
 };
 
-export function __wbindgen_throw(arg0, arg1) {
-    throw new Error(getStringFromWasm0(arg0, arg1));
-};
-
 export function __wbindgen_object_drop_ref(arg0) {
     takeObject(arg0);
 };
 
+export function __wbindgen_throw(arg0, arg1) {
+    throw new Error(getStringFromWasm0(arg0, arg1));
+};
+
diff --git a/crates/test-macro/Cargo.toml b/crates/test-macro/Cargo.toml
index c5f7c61e..b6b3c058 100644
--- a/crates/test-macro/Cargo.toml
+++ b/crates/test-macro/Cargo.toml
@@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-test-macro"
 repository = "https://github.com/rustwasm/wasm-bindgen"
 rust-version = "1.57"
-version = "0.3.43"
+version = "0.3.44"
 
 [lib]
 proc-macro = true
diff --git a/crates/test/Cargo.toml b/crates/test/Cargo.toml
index 33e987b0..7e367a88 100644
--- a/crates/test/Cargo.toml
+++ b/crates/test/Cargo.toml
@@ -7,16 +7,16 @@ license = "MIT OR Apache-2.0"
 name = "wasm-bindgen-test"
 repository = "https://github.com/rustwasm/wasm-bindgen"
 rust-version = "1.57"
-version = "0.3.43"
+version = "0.3.44"
 
 [dependencies]
 console_error_panic_hook = '0.1'
 gg-alloc = { version = "1.0", optional = true }
-js-sys = { path = '../js-sys', version = '0.3.70' }
+js-sys = { path = '../js-sys', version = '0.3.71' }
 scoped-tls = "1.0"
-wasm-bindgen = { path = '../..', version = '0.2.93' }
-wasm-bindgen-futures = { path = '../futures', version = '0.4.43' }
-wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.43' }
+wasm-bindgen = { path = '../..', version = '0.2.94' }
+wasm-bindgen-futures = { path = '../futures', version = '0.4.44' }
+wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.44' }
 
 [target.'cfg(all(target_arch = "wasm32", wasm_bindgen_unstable_test_coverage))'.dependencies]
 minicov = "0.3"