Skip to content
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

chore(deps): update dependency socket.io to v4.8.1 #609

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 14, 2024

This PR contains the following updates:

Package Update Change
socket.io (source) minor 4.7.2 -> 4.8.1

Release Notes

socketio/socket.io (socket.io)

v4.8.1

Compare Source

Bug Fixes
  • bundle: do not mangle the "_placeholder" attribute (ca9e994)
Dependencies

v4.8.0

Compare Source

Features
Custom transport implementations

The transports option now accepts an array of transport implementations:

import { io } from "socket.io-client";
import { XHR, WebSocket } from "engine.io-client";

const socket = io({
  transports: [XHR, WebSocket]
});

Here is the list of provided implementations:

Transport Description
Fetch HTTP long-polling based on the built-in fetch() method.
NodeXHR HTTP long-polling based on the XMLHttpRequest object provided by the xmlhttprequest-ssl package.
XHR HTTP long-polling based on the built-in XMLHttpRequest object.
NodeWebSocket WebSocket transport based on the WebSocket object provided by the ws package.
WebSocket WebSocket transport based on the built-in WebSocket object.
WebTransport WebTransport transport based on the built-in WebTransport object.

Usage:

Transport browser Node.js Deno Bun
Fetch ✅ (1)
NodeXHR
XHR
NodeWebSocket
WebSocket ✅ (2)
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 to true, if the first transport (usually, HTTP long-polling) fails, then the other transports will be tested too:

import { io } from "socket.io-client";

const socket = io({
  tryAllTransports: true
});

This feature is useful in two cases:

  • when HTTP long-polling is disabled on the server, or if CORS fails
  • when WebSocket is tested first (with 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
  • accept string | undefined as init argument (bis) (60c757f)
  • allow to manually stop the reconnection loop (13c6d2e)
  • close the engine upon decoding exception (04c8dd9)
  • do not send a packet on an expired connection (#​5134) (8adcfbf)
Dependencies

v4.7.5

Compare Source

Bug Fixes
  • close the adapters when the server is closed (bf64870)
  • remove duplicate pipeline when serving bundle (e426f3e)
Links

v4.7.4

Compare Source

Bug Fixes
  • typings: calling io.emit with no arguments incorrectly errored (cb6d2e0), closes #​4914
Links

v4.7.3

Compare Source

Bug Fixes
  • return the first response when broadcasting to a single socket (#​4878) (df8e70f)
  • typings: allow to bind to a non-secure Http2Server (#​4853) (8c9ebc3)
Links

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner August 14, 2024 09:24
@renovate renovate bot added the renovate label Aug 14, 2024
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch from 3aba279 to a01daee Compare August 14, 2024 13:54
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch 2 times, most recently from 9df2f2f to 5bb617f Compare September 3, 2024 14:16
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch from 5bb617f to 3321c3c Compare September 21, 2024 05:15
@renovate renovate bot changed the title chore(deps): update dependency socket.io to v4.7.5 chore(deps): update dependency socket.io to v4.8.0 Oct 8, 2024
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch from 3321c3c to 3598e84 Compare October 8, 2024 15:53
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch 6 times, most recently from 0fd502c to ccad5e4 Compare October 25, 2024 04:19
@renovate renovate bot changed the title chore(deps): update dependency socket.io to v4.8.0 chore(deps): update dependency socket.io to v4.8.1 Oct 25, 2024
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch from ccad5e4 to bc1065b Compare October 25, 2024 07:22
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch 2 times, most recently from f528937 to 7588d14 Compare November 21, 2024 09:37
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch 4 times, most recently from 9e0d63b to d657edd Compare December 11, 2024 05:08
@renovate renovate bot force-pushed the renovate/socket.io-4.x branch from d657edd to 1f0edef Compare January 3, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants