Skip to content

Commit e6c82f5

Browse files
authored
Prepare v0.2.94 release (#4158)
1 parent b150020 commit e6c82f5

File tree

21 files changed

+72
-70
lines changed

21 files changed

+72
-70
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# `wasm-bindgen` Change Log
22
--------------------------------------------------------------------------------
33

4-
## Unreleased
4+
## [0.2.94](https://github.com/rustwasm/wasm-bindgen/compare/0.2.93...0.2.94)
5+
6+
Released 2024-10-09
57

68
### Added
79

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name = "wasm-bindgen"
1313
readme = "README.md"
1414
repository = "https://github.com/rustwasm/wasm-bindgen"
1515
rust-version = "1.57"
16-
version = "0.2.93"
16+
version = "0.2.94"
1717

1818
[package.metadata.docs.rs]
1919
features = ["serde-serialize"]
@@ -45,7 +45,7 @@ cfg-if = "1.0.0"
4545
once_cell = "1.12"
4646
serde = { version = "1.0", optional = true }
4747
serde_json = { version = "1.0", optional = true }
48-
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.93" }
48+
wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.94" }
4949

5050
[dev-dependencies]
5151
wasm-bindgen-test = { path = 'crates/test' }

crates/backend/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
1111
name = "wasm-bindgen-backend"
1212
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/backend"
1313
rust-version = "1.57"
14-
version = "0.2.93"
14+
version = "0.2.94"
1515

1616
[features]
1717
extra-traits = ["syn/extra-traits"]
@@ -24,4 +24,4 @@ once_cell = "1.12"
2424
proc-macro2 = "1.0"
2525
quote = '1.0'
2626
syn = { version = '2.0', features = ['full'] }
27-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.93" }
27+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.94" }

crates/cli-support/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
1111
name = "wasm-bindgen-cli-support"
1212
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli-support"
1313
rust-version = "1.76"
14-
version = "0.2.93"
14+
version = "0.2.94"
1515

1616
[dependencies]
1717
anyhow = "1.0"
@@ -23,9 +23,9 @@ serde_json = "1.0"
2323
tempfile = "3.0"
2424
unicode-ident = "1.0.5"
2525
walrus = "0.22"
26-
wasm-bindgen-externref-xform = { path = '../externref-xform', version = '=0.2.93' }
27-
wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.93' }
28-
wasm-bindgen-shared = { path = "../shared", version = '=0.2.93' }
29-
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.93' }
30-
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.93' }
31-
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.93' }
26+
wasm-bindgen-externref-xform = { path = '../externref-xform', version = '=0.2.94' }
27+
wasm-bindgen-multi-value-xform = { path = '../multi-value-xform', version = '=0.2.94' }
28+
wasm-bindgen-shared = { path = "../shared", version = '=0.2.94' }
29+
wasm-bindgen-threads-xform = { path = '../threads-xform', version = '=0.2.94' }
30+
wasm-bindgen-wasm-conventions = { path = '../wasm-conventions', version = '=0.2.94' }
31+
wasm-bindgen-wasm-interpreter = { path = "../wasm-interpreter", version = '=0.2.94' }

crates/cli/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ license = "MIT OR Apache-2.0"
1414
name = "wasm-bindgen-cli"
1515
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/cli"
1616
rust-version = "1.76"
17-
version = "0.2.93"
17+
version = "0.2.94"
1818

1919
[package.metadata.binstall]
2020
bin-dir = "wasm-bindgen-{ version }-{ target }/{ bin }{ binary-ext }"
@@ -32,8 +32,8 @@ serde_derive = "1.0"
3232
serde_json = "1.0"
3333
ureq = { version = "2.7", default-features = false, features = ["brotli", "gzip"] }
3434
walrus = { version = "0.22", features = ['parallel'] }
35-
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.93" }
36-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.93" }
35+
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.94" }
36+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.94" }
3737

3838
[dev-dependencies]
3939
assert_cmd = "2"

crates/cli/tests/reference/raw.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,6 @@ export function __wbg_set_wasm(val) {
66
}
77

88

9-
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
10-
11-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
12-
13-
cachedTextDecoder.decode();
14-
15-
let cachedUint8ArrayMemory0 = null;
16-
17-
function getUint8ArrayMemory0() {
18-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
19-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
20-
}
21-
return cachedUint8ArrayMemory0;
22-
}
23-
24-
function getStringFromWasm0(ptr, len) {
25-
ptr = ptr >>> 0;
26-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
27-
}
28-
299
const heap = new Array(128).fill(undefined);
3010

