-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Snyk] Upgrade socket.io from 4.4.1 to 4.8.1 #117
base: main
Are you sure you want to change the base?
Conversation
Snyk has created this PR to upgrade socket.io from 4.4.1 to 4.8.1. See this package in npm: socket.io See this project in Snyk: https://app.snyk.io/org/sammytezzy/project/baae60b0-b551-4edb-bcb1-55eb7c12e4a6?utm_source=github&utm_medium=referral&page=upgrade-pr
Run & review this pull request in StackBlitz Codeflow. |
Reviewer's Guide by SourceryThis PR upgrades socket.io from version 4.4.1 to 4.8.1 to address multiple high-severity security vulnerabilities. The upgrade spans 17 versions and includes several bug fixes, new features, and security patches. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. Here's why:
- It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
- We don't review packaging changes - Let us know if you'd like us to change this.
Snyk has created this PR to upgrade socket.io from 4.4.1 to 4.8.1.
ℹ️ 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 17 versions ahead of your current version.
The recommended version was released on 22 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-SOCKETIOPARSER-5596892
SNYK-JS-WS-7266574
SNYK-JS-ENGINEIO-3136336
SNYK-JS-ENGINEIO-5496331
SNYK-JS-SOCKETIO-7278048
Release notes
Package name: socket.io
Bug Fixes
Dependencies
engine.io-client@~6.6.1
(no change)ws@~8.17.1
(no change)Features
Custom transport implementations
The
transports
option now accepts an array of transport implementations:import { XHR, WebSocket } from "engine.io-client";
const socket = io({
transports: [XHR, WebSocket]
});
Here is the list of provided implementations:
Fetch
fetch()
method.NodeXHR
XMLHttpRequest
object provided by thexmlhttprequest-ssl
package.XHR
XMLHttpRequest
object.NodeWebSocket
WebSocket
object provided by thews
package.WebSocket
WebSocket
object.WebTransport
WebTransport
object.Usage:
Fetch
NodeXHR
XHR
NodeWebSocket
WebSocket
WebTransport
(1) since v18.0.0
(2) since v21.0.0
Added in f4d898e and b11763b.
Test each low-level transports
When setting the
tryAllTransports
option totrue
, if the first transport (usually, HTTP long-polling) fails, then the other transports will be tested too:const socket = io({
tryAllTransports: true
});
This feature is useful in two cases:
transports: ["websocket", "polling"]
)The only potential downside is that the connection attempt could take more time in case of failure, as there have been reports of WebSocket connection errors taking several seconds before being detected (that's one reason for using HTTP long-polling first). That's why the option defaults to
false
for now.Added in 579b243.
Bug Fixes
Dependencies
engine.io-client@~6.6.1
(diff and diff)ws@~8.17.1
(diff)Important
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:
Summary by Sourcery
Upgrade socket.io from version 4.4.1 to 4.8.1 to address security vulnerabilities and introduce new features such as custom transport implementations.
New Features:
Bug Fixes: