From 1f343cbfa7f202964a0d9169a5dce1e3af4ca24a Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Tue, 10 Dec 2024 12:00:42 +0100
Subject: [PATCH] [deps]: Update rust-wasm-bindgen monorepo (#55)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [js-sys](https://rustwasm.github.io/wasm-bindgen/)
([source](https://redirect.github.com/rustwasm/wasm-bindgen/tree/HEAD/crates/js-sys))
| dependencies | patch | `0.3.72` -> `0.3.76` |
| [wasm-bindgen](https://rustwasm.github.io/)
([source](https://redirect.github.com/rustwasm/wasm-bindgen)) |
dependencies | patch | `=0.2.95` -> `=0.2.99` |
| [wasm-bindgen-futures](https://rustwasm.github.io/wasm-bindgen/)
([source](https://redirect.github.com/rustwasm/wasm-bindgen/tree/HEAD/crates/futures))
| dependencies | patch | `0.4.45` -> `0.4.49` |
| [wasm-bindgen-futures](https://rustwasm.github.io/wasm-bindgen/)
([source](https://redirect.github.com/rustwasm/wasm-bindgen/tree/HEAD/crates/futures))
| workspace.dependencies | patch | `0.4.45` -> `0.4.49` |
| [wasm-bindgen-test](https://redirect.github.com/rustwasm/wasm-bindgen)
| dev-dependencies | patch | `0.3.45` -> `0.3.49` |
---
### Release Notes
rustwasm/wasm-bindgen (wasm-bindgen)
###
[`v0.2.99`](https://redirect.github.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0299)
[Compare
Source](https://redirect.github.com/rustwasm/wasm-bindgen/compare/0.2.98...0.2.99)
Released 2024-12-07
##### Fixed
- Mark `wasm-bindgen` v0.2.98 only compatible with `wasm-bindgen-cli` of
the same version.
[#4331](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4331)
***
###
[`v0.2.98`](https://redirect.github.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0298)
[Compare
Source](https://redirect.github.com/rustwasm/wasm-bindgen/compare/0.2.97...0.2.98)
Released 2024-12-07
##### Added
- Add support for multi-threading in Node.js.
[#4318](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4318)
- Add `WASM_BINDGEN_TEST_DRIVER_TIMEOUT` environment variable to control
the timeout to start and connect to the test driver.
[#4320](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4320)
- Add support for number slices of type `MaybeUninit`.
[#4316](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4316)
##### Changed
- Remove `once_cell/critical-section` requirement for `no_std` with
atomics.
[#4322](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4322)
- `static FOO: Option` now returns `None` if undeclared in JS instead
of throwing an error in JS.
[#4319](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4319)
##### Fixed
- Fix macro-hygiene for calls to `std::thread_local!`.
[#4315](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4315)
- Fix feature resolver version 1 compatibility.
[#4327](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4327)
***
###
[`v0.2.97`](https://redirect.github.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0297)
[Compare
Source](https://redirect.github.com/rustwasm/wasm-bindgen/compare/0.2.96...0.2.97)
Released 2024-11-30
##### Fixed
- Fixed `js-sys` and `wasm-bindgen-futures` relying on internal paths of
`wasm-bindgen` that are not crate feature additive.
[#4305](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4305)
***
###
[`v0.2.96`](https://redirect.github.com/rustwasm/wasm-bindgen/blob/HEAD/CHANGELOG.md#0296)
[Compare
Source](https://redirect.github.com/rustwasm/wasm-bindgen/compare/0.2.95...0.2.96)
Released 2024-11-29
##### Added
- Added support for the
[`HTMLOrSVGElement`](https://html.spec.whatwg.org/#htmlorsvgelement)
`mixin`, which is used for all interfaces deriving from `Element`.
[#4143](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4143)
- Added bindings for [MathMLElement](https://www.w3.org/TR/MathML3).
[#4143](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4143)
- Added JSDoc type annotations to C-style enums.
[#4192](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4192)
- Added support for C-style enums with negative discriminants.
[#4204](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4204)
- Added bindings for `MediaStreamTrack.getCapabilities`.
[#4236](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4236)
- Added WASM ABI support for `u128` and `i128`
[#4222](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4222)
- Added support for the `wasm32v1-none` target.
[#4277](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4277)
- Added support for `no_std` to `js-sys`, `web-sys`,
`wasm-bindgen-futures` and `wasm-bindgen-test`.
[#4277](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4277)
- Added support for `no_std` to `link_to!`, `static_string` (via
`thread_local_v2`) and `throw`.
[#4277](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4277)
- Added environment variables to configure tests:
`WASM_BINDGEN_USE_BROWSER`, `WASM_BINDGEN_USE_DEDICATED_WORKER`,
`WASM_BINDGEN_USE_SHARED_WORKER` `WASM_BINDGEN_USE_SERVICE_WORKER`,
`WASM_BINDGEN_USE_DENO` and `WASM_BINDGEN_USE_NODE_EXPERIMENTAL`. The
use of `wasm_bindgen_test_configure!` will overwrite any environment
variable.
[#4295](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4295)
##### Changed
- String enums now generate private TypeScript types but only if used.
[#4174](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4174)
- Remove unnecessary JSDoc type annotations from generated `.d.ts` files
[#4187](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4187)
- Deprecate `autofocus`, `tabIndex`, `focus()` and `blur()` bindings in
favor of bindings on the inherited `Element` class.
[#4143](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4143)
- Optimized ABI performance for `Option<{i32,u32,isize,usize,f32,*const
T,*mut T}>`.
[#4183](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4183)
- Deprecate `--reference-types` in favor of automatic target feature
detection.
[#4237](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4237)
- `wasm-bindgen-test-runner` now tries to restart the WebDriver on
failure, instead of spending its timeout period trying to connect to a
non-existing WebDriver.
[#4267](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4267)
- Deprecated `#[wasm_bindgen(thread_local)]` in favor of
`#[wasm_bindgen(thread_local_v2)]`, which creates a
`wasm_bindgen::JsThreadLocal`. It is similar to `std::thread::LocalKey`
but supports `no_std`.
[#4277](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4277)
- Updated the WebGPU API to the current draft as of 2024-11-22.
[#4290](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4290)
- Improved error messages for `self` arguments in invalid positions.
[#4276](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4276)
##### Fixed
- Fixed methods with `self: &Self` consuming the object.
[#4178](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4178)
- Fixed unused string enums generating JS values.
[#4193](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4193)
- Fixed triggering lints in testing facilities.
[#4195](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4195)
- Fixed `#[should_panic]` not working with
`#[wasm_bindgen_test(unsupported = ...)]`.
[#4196](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4196)
- Fixed potential `null` error when using `JsValue::as_debug_string()`.
[#4192](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4192)
- Fixed generated types when the getter and setter of a property have
different types.
[#4202](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4202)
- Fixed generated types when a static getter/setter has the same name as
an instance getter/setter.
[#4202](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4202)
- Fixed invalid TypeScript return types for multivalue signatures.
[#4210](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4210)
- Only emit `table.fill` instructions if the bulk-memory proposal is
enabled.
[#4237](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4237)
- Fixed calls to `JsCast::instanceof()` not respecting JavaScript
namespaces.
[#4241](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4241)
- Fixed imports for functions using `this` and late binding.
[#4225](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4225)
- Don't expose non-functioning implicit constructors to classes when
none are provided.
[#4282](https://redirect.github.com/rustwasm/wasm-bindgen/pull/4282)
***
---
### Configuration
📅 **Schedule**: Branch creation - "every 2nd week starting on the 2 week
of the year before 4am on Monday" (UTC), Automerge - At any time (no
schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/bitwarden/sdk-internal).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hinton
---
.github/workflows/build-wasm-internal.yml | 2 +-
Cargo.lock | 46 +++++++++++------------
crates/bitwarden-wasm-internal/Cargo.toml | 2 +-
3 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/.github/workflows/build-wasm-internal.yml b/.github/workflows/build-wasm-internal.yml
index 774c49db..abd7def2 100644
--- a/.github/workflows/build-wasm-internal.yml
+++ b/.github/workflows/build-wasm-internal.yml
@@ -63,7 +63,7 @@ jobs:
key: wasm-cargo-cache
- name: Install wasm-bindgen-cli
- run: cargo install wasm-bindgen-cli --version 0.2.95
+ run: cargo install wasm-bindgen-cli --version 0.2.99
- name: Build
run: ./build.sh -r
diff --git a/Cargo.lock b/Cargo.lock
index b9b85e2d..cd49fe15 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2220,10 +2220,11 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
[[package]]
name = "js-sys"
-version = "0.3.72"
+version = "0.3.76"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9"
+checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7"
dependencies = [
+ "once_cell",
"wasm-bindgen",
]
@@ -4393,9 +4394,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasm-bindgen"
-version = "0.2.95"
+version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e"
+checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396"
dependencies = [
"cfg-if",
"once_cell",
@@ -4406,13 +4407,12 @@ dependencies = [
[[package]]
name = "wasm-bindgen-backend"
-version = "0.2.95"
+version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358"
+checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79"
dependencies = [
"bumpalo",
"log",
- "once_cell",
"proc-macro2",
"quote",
"syn",
@@ -4421,21 +4421,22 @@ dependencies = [
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.45"
+version = "0.4.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b"
+checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2"
dependencies = [
"cfg-if",
"js-sys",
+ "once_cell",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.95"
+version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56"
+checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -4443,9 +4444,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.95"
+version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68"
+checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2"
dependencies = [
"proc-macro2",
"quote",
@@ -4456,17 +4457,16 @@ dependencies = [
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.95"
+version = "0.2.99"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d"
+checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6"
[[package]]
name = "wasm-bindgen-test"
-version = "0.3.45"
+version = "0.3.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d381749acb0943d357dcbd8f0b100640679883fcdeeef04def49daf8d33a5426"
+checksum = "c61d44563646eb934577f2772656c7ad5e9c90fac78aa8013d776fcdaf24625d"
dependencies = [
- "console_error_panic_hook",
"js-sys",
"minicov",
"scoped-tls",
@@ -4477,9 +4477,9 @@ dependencies = [
[[package]]
name = "wasm-bindgen-test-macro"
-version = "0.3.45"
+version = "0.3.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c97b2ef2c8d627381e51c071c2ab328eac606d3f69dd82bcbca20a9e389d95f0"
+checksum = "54171416ce73aa0b9c377b51cc3cb542becee1cd678204812e8392e5b0e4a031"
dependencies = [
"proc-macro2",
"quote",
@@ -4488,9 +4488,9 @@ dependencies = [
[[package]]
name = "web-sys"
-version = "0.3.72"
+version = "0.3.76"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112"
+checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -4546,7 +4546,7 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.48.0",
]
[[package]]
diff --git a/crates/bitwarden-wasm-internal/Cargo.toml b/crates/bitwarden-wasm-internal/Cargo.toml
index 9852effb..a3c4f3ec 100644
--- a/crates/bitwarden-wasm-internal/Cargo.toml
+++ b/crates/bitwarden-wasm-internal/Cargo.toml
@@ -26,7 +26,7 @@ js-sys = "0.3.68"
log = "0.4.20"
serde_json = ">=1.0.96, <2.0"
# When upgrading wasm-bindgen, make sure to update the version in the workflows!
-wasm-bindgen = { version = "=0.2.95", features = ["serde-serialize"] }
+wasm-bindgen = { version = "=0.2.99", features = ["serde-serialize"] }
wasm-bindgen-futures = "0.4.41"
[lints]