Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/emmansun/mubsub
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/channel.js
  • Loading branch information
Emman committed Mar 20, 2023
2 parents 75aad66 + 8f0b8a5 commit 660bdfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## mubsub

Mubsub is a pub/sub implementation for Node.js and MongoDB. It utilizes Mongo's capped collections and tailable cursors to notify subscribers of inserted documents that match a given query.
Mubsub is a pub/sub implementation for Node.js and MongoDB. It utilizes Mongo's capped collections and tailable cursors to notify subscribers of inserted documents that match a given query. It supports mongodb driver 5.x and mongodb 6.x now.

[![NPM](https://img.shields.io/npm/v/mubsub-es.svg?style=flat)](http://npm.im/mubsub-es)
[![Run tests](https://github.com/emmansun/mubsub/actions/workflows/ci.yml/badge.svg)](https://github.com/emmansun/mubsub/actions/workflows/ci.yml)
Expand Down
2 changes: 1 addition & 1 deletion lib/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Channel extends EventEmitter {
const more = function () {
cursor
.next()
.then((doc) => next(null, doc))
.then((doc) => next(undefined, doc))
.catch((err) => next(err))
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mubsub-es",
"version": "1.2.0",
"description": "Pub/sub for Node.js and MongoDB, updated for mongodb 4.x and fix some deprecated usages by emman sun",
"description": "Pub/sub for Node.js and MongoDB, updated for mongodb 4.x, 5.x, 6.x and fix some deprecated usages by emman sun",
"homepage": "https://github.com/emmansun/mubsub",
"author": "Scott Nelson <scott@scttnlsn.com>",
"license": "MIT",
Expand Down

0 comments on commit 660bdfc

Please sign in to comment.