Bump socket.io from 4.3.2 to 4.4.0 #242

Merged
dependabot[bot] merged 1 commits from dependabot/npm_and_yarn/socket.io-4.4.0 into main 2021-11-19 12:33:48 +00:00
dependabot[bot] commented 2021-11-19 07:05:53 +00:00 (Migrated from github.com)

Bumps socket.io from 4.3.2 to 4.4.0.

Release notes

Sourced from socket.io's releases.

4.4.0

Bug Fixes

  • only set 'connected' to true after middleware execution (02b0f73)

Features

  • add an implementation based on uWebSockets.js (c0d8c5a)
const { App } = require("uWebSockets.js");
const { Server } = require("socket.io");

const app = new App(); const io = new Server();

io.attachApp(app);

io.on("connection", (socket) => { // ... });

app.listen(3000, (token) => { if (!token) { console.warn("port already in use"); } });

socket.timeout(5000).emit("my-event", (err) => {
  if (err) {
    // the client did not acknowledge the event in the given delay
  }
});
interface SocketData {
  name: string;
  age: number;
}

const io = new Server<ClientToServerEvents, ServerToClientEvents, InterServerEvents, SocketData>();

</tr></table>

... (truncated)

Changelog

Sourced from socket.io's changelog.

4.4.0 (2021-11-18)

Bug Fixes

  • only set 'connected' to true after middleware execution (02b0f73)

Features

  • add an implementation based on uWebSockets.js (c0d8c5a)
  • add timeout feature (f0ed42f)
  • add type information to socket.data (#4159) (fe8730c)
Commits
  • 0f11c47 chore(release): 4.4.0
  • b839a3b fix: prevent double ack when emitting with a timeout
  • f0ed42f feat: add timeout feature
  • b7213e7 test: fix flaky test
  • 2da8210 test: add test for volatile packet with binary
  • 02b0f73 fix: only set 'connected' to true after middleware execution
  • c0d8c5a feat: add an implementation based on uWebSockets.js
  • fe8730c feat: add type information to socket.data (#4159)
  • See full diff in compare view

Dependabot compatibility score

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 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 [socket.io](https://github.com/socketio/socket.io) from 4.3.2 to 4.4.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/socketio/socket.io/releases">socket.io's releases</a>.</em></p> <blockquote> <h2>4.4.0</h2> <h3>Bug Fixes</h3> <ul> <li>only set 'connected' to true after middleware execution (<a href="https://github.com/socketio/socket.io/commit/02b0f73e2c64b09c72c5fbf7dc5f059557bdbe50">02b0f73</a>)</li> </ul> <h3>Features</h3> <ul> <li>add an implementation based on uWebSockets.js (<a href="https://github.com/socketio/socket.io/commit/c0d8c5ab234d0d2bef0d0dec472973cc9662f647">c0d8c5a</a>)</li> </ul> <pre lang="js"><code>const { App } = require(&quot;uWebSockets.js&quot;); const { Server } = require(&quot;socket.io&quot;); <p>const app = new App(); const io = new Server();</p> <p>io.attachApp(app);</p> <p>io.on(&quot;connection&quot;, (socket) =&gt; { // ... });</p> <p>app.listen(3000, (token) =&gt; { if (!token) { console.warn(&quot;port already in use&quot;); } }); </code></pre></p> <ul> <li>add timeout feature (<a href="https://github.com/socketio/socket.io/commit/f0ed42f18cabef20ad976aeec37077b6bf3837a5">f0ed42f</a>)</li> </ul> <pre lang="js"><code>socket.timeout(5000).emit(&quot;my-event&quot;, (err) =&gt; { if (err) { // the client did not acknowledge the event in the given delay } }); </code></pre> <ul> <li>add type information to <code>socket.data</code> (<a href="https://github-redirect.dependabot.com/socketio/socket.io/issues/4159">#4159</a>) (<a href="https://github.com/socketio/socket.io/commit/fe8730ca0f15bc92d5de81cf934c89c76d6af329">fe8730c</a>)</li> </ul> <pre lang="js"><code>interface SocketData { name: string; age: number; } <p>const io = new Server&lt;ClientToServerEvents, ServerToClientEvents, InterServerEvents, SocketData&gt;();</p> <p>&lt;/tr&gt;&lt;/table&gt; </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/socketio/socket.io/blob/master/CHANGELOG.md">socket.io's changelog</a>.</em></p> <blockquote> <h1><a href="https://github.com/socketio/socket.io/compare/4.3.2...4.4.0">4.4.0</a> (2021-11-18)</h1> <h3>Bug Fixes</h3> <ul> <li>only set 'connected' to true after middleware execution (<a href="https://github.com/socketio/socket.io/commit/02b0f73e2c64b09c72c5fbf7dc5f059557bdbe50">02b0f73</a>)</li> </ul> <h3>Features</h3> <ul> <li>add an implementation based on uWebSockets.js (<a href="https://github.com/socketio/socket.io/commit/c0d8c5ab234d0d2bef0d0dec472973cc9662f647">c0d8c5a</a>)</li> <li>add timeout feature (<a href="https://github.com/socketio/socket.io/commit/f0ed42f18cabef20ad976aeec37077b6bf3837a5">f0ed42f</a>)</li> <li>add type information to <code>socket.data</code> (<a href="https://github-redirect.dependabot.com/socketio/socket.io/issues/4159">#4159</a>) (<a href="https://github.com/socketio/socket.io/commit/fe8730ca0f15bc92d5de81cf934c89c76d6af329">fe8730c</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/socketio/socket.io/commit/0f11c4745f3bf4fba0a452a07e5df37427d06117"><code>0f11c47</code></a> chore(release): 4.4.0</li> <li><a href="https://github.com/socketio/socket.io/commit/b839a3b4002b3f2fff4e5dff806623b11c7038e1"><code>b839a3b</code></a> fix: prevent double ack when emitting with a timeout</li> <li><a href="https://github.com/socketio/socket.io/commit/f0ed42f18cabef20ad976aeec37077b6bf3837a5"><code>f0ed42f</code></a> feat: add timeout feature</li> <li><a href="https://github.com/socketio/socket.io/commit/b7213e71e41ef0e1a74a1f438a8ace983a80558c"><code>b7213e7</code></a> test: fix flaky test</li> <li><a href="https://github.com/socketio/socket.io/commit/2da82103d22b69a8684b5831517a89e722bf090b"><code>2da8210</code></a> test: add test for volatile packet with binary</li> <li><a href="https://github.com/socketio/socket.io/commit/02b0f73e2c64b09c72c5fbf7dc5f059557bdbe50"><code>02b0f73</code></a> fix: only set 'connected' to true after middleware execution</li> <li><a href="https://github.com/socketio/socket.io/commit/c0d8c5ab234d0d2bef0d0dec472973cc9662f647"><code>c0d8c5a</code></a> feat: add an implementation based on uWebSockets.js</li> <li><a href="https://github.com/socketio/socket.io/commit/fe8730ca0f15bc92d5de81cf934c89c76d6af329"><code>fe8730c</code></a> feat: add type information to <code>socket.data</code> (<a href="https://github-redirect.dependabot.com/socketio/socket.io/issues/4159">#4159</a>)</li> <li>See full diff in <a href="https://github.com/socketio/socket.io/compare/4.3.2...4.4.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=socket.io&package-manager=npm_and_yarn&previous-version=4.3.2&new-version=4.4.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-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) </details>
This repo is archived. You cannot comment on pull requests.
No Reviewers
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-bds/Maneger#242
No description provided.