Skip to content

Commit d42bf39

Browse files
chore(release): 0.2.0
Diff: 0.1.0...0.2.0
1 parent e87a0ce commit d42bf39

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# [0.2.0](https://github.com/socketio/socket.io-mongo-adapter/compare/0.1.0...0.2.0) (2022-04-27)
2+
3+
4+
### Features
5+
6+
* add an option to use a TTL index ([#4](https://github.com/socketio/socket.io-mongo-adapter/issues/4)) ([7fdbb25](https://github.com/socketio/socket.io-mongo-adapter/commit/7fdbb25831255e5f6a37a5df25b4fc41c770ab6a))
7+
8+
The `addCreatedAtField` option allows to use a TTL index instead of a capped collection, which is slightly less efficient but more predictable.
9+
10+
* broadcast and expect multiple acks ([e87a0ce](https://github.com/socketio/socket.io-mongo-adapter/commit/e87a0cec4c6920b5e4ef38c4de3e45c1eba5e4cf))
11+
12+
This feature was added in `[email protected]`:
13+
14+
```js
15+
io.timeout(1000).emit("some-event", (err, responses) => {
16+
// ...
17+
});
18+
```
19+
20+
Thanks to this change, it will now work with multiple Socket.IO servers.
21+
22+
* use a single stream for all namespaces ([9b5f4c8](https://github.com/socketio/socket.io-mongo-adapter/commit/9b5f4c83038cc212b898b7fb7ff0ccec3124447c))
23+
24+
The adapter will now create one single MongoDB stream for all namespaces, instead of one per namespace, which could lead to performance issues.
25+
126
# 0.1.0 (2021-06-01)
227

328
Initial commit

package-lock.json

Lines changed: 2 additions & 2 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socket.io/mongo-adapter",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "The Socket.IO MongoDB adapter, allowing to broadcast events between several Socket.IO servers",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)