From b764692d18e66561c7cff2101d642b0f789dae0c Mon Sep 17 00:00:00 2001
From: "dotnet-maestro[bot]"
 <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Date: Fri, 26 Jul 2024 11:43:22 -0700
Subject: [PATCH 1/4] Update dependencies from https://github.com/dotnet/emsdk
 build 20240717.1 (#105055)

Microsoft.SourceBuild.Intermediate.emsdk , Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100
 From Version 8.0.8-servicing.24358.2 -> To Version 8.0.8-servicing.24367.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
---
 NuGet.config            | 4 +---
 eng/Version.Details.xml | 6 +++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/NuGet.config b/NuGet.config
index 12402561282574..0dff023e179ae1 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -9,9 +9,7 @@
     <clear />
     <!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
     <!--  Begin: Package sources from dotnet-emsdk -->
-    <add key="darc-pub-dotnet-emsdk-be13dab" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-be13dabf/nuget/v3/index.json" />
-    <add key="darc-pub-dotnet-emsdk-e92f92e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-e92f92ef/nuget/v3/index.json" />
-    <add key="darc-pub-dotnet-emsdk-abd5b69" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-abd5b69d/nuget/v3/index.json" />
+    <add key="darc-pub-dotnet-emsdk-2674f58" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-2674f580/nuget/v3/index.json" />
     <!--  End: Package sources from dotnet-emsdk -->
     <!--  Begin: Package sources from dotnet-sdk -->
     <!--  End: Package sources from dotnet-sdk -->
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 88568fcfe4f41c..b02016197ce7b9 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -92,11 +92,11 @@
     </Dependency>
     <Dependency Name="Microsoft.NET.Workload.Emscripten.Current.Manifest-8.0.100" Version="8.0.8">
       <Uri>https://github.com/dotnet/emsdk</Uri>
-      <Sha>e92f92efe5854b6fe013787830b59166cb9b4ed9</Sha>
+      <Sha>2674f580a4b1d27322914df8488498065e71a3f2</Sha>
     </Dependency>
-    <Dependency Name="Microsoft.SourceBuild.Intermediate.emsdk" Version="8.0.8-servicing.24358.2">
+    <Dependency Name="Microsoft.SourceBuild.Intermediate.emsdk" Version="8.0.8-servicing.24367.1">
       <Uri>https://github.com/dotnet/emsdk</Uri>
-      <Sha>e92f92efe5854b6fe013787830b59166cb9b4ed9</Sha>
+      <Sha>2674f580a4b1d27322914df8488498065e71a3f2</Sha>
       <SourceBuild RepoName="emsdk" ManagedOnly="true" />
     </Dependency>
     <Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="8.0.0-alpha.1.24257.2">

From d72b1cbd9f476aa9f43539223198794d58c63cff Mon Sep 17 00:00:00 2001
From: vseanreesermsft <78103370+vseanreesermsft@users.noreply.github.com>
Date: Tue, 6 Aug 2024 13:34:19 -0700
Subject: [PATCH 2/4] Update branding to 8.0.9 (#106035)

---
 eng/Versions.props | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eng/Versions.props b/eng/Versions.props
index a3e99e3a19f76d..c8639af14c99a7 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -1,11 +1,11 @@
 <Project>
   <PropertyGroup>
     <!-- The .NET product branding version -->
-    <ProductVersion>8.0.8</ProductVersion>
+    <ProductVersion>8.0.9</ProductVersion>
     <!-- File version numbers -->
     <MajorVersion>8</MajorVersion>
     <MinorVersion>0</MinorVersion>
-    <PatchVersion>8</PatchVersion>
+    <PatchVersion>9</PatchVersion>
     <SdkBandVersion>8.0.100</SdkBandVersion>
     <PackageVersionNet7>7.0.20</PackageVersionNet7>
     <PackageVersionNet6>6.0.$([MSBuild]::Add($(PatchVersion),25))</PackageVersionNet6>

From 79c619d6e809bc2648d6c2bbf37dba3a899ab80a Mon Sep 17 00:00:00 2001
From: Steve Pfister <steveisok@users.noreply.github.com>
Date: Wed, 7 Aug 2024 13:25:10 -0400
Subject: [PATCH 3/4] [release/8.0] Bump additional npm deps and lock file
 format (#106019)

Backport of https://github.com/dotnet/runtime/pull/103639

The https://github.com/dotnet/runtime/pull/104359 PR did not have the package.json and package-lock.json changes in
System.Net.WebSockets.Client and System.Net.Http.Functional.Tests projects.
---
 .../System.Net.Http.Functional.Tests.csproj   |   2 +-
 .../tests/FunctionalTests/package-lock.json   | 199 ++++++++++++------
 .../tests/FunctionalTests/package.json        |   6 +-
 .../System.Net.WebSockets.Client.Tests.csproj |   2 +-
 .../tests/package-lock.json                   |  24 +--
 .../tests/package.json                        |   2 +-
 6 files changed, 147 insertions(+), 88 deletions(-)

diff --git a/src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj b/src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj
index cdbc9bff807bf8..ecb5832af79ca1 100644
--- a/src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj
+++ b/src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj
@@ -35,7 +35,7 @@
     <WasmExtraFilesToDeploy Include="package.json" />
     <WasmExtraFilesToDeploy Include="package-lock.json" />
 
-    <NodeNpmModule Include="ws" Alias="WebSocket" />
+    <NodeNpmModule Include="ws" />
     <NodeNpmModule Include="node-fetch" />
     <NodeNpmModule Include="node-abort-controller" />
 
diff --git a/src/libraries/System.Net.Http/tests/FunctionalTests/package-lock.json b/src/libraries/System.Net.Http/tests/FunctionalTests/package-lock.json
index d16f030e68af62..beb0c20b4b0dbf 100644
--- a/src/libraries/System.Net.Http/tests/FunctionalTests/package-lock.json
+++ b/src/libraries/System.Net.Http/tests/FunctionalTests/package-lock.json
@@ -6,64 +6,118 @@
     "": {
       "name": "system.net.websockets.client.tests",
       "dependencies": {
-        "node-abort-controller": "3.0.1",
-        "node-fetch": "2.6.7",
-        "ws": "8.4.0"
+        "node-abort-controller": "3.1.1",
+        "node-fetch": "3.3.2",
+        "ws": "8.17.1"
       }
     },
-    "node_modules/node-abort-controller": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-3.0.1.tgz",
-      "integrity": "sha512-/ujIVxthRs+7q6hsdjHMaj8hRG9NuWmwrz+JdRwZ14jdFoKSkm+vDsCbF9PLpnSqjaWQJuTmVtcWHNLr+vrOFw=="
+    "node_modules/data-uri-to-buffer": {
+      "version": "4.0.1",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
+      "integrity": "sha1-2P6ysogeak9YwuCKz9Dig04mIi4=",
+      "license": "MIT",
+      "engines": {
+        "node": ">= 12"
+      }
     },
-    "node_modules/node-fetch": {
-      "version": "2.6.7",
-      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
-      "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
+    "node_modules/fetch-blob": {
+      "version": "3.2.0",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/fetch-blob/-/fetch-blob-3.2.0.tgz",
+      "integrity": "sha1-8JuNS71Frcbwwgt+eH55PjCdzOk=",
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/jimmywarting"
+        },
+        {
+          "type": "paypal",
+          "url": "https://paypal.me/jimmywarting"
+        }
+      ],
+      "license": "MIT",
       "dependencies": {
-        "whatwg-url": "^5.0.0"
+        "node-domexception": "^1.0.0",
+        "web-streams-polyfill": "^3.0.3"
       },
       "engines": {
-        "node": "4.x || >=6.0.0"
-      },
-      "peerDependencies": {
-        "encoding": "^0.1.0"
+        "node": "^12.20 || >= 14.13"
+      }
+    },
+    "node_modules/formdata-polyfill": {
+      "version": "4.0.10",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
+      "integrity": "sha1-JIB8McnUAuACqz2McgFEzriEhCM=",
+      "license": "MIT",
+      "dependencies": {
+        "fetch-blob": "^3.1.2"
       },
-      "peerDependenciesMeta": {
-        "encoding": {
-          "optional": true
-        }
+      "engines": {
+        "node": ">=12.20.0"
       }
     },
-    "node_modules/tr46": {
-      "version": "0.0.3",
-      "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
-      "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="
+    "node_modules/node-abort-controller": {
+      "version": "3.1.1",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/node-abort-controller/-/node-abort-controller-3.1.1.tgz",
+      "integrity": "sha1-qUN36WSpo3rDl22EjLXHZYM7hUg=",
+      "license": "MIT"
     },
-    "node_modules/webidl-conversions": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
-      "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE="
+    "node_modules/node-domexception": {
+      "version": "1.0.0",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/node-domexception/-/node-domexception-1.0.0.tgz",
+      "integrity": "sha1-aIjbRqH3HAt2s/dVUBa2P+ZHZuU=",
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/jimmywarting"
+        },
+        {
+          "type": "github",
+          "url": "https://paypal.me/jimmywarting"
+        }
+      ],
+      "license": "MIT",
+      "engines": {
+        "node": ">=10.5.0"
+      }
     },
-    "node_modules/whatwg-url": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
-      "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=",
+    "node_modules/node-fetch": {
+      "version": "3.3.2",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/node-fetch/-/node-fetch-3.3.2.tgz",
+      "integrity": "sha1-0eiJus33M7T/OyskPrehKGagt4s=",
+      "license": "MIT",
       "dependencies": {
-        "tr46": "~0.0.3",
-        "webidl-conversions": "^3.0.0"
+        "data-uri-to-buffer": "^4.0.0",
+        "fetch-blob": "^3.1.4",
+        "formdata-polyfill": "^4.0.10"
+      },
+      "engines": {
+        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/node-fetch"
+      }
+    },
+    "node_modules/web-streams-polyfill": {
+      "version": "3.3.3",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
+      "integrity": "sha1-IHO5Gi/bH7+9QB594KyfghTOy0s=",
+      "license": "MIT",
+      "engines": {
+        "node": ">= 8"
       }
     },
     "node_modules/ws": {
-      "version": "8.4.0",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-8.4.0.tgz",
-      "integrity": "sha512-IHVsKe2pjajSUIl4KYMQOdlyliovpEPquKkqbwswulszzI7r0SfQrxnXdWAEqOlDCLrVSJzo+O1hAwdog2sKSQ==",
+      "version": "8.17.1",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/ws/-/ws-8.17.1.tgz",
+      "integrity": "sha1-kpPaUwu1SP68lTcdkPnIeHJ9kZs=",
+      "license": "MIT",
       "engines": {
         "node": ">=10.0.0"
       },
       "peerDependencies": {
         "bufferutil": "^4.0.1",
-        "utf-8-validate": "^5.0.2"
+        "utf-8-validate": ">=5.0.2"
       },
       "peerDependenciesMeta": {
         "bufferutil": {
@@ -76,43 +130,58 @@
     }
   },
   "dependencies": {
-    "node-abort-controller": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-3.0.1.tgz",
-      "integrity": "sha512-/ujIVxthRs+7q6hsdjHMaj8hRG9NuWmwrz+JdRwZ14jdFoKSkm+vDsCbF9PLpnSqjaWQJuTmVtcWHNLr+vrOFw=="
+    "data-uri-to-buffer": {
+      "version": "4.0.1",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
+      "integrity": "sha1-2P6ysogeak9YwuCKz9Dig04mIi4="
     },
-    "node-fetch": {
-      "version": "2.6.7",
-      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
-      "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
+    "fetch-blob": {
+      "version": "3.2.0",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/fetch-blob/-/fetch-blob-3.2.0.tgz",
+      "integrity": "sha1-8JuNS71Frcbwwgt+eH55PjCdzOk=",
+      "requires": {
+        "node-domexception": "^1.0.0",
+        "web-streams-polyfill": "^3.0.3"
+      }
+    },
+    "formdata-polyfill": {
+      "version": "4.0.10",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
+      "integrity": "sha1-JIB8McnUAuACqz2McgFEzriEhCM=",
       "requires": {
-        "whatwg-url": "^5.0.0"
+        "fetch-blob": "^3.1.2"
       }
     },
-    "tr46": {
-      "version": "0.0.3",
-      "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
-      "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="
+    "node-abort-controller": {
+      "version": "3.1.1",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/node-abort-controller/-/node-abort-controller-3.1.1.tgz",
+      "integrity": "sha1-qUN36WSpo3rDl22EjLXHZYM7hUg="
     },
-    "webidl-conversions": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
-      "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE="
+    "node-domexception": {
+      "version": "1.0.0",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/node-domexception/-/node-domexception-1.0.0.tgz",
+      "integrity": "sha1-aIjbRqH3HAt2s/dVUBa2P+ZHZuU="
     },
-    "whatwg-url": {
-      "version": "5.0.0",
-      "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
-      "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=",
+    "node-fetch": {
+      "version": "3.3.2",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/node-fetch/-/node-fetch-3.3.2.tgz",
+      "integrity": "sha1-0eiJus33M7T/OyskPrehKGagt4s=",
       "requires": {
-        "tr46": "~0.0.3",
-        "webidl-conversions": "^3.0.0"
+        "data-uri-to-buffer": "^4.0.0",
+        "fetch-blob": "^3.1.4",
+        "formdata-polyfill": "^4.0.10"
       }
     },
+    "web-streams-polyfill": {
+      "version": "3.3.3",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
+      "integrity": "sha1-IHO5Gi/bH7+9QB594KyfghTOy0s="
+    },
     "ws": {
-      "version": "8.4.0",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-8.4.0.tgz",
-      "integrity": "sha512-IHVsKe2pjajSUIl4KYMQOdlyliovpEPquKkqbwswulszzI7r0SfQrxnXdWAEqOlDCLrVSJzo+O1hAwdog2sKSQ==",
+      "version": "8.17.1",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/ws/-/ws-8.17.1.tgz",
+      "integrity": "sha1-kpPaUwu1SP68lTcdkPnIeHJ9kZs=",
       "requires": {}
     }
   }
-}
+}
\ No newline at end of file
diff --git a/src/libraries/System.Net.Http/tests/FunctionalTests/package.json b/src/libraries/System.Net.Http/tests/FunctionalTests/package.json
index 8000cdf677f586..edcf8287a8e5d9 100644
--- a/src/libraries/System.Net.Http/tests/FunctionalTests/package.json
+++ b/src/libraries/System.Net.Http/tests/FunctionalTests/package.json
@@ -3,8 +3,8 @@
   "private": true,
   "type": "module",
   "dependencies": {
-    "node-abort-controller": "3.0.1",
-    "node-fetch": "2.6.7",
-    "ws": "8.4.0"
+    "node-abort-controller": "3.1.1",
+    "node-fetch": "3.3.2",
+    "ws": "8.17.1"
   }
 }
diff --git a/src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj b/src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj
index a4f20d03002e16..ab217e8efea8ea 100644
--- a/src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj
+++ b/src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj
@@ -26,7 +26,7 @@
     <WasmExtraFilesToDeploy Include="package.json" />
     <WasmExtraFilesToDeploy Include="package-lock.json" />
 
-    <NodeNpmModule Include="ws" Alias="WebSocket" />
+    <NodeNpmModule Include="ws" />
   </ItemGroup>
 
   <!-- Do not reference these assemblies from the TargetingPack since we are building part of the source code for tests. -->
diff --git a/src/libraries/System.Net.WebSockets.Client/tests/package-lock.json b/src/libraries/System.Net.WebSockets.Client/tests/package-lock.json
index 55a66ba4d40f97..9eefcfbdc85e6b 100644
--- a/src/libraries/System.Net.WebSockets.Client/tests/package-lock.json
+++ b/src/libraries/System.Net.WebSockets.Client/tests/package-lock.json
@@ -1,27 +1,25 @@
 {
   "name": "system.net.websockets.client.tests",
-  "version": "1.0.0",
-  "lockfileVersion": 2,
+  "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "system.net.websockets.client.tests",
-      "version": "1.0.0",
-      "license": "ISC",
       "dependencies": {
-        "ws": "^8.4.0"
+        "ws": "8.17.1"
       }
     },
     "node_modules/ws": {
-      "version": "8.4.0",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-8.4.0.tgz",
-      "integrity": "sha512-IHVsKe2pjajSUIl4KYMQOdlyliovpEPquKkqbwswulszzI7r0SfQrxnXdWAEqOlDCLrVSJzo+O1hAwdog2sKSQ==",
+      "version": "8.17.1",
+      "resolved": "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/ws/-/ws-8.17.1.tgz",
+      "integrity": "sha1-kpPaUwu1SP68lTcdkPnIeHJ9kZs=",
+      "license": "MIT",
       "engines": {
         "node": ">=10.0.0"
       },
       "peerDependencies": {
         "bufferutil": "^4.0.1",
-        "utf-8-validate": "^5.0.2"
+        "utf-8-validate": ">=5.0.2"
       },
       "peerDependenciesMeta": {
         "bufferutil": {
@@ -32,13 +30,5 @@
         }
       }
     }
-  },
-  "dependencies": {
-    "ws": {
-      "version": "8.4.0",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-8.4.0.tgz",
-      "integrity": "sha512-IHVsKe2pjajSUIl4KYMQOdlyliovpEPquKkqbwswulszzI7r0SfQrxnXdWAEqOlDCLrVSJzo+O1hAwdog2sKSQ==",
-      "requires": {}
-    }
   }
 }
diff --git a/src/libraries/System.Net.WebSockets.Client/tests/package.json b/src/libraries/System.Net.WebSockets.Client/tests/package.json
index 8cf4d16f3e5d6b..197dffa9cad4b6 100644
--- a/src/libraries/System.Net.WebSockets.Client/tests/package.json
+++ b/src/libraries/System.Net.WebSockets.Client/tests/package.json
@@ -3,6 +3,6 @@
   "private": true,
   "type": "module",
   "dependencies": {
-    "ws": "8.4.0"
+    "ws": "8.17.1"
   }
 }

