chore(deps): update dependency mongodb to v5.8.0 [security]
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| mongodb | 5.1.0 -> 5.8.0 |
GitHub Vulnerability Alerts
CVE-2021-32050
Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.
Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).
This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).
Release Notes
mongodb/node-mongodb-native (mongodb)
v5.8.0
The MongoDB Node.js team is pleased to announce version 5.8.0 of the mongodb package!
Release Notes
The AutoEncrypter interface has been deprecated
The AutoEncrypter interface was used internally but accidentally made public in the 4.x version of the driver. It is now deprecated and will be made internal in the next major release.
Kerberos support for 1.x and 2.x
Moves the kerberos dependency back to ^1.0.0 || ^2.0.0 to indicate support for both 1.x and 2.x. Support for 1.x is removed in 6.0.
Fixed accidental deprecation warning
Because of internal options handling, a deprecation was emitted for tlsCertificateFile when using tlsCertificateKeyFile. That has been corrected.
Remove credential availability on ConnectionPoolCreatedEvent
In order to avoid mistakenly printing credentials the ConnectionPoolCreatedEvent will replace the credentials option with an empty object. The credentials are still accessble via MongoClient options: client.options.credentials.
Features
- NODE-5399: use mongodb-js/saslprep instead of saslprep (#​3818) (c0d3927)
- NODE-5429: deprecate the
AutoEncrypterinterface (#​3764) (9bb0d95) - NODE-5465,NODE-5538: lower
@aws-sdk/credential-providersversion to 3.188.0 andzstdto^1.0.0(#​3821) (39ff81d)
Bug Fixes
- NODE-5489: set kerberos compatibility to ^1.0.0 || ^2.0.0 (#​3803) (c3b35b3)
- NODE-5495: do not emit deprecation warning when tlsCertificateKeyFile is specified and tlsCertificateFile is not (#​3810) (e81d4a2)
- NODE-5537: remove credentials from ConnectionPoolCreatedEvent options (#​3813) (4cf1e96)
Documentation
We invite you to try the mongodb library immediately, and report any issues to the NODE project.
v5.7.0
Features
- NODE-4929: Add OIDC Azure workflow (#​3670) (b3482f3)
- NODE-5008: add zstd and kerberos to peer deps (#​3691) (9561f32)
- NODE-5241: add option to return modified document (#​3710) (d9c2600)
- NODE-5243: add change stream split event (#​3745) (1c84f82)
- NODE-5274: deprecate write concern options (#​3752) (1f880ea)
- NODE-5287: deprecate ssl options (#​3743) (f9b5677)
- NODE-5319: mark search index api public (#​3741) (c015e54)
- NODE-5407: update bson to 5.4.0 (#​3754) (6a574cf)
Bug Fixes
- NODE-4977: load snappy lazily (#​3726) (865e658)
- NODE-5102: listDatabases nameOnly setting is sent as NaN (#​3742) (b97132e)
- NODE-5289: prevent scram auth from throwing TypeError if saslprep is not a function (#​3727) (e006347)
- NODE-5374: do not apply cursor transform in Cursor.hasNext (#​3746) (0668cd8)
v5.6.0
Features
- NODE-5019: add runCursorCommand API (#​3655) (4da926e)
- NODE-5071: support additional time series options (#​3667) (ccf555d)
- NODE-5314: add search index helpers (#​3672) (f647542)
Bug Fixes
- NODE-5249: remove strict flag from create collection options (#​3677) (be8faaf)
- NODE-5296: construct error messages for AggregateErrors in Node16+ (#​3682) (e03178e)
v5.5.0
Features
- NODE-4720: Add log messages to CMAP spec (#​3645) (b27f385)
- NODE-5004: dont create or drop ecc collections (#​3660) (2264fbb)
Bug Fixes
v5.4.0
Features
- NODE-4814: implement remaining severity logging methods (#​3629) (d7a8079)
- NODE-4815: stringify and truncate BSON documents in log messages (#​3635) (d6bd1d1)
- NODE-4970: deprecate collStats collection helper (#​3638) (325c4bc)
- NODE-5166: bump max wire version for 7.0 (#​3659) (561229b)
- NODE-5191: OIDC Auth Updates (#​3637) (c52a4ed)
- NODE-5207: deprecate unsupported runCommand options and add spec tests (#​3643) (d6d76b4)
Bug Fixes
v5.3.0
Features
- NODE-4696: add FaaS env information to client metadata (#​3626) (0424080)
- NODE-4774: deprecate cursor forEach (#​3622) (8d76a71)
- NODE-4791: deprecate duplicate bulk methods (#​3623) (2839e95)
- NODE-4795: deprecate addUser helper (#​3624) (53a0aae)
- NODE-5169: Implement emergency logger (#​3610) (d502eb0)
- NODE-5188: add alternative runtime detection to client metadata (#​3636) (2a26de3)
- NODE-5189: deprecate tcp keepalive options (#​3621) (cc7c75a)
Bug Fixes
- NODE-5042: relax SRV record validation to account for a dot suffix (#​3633) (ad15881)
- NODE-5171: allow
upsertedIdto be null inUpdateResult(#​3631) (4b5be21) - NODE-5201: prevent warning when default value for deprecation option is used (#​3646) (e7f6e4e)
v5.2.0
Features
- NODE-5035: enable OIDC authentication (#​3577) (35879f6)
- NODE-5036: reauthenticate OIDC and retry (#​3589) (a41846d)
- NODE-5077: automatic Azure kms credential refresh (#​3599) (8e87e5c)
Bug Fixes
- NODE-3998: metadata duplication in handshake (#​3615) (6d894d6)
- NODE-4518: error message with invalid authMechanism is provided (#undefined) (1a16b7e)
- NODE-4854: set timeout on write and reset on message (#​3582) (4a7b5ec)
- NODE-5106: prevent multiple mongo client connect()s from leaking topology (#​3596) (eb836bb)
- NODE-5126: find operations fail when passed an ObjectId as filter (#​3604) (2647b61)
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» 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.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.