The MongoDB Node.js team is pleased to announce version 5.9.2 of the mongodb package!
Release Notes
Fix connection leak when serverApi is enabled
When enabling serverApi the driver's RTT mesurment logic (used to determine the closest node) still sent the legacy hello command "isMaster" causing the server to return an error. Unfortunately, the error handling logic did not correctly destroy the socket which would cause a leak.
Both sending the correct hello command and the error handling connection clean up logic are fixed in this change.
The MongoDB Node.js team is pleased to announce version 5.9.1 of the mongodb package!
Release Notes
insertedIds in bulk write now contain only successful insertions
Prior to this fix, the bulk write error's result.insertedIds property contained the _id of each attempted insert in a bulk operation.
Now, when a bulkwrite() or an insertMany() operation rejects one or more inserts, throwing an error, the error's result.insertedIds property will only contain the _id fields of successfully inserted documents.
Fixed edge case leak in findOne()
When running a findOne against a time series collection, the driver left the implicit session for the cursor un-ended due to the way the server returns the resulting cursor information. Now the cursor will always be cleaned up regardless of the outcome of the find operation.
Bug Fixes
NODE-5627: BulkWriteResult.insertedIds includes ids that were not inserted (#3870) (d766ae2)
NODE-5691: make findOne() close implicit session to avoid memory leak (#3889) (0d6c9cd)
This version was pushed to npm by dbx-node, a new releaser for mongodb since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/Diptenusarkar/Website-Template/network/alerts).
Bumps mongodb from 4.16.0 to 5.9.2.
Release notes
Sourced from mongodb's releases.
... (truncated)
Changelog
Sourced from mongodb's changelog.
... (truncated)
Commits
5047328
chore(5.x): release 5.9.2 [skip-ci] (#3925)8e56872
fix(NODE-5750): RTTPinger always sends legacy hello (#3922)6266734
test(NODE-5739): update data lake test scripts (#3918)eecdb6b
test(NODE-5737): update aws ecs task definition (#3917)a58f8ee
test(NODE-5733): removeat()
usage (#3900)0c16582
chore(5.x): release 5.9.1 [skip-ci] (#3878)0d6c9cd
fix(NODE-5691): make findOne() close implicit session to avoid memory leak (#...df0780e
test(NODE-5705): fix failing explain tests (#3894)efb5e93
test(NODE-5695): update azure configuration (#3892)2ab2189
ci(NODE-5668): remove custom dep tests against master and fix prose test 14 (...Maintainer changes
This version was pushed to npm by dbx-node, a new releaser for mongodb since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show