Skip to content

Commit

Permalink
chore(release): 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Apr 27, 2022
1 parent e87a0ce commit d42bf39
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# [0.2.0](https://github.com/socketio/socket.io-mongo-adapter/compare/0.1.0...0.2.0) (2022-04-27)


### Features

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

The `addCreatedAtField` option allows to use a TTL index instead of a capped collection, which is slightly less efficient but more predictable.

* broadcast and expect multiple acks ([e87a0ce](https://github.com/socketio/socket.io-mongo-adapter/commit/e87a0cec4c6920b5e4ef38c4de3e45c1eba5e4cf))

This feature was added in `[email protected]`:

```js
io.timeout(1000).emit("some-event", (err, responses) => {
// ...
});
```

Thanks to this change, it will now work with multiple Socket.IO servers.

* use a single stream for all namespaces ([9b5f4c8](https://github.com/socketio/socket.io-mongo-adapter/commit/9b5f4c83038cc212b898b7fb7ff0ccec3124447c))

The adapter will now create one single MongoDB stream for all namespaces, instead of one per namespace, which could lead to performance issues.

# 0.1.0 (2021-06-01)

Initial commit
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@socket.io/mongo-adapter",
"version": "0.1.0",
"version": "0.2.0",
"description": "The Socket.IO MongoDB adapter, allowing to broadcast events between several Socket.IO servers",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit d42bf39

Please sign in to comment.