This repository was archived by the owner on Aug 5, 2025. It is now read-only.
Update dependency mongodb to v3.5.6 #172
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.4.1->3.5.6Release Notes
mongodb/node-mongodb-native
v3.5.6Compare Source
The MongoDB Node.js team is pleased to announce version 3.5.6 of the driver
Release Highlights
Regression in
mapwhen cursor used as a stream@dobesv helped identify a regression where a map function would be applied twice
if defined on a cursor, and that cursor was used to stream data.
TypeError: Cannot read property 'code' of undefined
User @linus-hologram originally reported an issue with a TypeError when the lambda
passed to the
withTransactionhelper rejected with anullvalue. @vkarpov15submitted the fix.
readPreferenceTagsinterpreted as an arrayA bug was fixed where
readPreferenceTagswith a single value in the connectionstring was not properly interpreted as an array of tags. This prevented the
Use Analytics Nodes to Isolate Workload guidance from working
correctly.
Cannot set property 'isDirty' of null
User @sean-daley reported seeing this in an AWS Lambda environment, but has proven to
be somewhat of a heisenbug. We are rolling out a fix here that ensures sessions
(implicit or not) are not used after they have been explicitly ended.
Thanks very much to all the community members who contributed to this release!
Release Notes
Bug
v3.5.5Compare Source
The MongoDB Node.js team is pleased to announce version 3.5.5 of the driver
Release Highlights
Regression in
hasNextwhen using a cursor with a limit@peterbroadhurst helped point out a regression introduced in v3.5.4 where using
hasNexton a cusor with a limit would not return the full set of results.
Ignored topology updates cause servers to fall out of latency window
A change introduced across all MongoDB drivers, and in particular v3.5.0 of the Node.js
driver, attempted to prevent needless duplicate
topologyDescriptionChangedtopology eventsby introducing a
ServerDescriptionequality operator. Since equality does not take thelastUpdateTimeandlastWriteDatefields of an ismaster into account, the driver couldeventually 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
gated by
ServerDescriptionequality.Memory leaks with Node.js v12+
The legacy topology types (in particular if you were connected to a replic set) used a
custom
Timeoutclass to wrap a timer. Unfortunately, the class depended on an undocumented,private variable
_called, which was removed in Node.js v12. This would lead to the driverthinking 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.
TypeError: Cannot read property 'Symbol(cancelled)' of undefined
@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
undefinedvariable.promiseLibrarynot respected by newly introducedmaybePromisehelper@tobyealden pointed out that an internal refactor to use a helper to optionally
return a
Promisefor top level API methods was not, in fact, using a custompromise library if one was provided!
Thanks very much to all the community members who contributed to this release!
Release Notes
Bug
v3.5.4Compare Source
Bug Fixes
STATE_CLOSINGbefore draining waitQueue (494dffb)hasNexton cursor (bb359a1)Features
v3.5.3Compare Source
Bug Fixes
Features
v3.5.2Compare Source
Bug Fixes
v3.5.1Compare Source
Bug Fixes
secureConnectfor tls connections (f8bdb8d)ssl=true(c8d182e)v3.5.0Compare Source
Bug Fixes
ssloption to pool connection options (563ced6)updateRsFromPrimary(95a772e)connectTimeoutMS(c83af9a)timeoutevent (5319ff9)Features
withConnectionhelper to the connection pool (d59dced)connectionIdfor APM with new CMAP connection pool (9bd360c)MongoServerSelectionError(0cf7ec9)Monitortype for server monitoring (2bfe2a1)3.4.1 (2019-12-19)
Bug Fixes
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.