Skip to content

Bump ws and @types/ws#767

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-e0a0c3c204
Open

Bump ws and @types/ws#767
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-e0a0c3c204

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Feb 21, 2025

Bumps ws and @types/ws. These dependencies needed to be updated together.
Updates ws from 7.5.8 to 8.18.1

Release notes

Sourced from ws's releases.

8.18.1

Bug fixes

  • The length of the UNIX domain socket paths in the tests has been shortened to make them work when run via CITGM (021f7b8b).

8.18.0

Features

  • Added support for Blob (#2229).

8.17.1

Bug fixes

  • Fixed a DoS vulnerability (#2231).

A request with a number of headers exceeding the[server.maxHeadersCount][] threshold could be used to crash a ws server.

const http = require('http');
const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 0 }, function () {
const chars = "!#$%&'*+-.0123456789abcdefghijklmnopqrstuvwxyz^_`|~".split('');
const headers = {};
let count = 0;
for (let i = 0; i < chars.length; i++) {
if (count === 2000) break;
for (let j = 0; j &lt; chars.length; j++) {
  const key = chars[i] + chars[j];
  headers[key] = 'x';
if (++count === 2000) break;
}

}
headers.Connection = 'Upgrade';
headers.Upgrade = 'websocket';
headers['Sec-WebSocket-Key'] = 'dGhlIHNhbXBsZSBub25jZQ==';
headers['Sec-WebSocket-Version'] = '13';
const request = http.request({
headers: headers,
host: '127.0.0.1',
port: wss.address().port
</tr></table>

... (truncated)

Commits

Updates @types/ws from 8.5.13 to 8.5.14

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

Bumps [ws](https://github.com/websockets/ws) and [@types/ws](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ws). These dependencies needed to be updated together.

Updates `ws` from 7.5.8 to 8.18.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@7.5.8...8.18.1)

Updates `@types/ws` from 8.5.13 to 8.5.14
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ws)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: "@types/ws"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Feb 21, 2025
@dependabot dependabot Bot mentioned this pull request Feb 21, 2025
@github-actions
Copy link
Copy Markdown

Test Results

7 tests   - 5   7 ✅  - 5   3s ⏱️ -4s
1 suites  - 1   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit 997c33f. ± Comparison against base commit 4855d10.

This pull request removes 5 tests.
SessionServer multi user session createSession()[1] + joinSession(-1)[2] + leaveSession()[1] + leaveSession()[2] ‑ SessionServer multi user session createSession()[1] + joinSession(-1)[2] + leaveSession()[1] + leaveSession()[2]
SessionServer multi user session createSession()[1] + joinSession(-1)[2] + updatePlayer()[1] + gracefull leave on both ‑ SessionServer multi user session createSession()[1] + joinSession(-1)[2] + updatePlayer()[1] + gracefull leave on both
SessionServer multi user session createSession()[1] + joinSession(-1)[2] + updateSession()[2] + gracefull leave on both ‑ SessionServer multi user session createSession()[1] + joinSession(-1)[2] + updateSession()[2] + gracefull leave on both
SessionServer multi user session createSession()[1] + joinSession(/DERIVED/)[2] + leaveSession()[1] + leaveSession()[2] ‑ SessionServer multi user session createSession()[1] + joinSession(/DERIVED/)[2] + leaveSession()[1] + leaveSession()[2]
SessionServer multi user session createSession()[1] + updateSession()[1] + joinSession(-1)[2] + gracefull leave on both ‑ SessionServer multi user session createSession()[1] + updateSession()[1] + joinSession(-1)[2] + gracefull leave on both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants