Skip to content

Commit f01c161

Browse files
Merge branch 'socket.io-postgres-adapter/main' into monorepo
2 parents e4d016b + bb58036 commit f01c161

File tree

21 files changed

+5111
-65
lines changed

21 files changed

+5111
-65
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ Here are the detailed changelogs for each package in this monorepo:
1414
| `@socket.io/cluster-engine` | [link](packages/socket.io-cluster-engine/CHANGELOG.md) |
1515
| `@socket.io/component-emitter` | [link](packages/socket.io-component-emitter/History.md) |
1616
| `socket.io-parser` | [link](packages/socket.io-parser/CHANGELOG.md) |
17+
| `@socket.io/postgres-adapter` | [link](packages/socket.io-postgres-adapter/CHANGELOG.md) |
1718
| `@socket.io/postgres-emitter` | [link](packages/socket.io-postgres-emitter/CHANGELOG.md) |
1819
| `@socket.io/redis-streams-emitter` | [link](/packages/socket.io-redis-streams-emitter/CHANGELOG.md) |

package-lock.json

Lines changed: 22 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"packages/socket.io-parser",
1313
"packages/socket.io-client",
1414
"packages/socket.io",
15+
"packages/socket.io-postgres-adapter",
1516
"packages/socket.io-postgres-emitter",
1617
"packages/socket.io-redis-streams-emitter"
1718
],
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# History
2+
3+
| Version | Release date |
4+
|--------------------------|---------------|
5+
| [0.5.0](#050-2025-11-05) | November 2025 |
6+
| [0.4.0](#040-2024-07-17) | July 2024 |
7+
| [0.3.1](#031-2023-02-08) | February 2023 |
8+
| [0.3.0](#030-2022-04-28) | April 2022 |
9+
| [0.2.0](#020-2021-12-16) | December 2021 |
10+
| [0.1.1](#011-2021-06-28) | June 2021 |
11+
| [0.1.0](#010-2021-06-14) | June 2021 |
12+
13+
# Release notes
14+
15+
# [0.5.0](https://github.com/socketio/socket.io-postgres-adapter/compare/0.4.0...0.5.0) (2025-11-05)
16+
17+
18+
### Bug Fixes
19+
20+
* properly release the client when calling io.close() ([c00716d](https://github.com/socketio/socket.io-postgres-adapter/commit/c00716dc08b54aa80c3fd6b06b4ccb31150047ed))
21+
22+
23+
### Features
24+
25+
* allow using the adapter within a Node.js cluster ([18a917f](https://github.com/socketio/socket.io-postgres-adapter/commit/18a917f19689b57090add1386bb3269d85a942e6)
26+
27+
28+
29+
## [0.4.0](https://github.com/socketio/socket.io-postgres-adapter/compare/0.3.1...0.4.0) (2024-07-17)
30+
31+
This release contains an important refactor of the adapter ([this commit](https://github.com/socketio/socket.io-postgres-adapter/commit/f783d4c568d232c40e47770e15763e97a77ed338)), as most of the logic has been moved in the `ClusterAdapter` class of the `socket.io-adapter` package.
32+
33+
34+
35+
## [0.3.1](https://github.com/socketio/socket.io-postgres-adapter/compare/0.3.0...0.3.1) (2023-02-08)
36+
37+
The `socket.io-adapter` package was added to the list of `peerDependencies`, in order to fix sync issues with the version imported by the socket.io package (see [d177075](https://github.com/socketio/socket.io-postgres-adapter/commit/d1770759bccba27c7375dbaf89234f4f7dbabc2c)).
38+
39+
Support for connection state recovery (see [here](https://github.com/socketio/socket.io/releases/4.6.0)) will be added in the next release.
40+
41+
42+
43+
## [0.3.0](https://github.com/socketio/socket.io-postgres-adapter/compare/0.2.0...0.3.0) (2022-04-28)
44+
45+
46+
### Features
47+
48+
* broadcast and expect multiple acks ([829a1f5](https://github.com/socketio/socket.io-postgres-adapter/commit/829a1f528df7b723ab6efb0e56248f326bca0c8e))
49+
50+
This feature was added in `socket.io@4.5.0`:
51+
52+
```js
53+
io.timeout(1000).emit("some-event", (err, responses) => {
54+
// ...
55+
});
56+
```
57+
58+
Thanks to this change, it will now work with multiple Socket.IO servers.
59+
60+
* use a single Postgres connection for all namespaces ([651e281](https://github.com/socketio/socket.io-postgres-adapter/commit/651e28169185d91c7a1a86152d21aa265d5500f2))
61+
62+
The adapter will now create one single Postgres connection for all namespaces, instead of one per namespace, which could lead to performance issues.
63+
64+
65+
66+
## [0.2.0](https://github.com/socketio/socket.io-postgres-adapter/compare/0.1.1...0.2.0) (2021-12-16)
67+
68+
69+
### Features
70+
71+
* add errorHandler option ([#5](https://github.com/socketio/socket.io-postgres-adapter/issues/5)) ([ec1b78c](https://github.com/socketio/socket.io-postgres-adapter/commit/ec1b78cf132147960f05402f6ae9b75ec77e1dd6))
72+
73+
74+
75+
## [0.1.1](https://github.com/socketio/socket.io-postgres-adapter/compare/0.1.0...0.1.1) (2021-06-28)
76+
77+
78+
### Bug Fixes
79+
80+
* prevent SQL injection in the NOTIFY payload ([#1](https://github.com/socketio/socket.io-postgres-adapter/issues/1)) ([580cec2](https://github.com/socketio/socket.io-postgres-adapter/commit/580cec262f37305f5ae92aca62e2bf1d2f9e1741))
81+
82+
83+
## 0.1.0 (2021-06-14)
84+
85+
Initial commit
86+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2021 Damien Arrachequesne (@darrachequesne)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)