diff --git a/CHANGELOG.md b/CHANGELOG.md index c23a976..6c02a61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 `socket.io@4.5.0`: + +```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 diff --git a/package-lock.json b/package-lock.json index eac3181..0f6e9b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@socket.io/mongo-adapter", - "version": "0.1.0", + "version": "0.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@socket.io/mongo-adapter", - "version": "0.1.0", + "version": "0.2.0", "license": "MIT", "dependencies": { "debug": "~4.3.1", diff --git a/package.json b/package.json index fb1a316..d9a3d7d 100644 --- a/package.json +++ b/package.json @@ -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": {