3111
heap.push(undefined, null, true, false);
@@ -45,6 +25,26 @@ function takeObject(idx) {
4525
dropObject(idx);
4626
return ret;
4727
}
28+
29+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
30+
31+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
32+
33+
cachedTextDecoder.decode();
34+
35+
let cachedUint8ArrayMemory0 = null;
36+
37+
function getUint8ArrayMemory0() {
38+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
39+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
40+
}
41+
return cachedUint8ArrayMemory0;
42+
}
43+
44+
function getStringFromWasm0(ptr, len) {
45+
ptr = ptr >>> 0;
46+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
47+
}
4848
/**
4949
* @param {number} test
5050
* @returns {number}
@@ -109,11 +109,11 @@ export function __wbg_test2_39fe629b9aa739cf() {
109109
return addHeapObject(ret);
110110
};
111111

112-
export function __wbindgen_throw(arg0, arg1) {
113-
throw new Error(getStringFromWasm0(arg0, arg1));
114-
};
115-
116112
export function __wbindgen_object_drop_ref(arg0) {
117113
takeObject(arg0);
118114
};
119115

116+
export function __wbindgen_throw(arg0, arg1) {
117+
throw new Error(getStringFromWasm0(arg0, arg1));
118+
};
119+

crates/externref-xform/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ license = "MIT OR Apache-2.0"
1111
name = "wasm-bindgen-externref-xform"
1212
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/externref-xform"
1313
rust-version = "1.76"
14-
version = "0.2.93"
14+
version = "0.2.94"
1515

1616
[dependencies]
1717
anyhow = "1.0"
1818
walrus = "0.22"
19-
wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.93" }
19+
wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.94" }
2020

2121
[dev-dependencies]
2222
rayon = "1.0"

crates/futures/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "wasm-bindgen-futures"
1010
readme = "./README.md"
1111
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures"
1212
rust-version = "1.57"
13-
version = "0.4.43"
13+
version = "0.4.44"
1414

1515
[package.metadata.docs.rs]
1616
all-features = true
@@ -19,8 +19,8 @@ rustdoc-args = ["--cfg", "docsrs"]
1919
[dependencies]
2020
cfg-if = "1.0.0"
2121
futures-core = { version = '0.3.8', default-features = false, optional = true }
22-
js-sys = { path = "../js-sys", version = '0.3.70' }
23-
wasm-bindgen = { path = "../..", version = '0.2.93' }
22+
js-sys = { path = "../js-sys", version = '0.3.71' }
23+
wasm-bindgen = { path = "../..", version = '0.2.94' }
2424

2525
[features]
2626
futures-core-03-stream = ['futures-core']

crates/js-sys/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ name = "js-sys"
1414
readme = "./README.md"
1515
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys"
1616
rust-version = "1.57"
17-
version = "0.3.70"
17+
version = "0.3.71"
1818

1919
[lib]
2020
doctest = false
2121
test = false
2222

2323
[dependencies]
24-
wasm-bindgen = { path = "../..", version = "0.2.93" }
24+
wasm-bindgen = { path = "../..", version = "0.2.94" }
2525

2626
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
2727
wasm-bindgen-futures = { path = '../futures' }

crates/macro-support/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
1111
name = "wasm-bindgen-macro-support"
1212
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro-support"
1313
rust-version = "1.57"
14-
version = "0.2.93"
14+
version = "0.2.94"
1515

1616
[features]
1717
extra-traits = ["syn/extra-traits"]
@@ -22,5 +22,5 @@ strict-macro = []
2222
proc-macro2 = "1.0"
2323
quote = '1.0'
2424
syn = { version = '2.0', features = ['visit', 'full'] }
25-
wasm-bindgen-backend = { path = "../backend", version = "=0.2.93" }
26-
wasm-bindgen-shared = { path = "../shared", version = "=0.2.93" }
25+
wasm-bindgen-backend = { path = "../backend", version = "=0.2.94" }
26+
wasm-bindgen-shared = { path = "../shared", version = "=0.2.94" }

0 commit comments

Comments
 (0)