V0l-D / Discord-Netflix

A updated and improved version from the original Discord-Netflix from Nirewen.
https://discord.gg/kbf8EjpxbU
GNU General Public License v3.0
55 stars 10 forks source link

[Snyk] Upgrade socket.io-client from 4.4.1 to 4.5.1 #41

Closed V0l-D closed 2 years ago

V0l-D commented 2 years ago

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade socket.io-client from 4.4.1 to 4.5.1.

![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=socket.io-client&from_version=4.4.1&to_version=4.5.1&pr_id=f5f7b5b2-9e63-4deb-963f-60a715ec91c5&visibility=true&has_feature_flag=false) :information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **2 versions** ahead of your current version. - The recommended version was released **21 days ago**, on 2022-05-17.
Release notes
Package name: socket.io-client
  • 4.5.1 - 2022-05-17

    There were some minor bug fixes on the server side, which mandate a client bump.

    Links:

    Size of the bundles:

    min min+gzip
    socket.io.min.js 42.6 KB (-) 13.6 KB (-)
    socket.io.msgpack.min.js 47.7 KB (-) 14.6 KB (-)
    socket.io.esm.min.js 34.5 KB (-) 11.5 KB (-)
      </li>
      <li>
        <b>4.5.0</b> - <a href="https://snyk.io/redirect/github/socketio/socket.io-client/releases/tag/4.5.0">2022-04-23</a></br><h3>Features</h3>
    • add details to the disconnect event (b862924)

    The "disconnect" event will now include additional details to help debugging if anything has gone wrong.

    Example when a payload is over the maxHttpBufferSize value in HTTP long-polling mode:

    <div class="highlight highlight-source-js notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="socket.on("disconnect", (reason, details) => { console.log(reason); // "transport error"

    // in that case, details is an error object console.log(details.message); "xhr post error" console.log(details.description); // 413 (the HTTP status of the response)

    // details.context refers to the XMLHttpRequest object console.log(details.context.status); // 413 console.log(details.context.responseText); // "" });">

    socket.on("disconnect", (reason, details) => {
    console.log(reason); // "transport error"

    // in that case, details is an error object console.log(details.message); "xhr post error" console.log(details.description); // 413 (the HTTP status of the response)

    // details.context refers to the XMLHttpRequest object console.log(details.context.status); // 413 console.log(details.context.responseText); // "" });

This is similar to onAny(), but for outgoing packets.

Syntax:

socket.onAnyOutgoing((event, ...args) => {
console.log(event);
});

The server will now include a "maxPayload" field in the handshake details, allowing the clients to decide how many packets they have to send to stay under the maxHttpBufferSize value.

Links:

Size of the bundles:

min min+gzip
socket.io.min.js 42.6 KB (+ 2.2 KB ⬆️) 13.6 KB (+ 0.5 KB ⬆️)
socket.io.msgpack.min.js 47.7 KB (+ 2.1 KB ⬆️) 14.6 KB (+ 0.4 KB ⬆️)
socket.io.esm.min.js 34.5 KB (+ 1.4 KB ⬆️) 11.5 KB (+ 0.2 KB ⬆️)
  </li>
  <li>
    <b>4.4.1</b> - <a href="https://snyk.io/redirect/github/socketio/socket.io-client/releases/tag/4.4.1">2022-01-06</a></br><p>This release only contains minor changes. Please see the diff for more details.</p>

Links:

Size of the bundles:

min min+gzip
socket.io.min.js 40.4 KB (-) 13.1 KB (-)
socket.io.msgpack.min.js 45.6 KB (-) 14.2 KB (-)
socket.io.esm.min.js 33.1 KB (-) 11.3 KB (-)
  </li>
</ul>
from <a href="https://snyk.io/redirect/github/socketio/socket.io-client/releases">socket.io-client GitHub release notes</a>

Commit messages
Package name: socket.io-client
  • f0350a0 chore(release): 4.5.1
  • abdba07 chore(release): 4.5.0
  • faf68a5 chore: update default label for bug reports
  • c0ba734 chore: add Node.js 16 in the test matrix
  • e859018 refactor: replace the disconnected attribute by a getter
  • 74e3e60 feat: add support for catch-all listeners for outgoing packets
  • 692d54e chore: point the CI badge towards the main branch
  • 6fdf3c9 refactor: import single-file 3rd party modules
  • b862924 feat: add details to the disconnect event
  • eaf782c docs: remove broken badges
Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs