Skip to content

Commit b45c30f

Browse files
Merge #466
466: Bump ws from 7.4.2 to 7.5.3 r=bidoubiwa a=dependabot[bot] Bumps [ws](https://github.com/websockets/ws) from 7.4.2 to 7.5.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/websockets/ws/releases">ws's releases</a>.</em></p> <blockquote> <h2>7.5.3</h2> <h1>Bug fixes</h1> <ul> <li>The <code>WebSocketServer</code> constructor now throws an error if more than one of the <code>noServer</code>, <code>server</code>, and <code>port</code> options are specefied (66e58d27).</li> <li>Fixed a bug where a <code>'close'</code> event was emitted by a <code>WebSocketServer</code> before the internal HTTP/S server was actually closed (5a587304).</li> <li>Fixed a bug that allowed WebSocket connections to be established after <code>WebSocketServer.prototype.close()</code> was called (772236a1).</li> </ul> <h2>7.5.2</h2> <h1>Bug fixes</h1> <ul> <li>The opening handshake is now aborted if the client receives a <code>Sec-WebSocket-Extensions</code> header but no extension was requested or if the server indicates an extension not requested by the client (aca94c86).</li> </ul> <h2>7.5.1</h2> <h1>Bug fixes</h1> <ul> <li>Fixed an issue that prevented the connection from being closed properly if an error occurred simultaneously on both peers (b434b9f1).</li> </ul> <h2>7.5.0</h2> <h1>Features</h1> <ul> <li>Some errors now have a <code>code</code> property describing the specific type of error that has occurred (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1901">#1901</a>).</li> </ul> <h1>Bug fixes</h1> <ul> <li>A close frame is now sent to the remote peer if an error (such as a data framing error) occurs (8806aa9a).</li> <li>The close code is now always 1006 if no close frame is received, even if the connection is closed due to an error (8806aa9a).</li> </ul> <h2>7.4.6</h2> <h1>Bug fixes</h1> <ul> <li>Fixed a ReDoS vulnerability (00c425ec).</li> </ul> <p>A specially crafted value of the <code>Sec-Websocket-Protocol</code> header could be used to significantly slow down a ws server.</p> <pre lang="js"><code>for (const length of [1000, 2000, 4000, 8000, 16000, 32000]) { const value = 'b' + ' '.repeat(length) + 'x'; const start = process.hrtime.bigint(); <p>value.trim().split(/ *, */); &lt;/tr&gt;&lt;/table&gt; </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/websockets/ws/commit/4c1849a61e773fe0ce016f6eb59bc3877f09aeee"><code>4c1849a</code></a> [dist] 7.5.3</li> <li><a href="https://github.com/websockets/ws/commit/772236a13ff2bd28291c911b7c25fbfe99580ed1"><code>772236a</code></a> [fix] Abort the handshake if the server is closing or closed</li> <li><a href="https://github.com/websockets/ws/commit/5a5873048005cf5d25a2186fb9dc6db2a85096b0"><code>5a58730</code></a> [fix] Emit the <code>'close'</code> event after the server is closed</li> <li><a href="https://github.com/websockets/ws/commit/ea63b29e81f95f7c5d38079487952b2eae94391e"><code>ea63b29</code></a> [minor] Fix typo</li> <li><a href="https://github.com/websockets/ws/commit/66e58d279ffabe5108424c08ab71403aceddcad9"><code>66e58d2</code></a> [fix] Make the <code>{noS,s}erver</code>, and <code>port</code> options mutually exclusive</li> <li><a href="https://github.com/websockets/ws/commit/ecb9d9ea8f126416f2c07a2a8485b1d1e4ab3989"><code>ecb9d9e</code></a> [minor] Improve JSDoc-inferred types (<a href="https://github-redirect.dependabot.com/websockets/ws/issues/1912">#1912</a>)</li> <li><a href="https://github.com/websockets/ws/commit/0ad1f9d6a48ed1b30bda09b958cb142c1e09cced"><code>0ad1f9d</code></a> [dist] 7.5.2</li> <li><a href="https://github.com/websockets/ws/commit/aca94c86e000675900b09729559e405f9207d154"><code>aca94c8</code></a> [fix] Abort the handshake if an unexpected extension is received</li> <li><a href="https://github.com/websockets/ws/commit/38c6c734daf8e15d5cd902ed3e47b8651fd1032c"><code>38c6c73</code></a> [dist] 7.5.1</li> <li><a href="https://github.com/websockets/ws/commit/2916006477bd50d5a7513640fcb610f7fd0dddda"><code>2916006</code></a> [test] Add more tests for <code>WebSocket.prototype.close()</code></li> <li>Additional commits viewable in <a href="https://github.com/websockets/ws/compare/7.4.2...7.5.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ws&package-manager=npm_and_yarn&previous-version=7.4.2&new-version=7.5.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/meilisearch/instant-meilisearch/network/alerts). </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 parents e062b9a + 298c2e3 commit b45c30f

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

yarn.lock

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7874,15 +7874,10 @@ write-file-atomic@^3.0.0:
78747874
signal-exit "^3.0.2"
78757875
typedarray-to-buffer "^3.1.5"
78767876

7877-
ws@^7.0.0:
7878-
version "7.4.3"
7879-
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.3.tgz#1f9643de34a543b8edb124bdcbc457ae55a6e5cd"
7880-
integrity sha512-hr6vCR76GsossIRsr8OLR9acVVm1jyfEWvhbNjtgPOrfvAlKzvyeg/P6r8RuDjRyrcQoPQT7K0DGEPc7Ae6jzA==
7881-
7882-
ws@^7.2.3:
7883-
version "7.4.2"
7884-
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.2.tgz#782100048e54eb36fe9843363ab1c68672b261dd"
7885-
integrity sha512-T4tewALS3+qsrpGI/8dqNMLIVdq/g/85U98HPMa6F0m6xTbvhXU6RCQLqPH3+SlomNV/LdY6RXEbBpMH6EOJnA==
7877+
ws@^7.0.0, ws@^7.2.3:
7878+
version "7.5.3"
7879+
resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.3.tgz#160835b63c7d97bfab418fc1b8a9fced2ac01a74"
7880+
integrity sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==
78867881

78877882
xml-name-validator@^3.0.0:
78887883
version "3.0.0"

0 commit comments

Comments
 (0)