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

fix(deps): update socket.io packages to v4.7.5 #29

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 22, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
socket.io 4.6.2 -> 4.7.5 age adoption passing confidence
socket.io-client 4.6.2 -> 4.7.5 age adoption passing confidence

Release Notes

socketio/socket.io (socket.io)

v4.7.5

Compare Source

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

v4.7.4

Compare Source

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

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)
Dependencies

v4.7.2

Compare Source

Bug Fixes
  • clean up child namespace when client is rejected in middleware (#​4773) (0731c0d)
  • webtransport: properly handle WebTransport-only connections (3468a19)
  • webtransport: add proper framing (a306db0)
Dependencies

v4.7.1

Compare Source

The client bundle contains a few fixes regarding the WebTransport support.

Dependencies

v4.7.0

Compare Source

Bug Fixes
  • remove the Partial modifier from the socket.data type (#​4740) (e5c62ca)
Features
Support for WebTransport

The Socket.IO server 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:

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

import { readFileSync } from "fs";
import { createServer } from "https";
import { Server } from "socket.io";
import { Http3Server } from "@​fails-components/webtransport";

// WARNING: the total length of the validity period MUST NOT exceed two weeks (https://w3c.github.io/webtransport/#custom-certificate-requirements)
const cert = readFileSync("/path/to/my/cert.pem");
const key = readFileSync("/path/to/my/key.pem");

const httpsServer = createServer({
  key,
  cert
});

httpsServer.listen(3000);

const io = new Server(httpsServer, {
  transports: ["polling", "websocket", "webtransport"] // WebTransport is not enabled by default
});

const h3Server = new Http3Server({
  port: 3000,
  host: "0.0.0.0",
  secret: "changeit",
  cert,
  privKey: key,
});

(async () => {
  const stream = await h3Server.sessionStream("/socket.io/");
  const sessionReader = stream.getReader();

  while (true) {
    const { done, value } = await sessionReader.read();
    if (done) {
      break;
    }
    io.engine.onWebTransportSession(value);
  }
})();

h3Server.startServer();

Added in 123b68c.

Client bundles with CORS headers

The bundles will now have the right Access-Control-Allow-xxx headers.

Added in 63f181c.

Dependencies
socketio/socket.io-client (socket.io-client)

v4.7.5

Compare Source

Bug Fixes
  • discard acknowledgements upon disconnection (34cbfbb)
Dependencies

v4.7.4

Compare Source

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

Dependencies

v4.7.3

Compare Source

Bug Fixes
  • improve compatibility with node16 module resolution (#​1595) (605de78)
  • typings: accept string | undefined as init argument (5a3eafe)
  • typings: fix the type of the socket#id attribute (f9c16f2)
Dependencies

v4.7.2

Compare Source

Some bug fixes are included from the engine.io-client package:

  • webtransport: add proper framing (d55c39e)
  • webtransport: honor the binaryType attribute (8270e00)
Dependencies

v4.7.1

Compare Source

Some bug fixes are included from the engine.io-client package:

  • make closeOnBeforeunload default to false (a63066b)
  • webtransport: properly handle abruptly closed connections (cf6aa1f)
Dependencies

v4.7.0

Compare Source

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.

Dependencies

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This PR has been generated by Mend Renovate. View repository job log here.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 22, 2023

Coverage Summary

Status Category Percentage Covered / Total
🟢 Lines 76.77% / 60% 281 / 366
🟢 Statements 76.77% / 60% 281 / 366
🟢 Functions 100% / 75% 5 / 5
🟢 Branches 83.87% / 75% 52 / 62
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
index.ts 100% 100% 100% 100%
db/controller/controller.ts 72.96% 84.74% 100% 72.96% 164-230, 240-254, 259
db/route/route.ts 100% 100% 100% 100%
db/services/database.service.ts 91.66% 50% 100% 91.66% 22-23

@renovate renovate bot force-pushed the renovate/socket.io-packages branch from 963edc5 to 73caa0a Compare June 28, 2023 07:31
@renovate renovate bot changed the title fix(deps): update socket.io packages to v4.7.0 fix(deps): update socket.io packages to v4.7.1 Jun 28, 2023
@renovate renovate bot force-pushed the renovate/socket.io-packages branch from 73caa0a to ef8d12e Compare June 28, 2023 09:22
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@renovate renovate bot changed the title fix(deps): update socket.io packages to v4.7.1 fix(deps): update socket.io packages to v4.7.2 Aug 3, 2023
@renovate renovate bot force-pushed the renovate/socket.io-packages branch 2 times, most recently from 97ef6c9 to 0aa94f4 Compare August 9, 2023 12:39
@renovate renovate bot force-pushed the renovate/socket.io-packages branch from 0aa94f4 to b5843f1 Compare August 22, 2023 16:07
@github-actions
Copy link
Contributor

github-actions bot commented Aug 22, 2023

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 76.77% / 60% 281 / 366
🟢 Statements 76.77% / 60% 281 / 366
🟢 Functions 100% / 75% 5 / 5
🟢 Branches 83.87% / 75% 52 / 62
File CoverageNo changed files found.
Generated in workflow #161

@renovate renovate bot force-pushed the renovate/socket.io-packages branch from b5843f1 to eb4e7bf Compare August 30, 2023 21:29
@renovate renovate bot force-pushed the renovate/socket.io-packages branch from eb4e7bf to 957206b Compare September 19, 2023 10:07
@renovate renovate bot force-pushed the renovate/socket.io-packages branch 2 times, most recently from 16ab45e to df3ab02 Compare October 15, 2023 16:30
@renovate renovate bot force-pushed the renovate/socket.io-packages branch from df3ab02 to 001349d Compare November 16, 2023 10:45
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@renovate renovate bot force-pushed the renovate/socket.io-packages branch from 001349d to 384d0d7 Compare January 3, 2024 22:59
@renovate renovate bot changed the title fix(deps): update socket.io packages to v4.7.2 fix(deps): update socket.io packages to v4.7.3 Jan 3, 2024
@renovate renovate bot changed the title fix(deps): update socket.io packages to v4.7.3 fix(deps): update socket.io packages to v4.7.4 Jan 12, 2024
@renovate renovate bot force-pushed the renovate/socket.io-packages branch from 384d0d7 to f7e2f59 Compare January 12, 2024 10:38
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@renovate renovate bot force-pushed the renovate/socket.io-packages branch from f7e2f59 to f79a8ce Compare February 25, 2024 11:11
@renovate renovate bot changed the title fix(deps): update socket.io packages to v4.7.4 fix(deps): update socket.io packages to v4.7.5 Mar 14, 2024
@renovate renovate bot force-pushed the renovate/socket.io-packages branch from f79a8ce to 962f3b7 Compare March 14, 2024 18:19
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

0 participants