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
58 stars 10 forks source link

[Snyk] Upgrade socket.io-client from 4.6.1 to 4.7.0 #70

Closed V0l-D closed 1 year ago

V0l-D commented 1 year 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.6.1 to 4.7.0.

: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 2023-06-22.
Release notes
Package name: socket.io-client
  • 4.7.0 - 2023-06-22

    Bug Fixes

    • properly report timeout error when connecting (5bc94b5)
    • use same scope for setTimeout and clearTimeout calls (#1568) (f2892ab)

    Features

    Support for WebTransport

    The Engine.IO client can now use WebTransport as the underlying transport.

    WebTransport is a web API that uses the HTTP/3 protocol as a bidirectional transport. It's intended for two-way communications between a web client and an HTTP/3 server.

    References:

    For Node.js clients: until WebTransport support lands in Node.js, you can use the @ fails-components/webtransport package:

    import { WebTransport } from "@ fails-components/webtransport";
    
    global.WebTransport = WebTransport;

    Added in 7195c0f.

    Cookie management for the Node.js client

    When setting the withCredentials option to true, the Node.js client will now include the cookies in the HTTP requests, making it easier to use it with cookie-based sticky sessions.

    import { io } from "socket.io-client";
    
    const socket = io("https://example.com", {
      withCredentials: true
    });

    Added in 5fc88a6.

    Conditional import of the ESM build with debug logs

    By default, the ESM build does not include the debug package in the browser environments, because it increases the bundle size (see 16b6569).

    Which means that, unfortunately, debug logs are not available in the devtools console, even when setting the localStorage.debug = ... attribute.

    You can now import the build which includes the debug packages with a conditional import. Example with vite:

    import { defineConfig } from 'vite'
    import react from '@ vitejs/plugin-react'
    
    export default defineConfig({
      plugins: [react()],
      server: {
        port: 4000
      },
      resolve: {
        conditions: ["development"]
      }
    })

    Reference: https://v2.vitejs.dev/config/#resolve-conditions

    Added in 781d753.

    Links

    • Diff: 4.6.2...4.7.0
    • Server release: 4.7.0
    • engine.io-client version: ~6.5.0 (diff)
    • ws version: ~8.11.0 (no change)
  • 4.6.2 - 2023-05-31

    Bug Fixes

    • exports: move types condition to the top (#1580) (7ead241)

    Links

    • Diff: 4.6.1...4.6.2
    • Server release: 4.6.2
    • engine.io-client version: ~6.4.0 (no change)
    • ws version: ~8.11.0 (no change)
  • 4.6.1 - 2023-02-20

    Bug Fixes

    • do not drain the queue while the socket is offline (4996f9e)
    • prevent duplicate connections when multiplexing (46213a6)

    Links

    • Diff: 4.6.0...4.6.1
    • Server release: 4.6.1
    • engine.io-client version: ~6.4.0 (no change)
    • ws version: ~8.11.0 (no change)
from socket.io-client GitHub release notes
Commit messages
Package name: socket.io-client
  • 9b235ec chore(release): 4.7.0
  • f2892ab fix: use same scope for setTimeout and clearTimeout calls (#1568)
  • 5bc94b5 fix: properly report timeout error when connecting
  • 781d753 feat: expose ESM build with debug (#1585)
  • 8f14b98 chore: bump engine.io-client to version 6.5.0
  • a04ae1b chore(release): 4.6.2
  • 7c1db9d chore: bump socket.io-parser to version 4.2.3
  • 61dea71 refactor: remove invalid comma from package.json
  • 7ead241 fix(exports): move `types` condition to the top (#1580)
  • d0c0557 docs(changelog): add version of transitive dependencies
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](https://app.snyk.io/org/terroriser1/project/7cd7c7ff-2870-43e7-aa94-c8e9b3f19520?utm_source=github&utm_medium=referral&page=upgrade-pr) 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/terroriser1/project/7cd7c7ff-2870-43e7-aa94-c8e9b3f19520/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/terroriser1/project/7cd7c7ff-2870-43e7-aa94-c8e9b3f19520/settings/integration?pkg=socket.io-client&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)