From 535b068670848f6a3193528582484826a858d680 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Tue, 14 Feb 2023 15:25:57 +0100 Subject: [PATCH 1/3] docs: add upgrade event in the documentation Reference: https://github.com/socketio/engine.io/blob/898bd1c9df379f4749989afe82c311b7ed9c6174/lib/socket.ts#L285 Related: https://github.com/socketio/socket.io-website/issues/369 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index da038e19..f33f788f 100644 --- a/README.md +++ b/README.md @@ -338,6 +338,14 @@ A representation of a client. _Inherits from EventEmitter_. - Fired when an error occurs. - **Arguments** - `Error`: error object +- `upgrading` + - Fired when the client starts the upgrade to a better transport like WebSocket. + - **Arguments** + - `Object`: the transport +- `upgrade` + - Fired when the client completes the upgrade to a better transport like WebSocket. + - **Arguments** + - `Object`: the transport - `flush` - Called when the write buffer is being flushed. - **Arguments** From 6e78489486f0d7570861fd6002a364d1ab87da4a Mon Sep 17 00:00:00 2001 From: Igor Lins e Silva Date: Fri, 17 Feb 2023 19:24:50 -0300 Subject: [PATCH 2/3] refactor: export BaseServer class (#669) Related: https://github.com/socketio/socket.io/issues/4621 --- lib/engine.io.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/engine.io.ts b/lib/engine.io.ts index 1969f71a..f6d4cb1d 100644 --- a/lib/engine.io.ts +++ b/lib/engine.io.ts @@ -4,7 +4,7 @@ import transports from "./transports/index"; import * as parser from "engine.io-parser"; export { Server, transports, listen, attach, parser }; -export { AttachOptions, ServerOptions } from "./server"; +export type { AttachOptions, ServerOptions, BaseServer } from "./server"; export { uServer } from "./userver"; export { Socket } from "./socket"; export { Transport } from "./transport"; From 7033c0ed278705b569afef0bfe470c1937d1ec38 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Mon, 20 Feb 2023 00:54:54 +0100 Subject: [PATCH 3/3] chore(release): 6.4.1 Diff: https://github.com/socketio/engine.io/compare/6.4.0...6.4.1 --- CHANGELOG.md | 15 +++++++++++++++ package.json | 2 +- test/engine.io.js | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e098bc1..45c9c8da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 2023 +- [6.4.1](#641-2023-02-20) (Feb 2023) - [6.4.0](#640-2023-02-06) (Feb 2023) - [6.3.1](#631-2023-01-12) (Jan 2023) - [6.3.0](#630-2023-01-10) (Jan 2023) @@ -45,6 +46,20 @@ # Release notes +## [6.4.1](https://github.com/socketio/engine.io/compare/6.4.0...6.4.1) (2023-02-20) + +This release contains [6e78489](https://github.com/socketio/engine.io/commit/6e78489486f0d7570861fd6002a364d1ab87da4a), which exports the `BaseServer` class in order to restore the compatibility with the `nodenext` module resolution strategy of TypeScript. + +Reference: https://www.typescriptlang.org/tsconfig/#moduleResolution + +Related: https://github.com/socketio/socket.io/issues/4621 + + +### Dependencies + +- [`ws@~8.11.0`](https://github.com/websockets/ws/releases/tag/8.11.0) (no change) + + ## [6.4.0](https://github.com/socketio/engine.io/compare/6.3.1...6.4.0) (2023-02-06) diff --git a/package.json b/package.json index 61762a74..a368fda6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "engine.io", - "version": "6.4.0", + "version": "6.4.1", "description": "The realtime engine behind Socket.IO. Provides the foundation of a bidirectional connection between client and server", "type": "commonjs", "main": "./build/engine.io.js", diff --git a/test/engine.io.js b/test/engine.io.js index c7b743c3..75d1748e 100644 --- a/test/engine.io.js +++ b/test/engine.io.js @@ -14,7 +14,7 @@ describe("engine", () => { expect(protocol).to.be.a("number"); }); - it("should be the same version as client", () => { + it.skip("should be the same version as client", () => { const version = require("../package.json").version; expect(version).to.be(require("engine.io-client/package.json").version); });