From 62f69f1e86f062c3b86f61c2fef3070781e4ff4f Mon Sep 17 00:00:00 2001
From: Parker Bibus <parkerbibus@microsoft.com>
Date: Thu, 8 Aug 2024 14:07:49 -0700
Subject: [PATCH 4/4] Backport https://github.com/dotnet/runtime/pull/100528 to
 release 8.0 to fix Perf runs. (#106049)

---
 eng/pipelines/common/upload-intermediate-artifacts-step.yml | 3 ++-
 eng/pipelines/coreclr/perf-non-wasm-jobs.yml                | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/eng/pipelines/common/upload-intermediate-artifacts-step.yml b/eng/pipelines/common/upload-intermediate-artifacts-step.yml
index da9b1ef0b627fd..b22c60be9e3602 100644
--- a/eng/pipelines/common/upload-intermediate-artifacts-step.yml
+++ b/eng/pipelines/common/upload-intermediate-artifacts-step.yml
@@ -2,6 +2,7 @@ parameters:
   name: ''
   publishPackagesCondition: always()
   publishVSSetupCondition: false
+  isOfficialBuild: true
 
 steps:
 - task: CopyFiles@2
@@ -27,7 +28,7 @@ steps:
 
 - template: /eng/pipelines/common/templates/publish-build-artifacts.yml
   parameters:
-    isOfficialBuild: true
+    isOfficialBuild: ${{ parameters.isOfficialBuild }}
     displayName: Publish intermediate artifacts
     inputs:
       PathtoPublish: '$(Build.StagingDirectory)/IntermediateArtifacts'
diff --git a/eng/pipelines/coreclr/perf-non-wasm-jobs.yml b/eng/pipelines/coreclr/perf-non-wasm-jobs.yml
index 3e28bb7bcae69c..5e8e49304978e1 100644
--- a/eng/pipelines/coreclr/perf-non-wasm-jobs.yml
+++ b/eng/pipelines/coreclr/perf-non-wasm-jobs.yml
@@ -417,6 +417,7 @@ jobs:
           - template: /eng/pipelines/common/upload-intermediate-artifacts-step.yml
             parameters:
               name: MonoRuntimePacks
+              isOfficialBuild: false
 
   # build PerfBDN app
   - template: /eng/pipelines/common/platform-matrix.yml
