Damien Arrachequesne
cdae01983a
fix(sio-client): do not mangle the "_placeholder" attribute (bis)
...
The "_placeholder" attribute is used when sending binary data, and was
incorrectly mangled (converted to a random short property, like "it",
to reduce the bundle size).
Related:
- ca9e994815
- https://github.com/socketio/socket.io/issues/5215
[skip ci]
2025-12-19 15:48:28 +01:00
Damien Arrachequesne
39bb72039d
docs: add release steps
...
[skip ci]
2025-12-19 15:43:14 +01:00
Valentin Rault
98741e15e9
refactor(sio-client): export DisconnectDescription type ( #5392 )
...
Related: https://github.com/socketio/socket.io/issues/4556
2025-12-19 14:51:39 +01:00
Damien Arrachequesne
8af70195bb
refactor(sio): use URL constructor instead of url.parse()
...
Related: https://github.com/socketio/socket.io/issues/5377
2025-12-19 14:44:30 +01:00
Damien Arrachequesne
d88f3f4578
ci: use actions/checkout@v6 and actions/setup-node@v6
...
Release notes:
- https://github.com/actions/checkout/blob/main/CHANGELOG.md
- https://github.com/actions/setup-node/releases/tag/v6.0.0
2025-12-15 09:38:45 +01:00
Damien Arrachequesne
f5ee981ee8
ci(publish): use trusted publishing
...
Reference: https://docs.npmjs.com/trusted-publishers
[skip ci]
2025-12-15 08:57:17 +01:00
Damien Arrachequesne
76e3a72bba
docs: add missing changelog links
...
[skip ci]
2025-12-15 08:55:26 +01:00
Damien Arrachequesne
a7b1938d06
test: regenerate SSL certs
2025-12-15 08:45:47 +01:00
Damien Arrachequesne
54743633ff
chore(release): @socket.io/redis-streams-emitter@0.1.1
...
Diff: https://github.com/socketio/socket.io/compare/@socket.io/redis-streams-emitter@0.1.0...@socket.io/redis-streams-emitter@0.1.1
@socket.io/redis-streams-emitter@0.1.1
2025-11-07 10:33:07 +01:00
Damien Arrachequesne
7617707ed8
fix(redis-streams-emitter): remove dependency on socket.io-adapter
...
Related: https://github.com/socketio/socket.io/issues/5414
2025-11-07 10:28:27 +01:00
Damien Arrachequesne
599001d213
chore(release): @socket.io/redis-streams-emitter@0.1.0
@socket.io/redis-streams-emitter@0.1.0
2025-11-06 18:23:00 +01:00
Damien Arrachequesne
1c3e4711c1
feat: add emitter based on Redis streams
...
Related: https://github.com/socketio/socket.io-redis-streams-adapter/issues/8
2025-11-06 18:03:37 +01:00
Damien Arrachequesne
693080cac7
refactor(sio-adapter): add more debug logs
2025-10-20 15:11:21 +02:00
Damien Arrachequesne
5080c73e1e
refactor: fix npm command
2025-10-17 09:41:39 +02:00
Damien Arrachequesne
47ff1cd04c
chore(release): @socket.io/cluster-adapter@0.3.0
...
Diff: https://github.com/socketio/socket.io-cluster-adapter/compare/0.2.2...0.3.0
@socket.io/cluster-adapter@0.3.0
2025-10-16 19:55:56 +02:00
Damien Arrachequesne
0ae76360f9
Merge remote-tracking branch 'socket.io-cluster-adapter/monorepo'
2025-10-16 19:35:51 +02:00
Damien Arrachequesne
27fd420e75
refactor: prepare migration to monorepo
2025-10-16 19:31:30 +02:00
Damien Arrachequesne
0c431243e2
refactor: use the ClusterAdapter class from socket.io-adapter package
...
The ClusterAdapter class has been moved to [1], so that this adapter
only needs to implement to pub/sub mechanism.
Also, [2] should reduce the number of "timeout reached: only x
responses received out of y" errors, since the fetchSockets() requests
will now succeed even if a server leaves the cluster.
[1]: https://github.com/socketio/socket.io/tree/main/packages/socket.io-adapter
[2]: 0e23ff0cc6
2025-10-16 19:16:20 +02:00
Damien Arrachequesne
4fc25d80ec
ci: add Node.js 24
...
Reference: https://github.com/nodejs/Release
2025-10-16 12:03:32 +02:00
Damien Arrachequesne
1dd729b1a1
refactor: upgrade to prettier 3
2025-10-16 11:51:11 +02:00
Damien Arrachequesne
6877512f57
refactor: upgrade to TypeScript 5
2025-10-16 11:49:12 +02:00
Damien Arrachequesne
cf6816afcf
chore: npm audit fix
2025-10-10 09:29:29 +02:00
Damien Arrachequesne
625fd66d73
chore: dedupe debug dependency
2025-10-10 09:11:54 +02:00
Damien Arrachequesne
f3e1f5ebdf
fix(sio): call adapter.init() when creating each namespace
...
The init() method of the adapter will now be called when creating a namespace with `io.of(<the-namespace>)`.
Note: any promise rejection is silently caught, as I don't see how we could properly expose the promise.
```js
const io = new Server({
adapter: myAdapter
});
// under the hood, this:
// - implicitly creates the main namespace (/)
// - creates an instance of `myAdapter` for the main namespace
// - calls `myAdapter.init()` (with this change)
```
Related:
- https://github.com/socketio/socket.io/issues/3662
- https://github.com/socketio/socket.io-postgres-adapter/issues/16
2025-10-09 09:48:07 +02:00
Damien Arrachequesne
e97549259e
ci(browser): use Windows 8 for IE tests
2025-09-30 11:44:50 +02:00
MiaoWoo
1da9cddeab
fix(eio-client): properly handle port option ( #5241 )
...
Passing { port: "443" } would include the port in the URL (":443").
2025-09-30 10:57:43 +02:00
Avi Vahl
6f9b198bc8
chore(deps): ws@8.18.3, debug@4.4.1 ( #5335 )
...
Release notes:
- https://github.com/websockets/ws/releases/tag/8.18.3
- https://github.com/debug-js/debug/releases/tag/4.4.1
2025-09-11 07:51:07 +02:00
Damien Arrachequesne
ac3df9a747
chore(release): @socket.io/postgres-emitter@0.1.1
@socket.io/postgres-emitter@0.1.1
2025-09-05 07:27:48 +02:00
Damien Arrachequesne
21fd54ece6
refactor(postgres-emitter): update compose file
2025-09-05 07:20:29 +02:00
Damien Arrachequesne
96d907b9b5
docs(postgres-emitter): add dark version of the explanation diagram
2025-09-05 07:19:07 +02:00
Damien Arrachequesne
32257b6cb8
fix(postgres-emitter): use parameterized query to send the NOTIFY command
...
Related:
- https://github.com/socketio/socket.io-postgres-emitter/issues/1
- https://github.com/socketio/socket.io-postgres-adapter/pull/1
2025-09-05 07:18:36 +02:00
Damien Arrachequesne
c7144920e3
Merge remote-tracking branch 'socket.io-postgres-emitter/main' into monorepo
2025-09-04 09:30:26 +02:00
Damien Arrachequesne
42480e9a7f
chore: prepare migration to monorepo
2025-09-04 09:23:32 +02:00
Lou Klepner
0a8f91047c
docs: fix adapter link ( #2 )
2025-09-04 09:22:40 +02:00
Damien Arrachequesne
a66ed68506
docs(protocol): add test with cancelled request
...
Related: 8f1ea3d58f
2025-09-03 09:02:44 +02:00
Damien Arrachequesne
3be6481d9d
ci: pin Node.js 22 version
...
Related: https://github.com/nodejs/node/issues/59364
2025-08-09 09:31:12 +02:00
Wang Guan
be13cca94c
refactor: improve type annotations and comments ( #5364 )
2025-08-09 08:43:34 +02:00
Damien Arrachequesne
e95f6abf93
docs: fix message handler latency in test suites
...
Related: https://github.com/socketio/socket.io-protocol/issues/32
2025-03-28 21:29:20 +01:00
Damien Arrachequesne
72d61dab82
chore(release): engine.io@6.6.4
...
Diff: https://github.com/socketio/socket.io/compare/engine.io@6.6.3...engine.io@6.6.4
engine.io@6.6.4
2025-01-28 09:23:04 +01:00
Damien Arrachequesne
5a31aaf917
chore(eio): revert cookie to version ~0.7.2
...
This reverts commit 7427109658 .
The new version of the `cookie` package contains code with optional chaining (`?.`), which is not supported by older Node.js versions (< 14).
The types for cookie are now bundled, so that there is no conflict with the types coming from `cookie@1`:
> error TS2724: '"cookie"' has no exported member named 'CookieSerializeOptions'. Did you mean 'SerializeOptions'?
>
> import type { CookieSerializeOptions } from "cookie";
> ~~~~~~~~~~~~~~~~~~~~~~
Related: https://github.com/socketio/socket.io/issues/5283
2025-01-28 09:13:39 +01:00
Damien Arrachequesne
62e4da125e
chore(release): engine.io@6.6.3
...
Diff: https://github.com/socketio/socket.io/compare/engine.io@6.6.2...engine.io@6.6.3
engine.io@6.6.3
2025-01-23 07:55:43 +01:00
Damien Arrachequesne
bfa6eab195
chore(release): engine.io-client@6.6.3
...
Diff: https://github.com/socketio/socket.io/compare/engine.io-client@6.6.2...engine.io-client@6.6.3
engine.io-client@6.6.3
2025-01-23 07:38:37 +01:00
Ben McCann
7fcddcb3bb
fix(engine.io-client): correctly consume the ws package ( #5220 )
...
This should fix the following issue:
```
SyntaxError: Named export 'WebSocket' not found. The requested module 'ws' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'ws';
const { WebSocket } = pkg;
```
2025-01-07 10:53:32 +01:00
Damien Arrachequesne
7427109658
refactor(eio): bump cookie to version 1.0.2
...
Release notes: https://github.com/jshttp/cookie/releases/tag/v1.0.0
The types are now included in the npm package. The `CookieSerializeOptions` type, which is used in our `ServerOptions` type, has been renamed to `SerializeOptions`, but there are no breaking change.
Related: https://github.com/socketio/socket.io/issues/5231
2024-11-21 08:57:37 +01:00
Damien Arrachequesne
91e1c8b358
chore(release): socket.io@4.8.1
...
Diff: https://github.com/socketio/socket.io/compare/socket.io@4.8.0...socket.io@4.8.1
socket.io@4.8.1
2024-10-25 08:13:15 +02:00
Damien Arrachequesne
8d5528aa2a
chore(release): socket.io-client@4.8.1
...
Diff: https://github.com/socketio/socket.io/compare/socket.io-client@4.8.0...socket.io-client@4.8.1
socket.io-client@4.8.1
2024-10-25 08:00:26 +02:00
Damien Arrachequesne
71387e5294
refactor(sio-client): reexport transports from the engine
2024-10-25 07:54:35 +02:00
Samuel Vogelsanger
aead83560d
refactor(sio): make Namespace._fns private ( #5196 )
...
Related: https://github.com/socketio/socket.io/issues/5179
2024-10-23 10:59:23 +02:00
Damien Arrachequesne
029e010901
chore(release): engine.io-client@6.6.2
...
Diff: https://github.com/socketio/socket.io/compare/engine.io-client@6.6.1...engine.io-client@6.6.2
engine.io-client@6.6.2
2024-10-23 10:48:16 +02:00
Damien Arrachequesne
4ca6ddb3a2
docs(nuxt): update example with latest version
...
Related: https://github.com/socketio/socket.io/issues/5208
[skip ci]
2024-10-23 08:19:48 +02:00