Skip to content

Conversation

@nejidevelops
Copy link
Owner

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


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade @socket.io/redis-adapter from 7.1.0 to 7.2.0.

ℹ️ 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 1 version ahead of your current version.

  • The recommended version was released on 2 years ago.

Release notes
Package name: @socket.io/redis-adapter
  • 7.2.0 - 2022-05-03

    Bug Fixes

    Features

    • broadcast and expect multiple acks (e4c40cc)

    This feature was added in [email protected]:

    io.timeout(1000).emit("some-event", (err, responses) => {
      // ...
    });

    Thanks to this change, it will now work with multiple Socket.IO servers.

    Diff: 7.1.0...7.2.0

  • 7.1.0 - 2021-11-29

    Features

    • add support for redis v4 (aa681b3)
    • do not emit "error" events anymore (8e5c84f)

    Error handling can now be done on the redis clients directly.

    Before:

    io.of("/").adapter.on("error", () => {
      // ...
    });

    After:

    pubClient.on("error", () => {
    // something went wrong
    });

    subClient.on("error", () => {
    // something went wrong
    });

    • send response to the requesting node only (f66de11)

    A more performant way to do request-response is available behind an option, publishOnSpecificResponseChannel:

    const io = require('socket.io')(3000);
    const { createClient } = require('redis');
    const redisAdapter = require('@ socket.io/redis-adapter');

    const pubClient = createClient({ host: 'localhost', port: 6379 });
    const subClient = pubClient.duplicate();
    io.adapter(redisAdapter(pubClient, subClient, {
    publishOnSpecificResponseChannel: true
    }));

    To upgrade an existing deployment, you will need to upgrade all nodes to the latest version with publishOnSpecificResponseChannel = false, and then toggle the option on each node.

    Please check the commit for more information.

    Links

from @socket.io/redis-adapter GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Snyk has created this PR to upgrade @socket.io/redis-adapter from 7.1.0 to 7.2.0.

See this package in npm:
@socket.io/redis-adapter

See this project in Snyk:
https://app.snyk.io/org/newtonombese1/project/0f7cb4e0-d844-44aa-bc90-5957f9bcb149?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants