The MongoDB Node.js team is pleased to announce version 3.5.5 of the driver
@peterbroadhurst helped point out a regression introduced in v3.5.4 where using
on a cusor with a limit would not return the full set of results.
A change introduced across all MongoDB drivers, and in particular v3.5.0 of the Node.js
driver, attempted to prevent needless duplicate
topologyDescriptionChanged topology events
by introducing a
ServerDescription equality operator. Since equality does not take the
lastWriteDate fields of an ismaster into account, the driver could
eventually consider servers non-suitable for server selection, since they would fall out
of the latency window.
All updates are considered viable for topology updates now, and only event emission is
The legacy topology types (in particular if you were connected to a replic set) used a
Timeout class to wrap a timer. Unfortunately, the class depended on an undocumented,
_called, which was removed in Node.js v12. This would lead to the driver
thinking the timeout never occurred, and therefore never releasing the object for garbage
collection. We recommend users of the legacy topology types immediately update to this
version of the driver, or use the Unified Topology which is unaffected by this bug.
@erfanium and @Paic helped us identify an issue in rare failover events where multiple
requests to process the server selection queue would result in an attempted property
access of an
@tobyealden pointed out that an internal refactor to use a helper to optionally
Promise for top level API methods was not, in fact, using a custom
promise library if one was provided!
Reference: MongoDB Node.js Driver
We invite you to try the driver immediately, and report any issues to the NODE project.
Thanks to all who contributed to this release!
The MongoDB Node.js team