Open renovate[bot] opened 2 months ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This PR contains the following updates:
6.3.0
->6.10.0
Release Notes
mongodb/node-mongodb-native (mongodb)
### [`v6.10.0`](https://redirect.github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#6100-2024-10-21) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.9.0...v6.10.0) ##### Features - **NODE-5838:** remove support for server 3.6 ([#4182](https://redirect.github.com/mongodb/node-mongodb-native/issues/4182)) ([7b71e1f](https://redirect.github.com/mongodb/node-mongodb-native/commit/7b71e1fdc179a9e0628a6b23519e3c00acaadf22)) - **NODE-6060:** set fire-and-forget protocol when writeConcern is w: 0 ([#4219](https://redirect.github.com/mongodb/node-mongodb-native/issues/4219)) ([643a875](https://redirect.github.com/mongodb/node-mongodb-native/commit/643a87553b5314abb44bcdc342a8bb8cb51d2052)) - **NODE-6289:** allow valid srv hostnames with less than 3 parts ([#4197](https://redirect.github.com/mongodb/node-mongodb-native/issues/4197)) ([3d5bd51](https://redirect.github.com/mongodb/node-mongodb-native/commit/3d5bd513b590f8de91a3edb0a6d2a9d81a4666e2)) - **NODE-6329:** client bulk write happy path ([#4206](https://redirect.github.com/mongodb/node-mongodb-native/issues/4206)) ([3d3da40](https://redirect.github.com/mongodb/node-mongodb-native/commit/3d3da4070b155d372477fd9b76ac9f1cd5e5011c)) - **NODE-6337:** implement client bulk write batching ([#4248](https://redirect.github.com/mongodb/node-mongodb-native/issues/4248)) ([d56e235](https://redirect.github.com/mongodb/node-mongodb-native/commit/d56e235cb7aa9d991cc1fb200c8a94e6a1b788fa)) - **NODE-6338:** implement client bulk write error handling ([#4262](https://redirect.github.com/mongodb/node-mongodb-native/issues/4262)) ([8def42d](https://redirect.github.com/mongodb/node-mongodb-native/commit/8def42ded5df4cb7d5ba1c65445d90042b1667c3)) - **NODE-6342:** support maxTimeMS for explain commands ([#4207](https://redirect.github.com/mongodb/node-mongodb-native/issues/4207)) ([20396e1](https://redirect.github.com/mongodb/node-mongodb-native/commit/20396e1bdba9c3fb89c789b1955f117ed28a3926)) - **NODE-6350:** add typescript support to client bulkWrite API ([#4257](https://redirect.github.com/mongodb/node-mongodb-native/issues/4257)) ([30c61f2](https://redirect.github.com/mongodb/node-mongodb-native/commit/30c61f2a926f1d8908b0800a4f9bb409e5d9581e)) - **NODE-6409:** new errors for unacknowledged bulk writes ([#4276](https://redirect.github.com/mongodb/node-mongodb-native/issues/4276)) ([7fde8dd](https://redirect.github.com/mongodb/node-mongodb-native/commit/7fde8ddc869623e9df3ea7753a46cae8d6e3e9dd)) - **NODE-6419:** deprecate explain options API for find and aggregate ([#4271](https://redirect.github.com/mongodb/node-mongodb-native/issues/4271)) ([a473de9](https://redirect.github.com/mongodb/node-mongodb-native/commit/a473de95091a7d89c3cbe1c44222b04d3695387e)) ##### Bug Fixes - **NODE-6394:** data events missed while awaiting drain ([#4249](https://redirect.github.com/mongodb/node-mongodb-native/issues/4249)) ([3f9d243](https://redirect.github.com/mongodb/node-mongodb-native/commit/3f9d24379afa1e1e953b77f46563fca5a26c8407)) - **NODE-6418:** change stream resumes infinitely after failed aggregates ([#4267](https://redirect.github.com/mongodb/node-mongodb-native/issues/4267)) ([6ecf198](https://redirect.github.com/mongodb/node-mongodb-native/commit/6ecf198f2e4805da42f651717c6e7f8182a8faeb)) - **NODE-6436:** only force majority write concern on commitTransaction retry ([#4284](https://redirect.github.com/mongodb/node-mongodb-native/issues/4284)) ([a7d1d43](https://redirect.github.com/mongodb/node-mongodb-native/commit/a7d1d43e96c6875dd325d17d87639c2338eb35f3)) ### [`v6.9.0`](https://redirect.github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#690-2024-09-12) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.8.2...v6.9.0) ##### Features - **NODE-5459:** add durations to connection pool events ([#4166](https://redirect.github.com/mongodb/node-mongodb-native/issues/4166)) ([7295695](https://redirect.github.com/mongodb/node-mongodb-native/commit/729569527e353a942200533f6150e748454c798d)) - **NODE-5614:** add support for explicit resource management ([#4177](https://redirect.github.com/mongodb/node-mongodb-native/issues/4177)) ([b3f3987](https://redirect.github.com/mongodb/node-mongodb-native/commit/b3f3987041ddf0aae86044f3fdd1364eecd26d46)) - **NODE-5754:** allow auto select family options ([#4185](https://redirect.github.com/mongodb/node-mongodb-native/issues/4185)) ([54efb7d](https://redirect.github.com/mongodb/node-mongodb-native/commit/54efb7d497f8efb9953f5d315267e299ed4cf5af)) - **NODE-5908:** support range v2 ([#4141](https://redirect.github.com/mongodb/node-mongodb-native/issues/4141)) ([de253a7](https://redirect.github.com/mongodb/node-mongodb-native/commit/de253a749f1dd1194b6fbc30c36e88f906981bd3)) - **NODE-6225:** add property ownership check before referencing `mongocryptdSpawnPath` and `mongocryptdSpawnArgs` ([#4151](https://redirect.github.com/mongodb/node-mongodb-native/issues/4151)) ([f48f8d3](https://redirect.github.com/mongodb/node-mongodb-native/commit/f48f8d36cf96c25ebf656e359e97b61dbfe7c4ed)) - **NODE-6244:** Bump max supported wire version and server version ([#4163](https://redirect.github.com/mongodb/node-mongodb-native/issues/4163)) ([45bc098](https://redirect.github.com/mongodb/node-mongodb-native/commit/45bc0982f0f00e1811baf2a613989a808783b8b1)) - **NODE-6252:** insertMany and bulkWrite permit readonly arrays ([#4175](https://redirect.github.com/mongodb/node-mongodb-native/issues/4175)) ([4b219d3](https://redirect.github.com/mongodb/node-mongodb-native/commit/4b219d361b6309dcec480c2bc7e54f548201c15b)) - **NODE-6278:** deprecate 3.6 servers ([#4178](https://redirect.github.com/mongodb/node-mongodb-native/issues/4178)) ([35d8840](https://redirect.github.com/mongodb/node-mongodb-native/commit/35d88404aad343dfbff502fd350bb22a241fed2a)) - **NODE-6309:** Mark range API as stable ([#4190](https://redirect.github.com/mongodb/node-mongodb-native/issues/4190)) ([f53e9d9](https://redirect.github.com/mongodb/node-mongodb-native/commit/f53e9d9cebdfaac5edd0e46ee46f1c2eb5b7f8ae)) - **NODE-6327:** new client bulk write types and builders ([#4205](https://redirect.github.com/mongodb/node-mongodb-native/issues/4205)) ([6d65ae7](https://redirect.github.com/mongodb/node-mongodb-native/commit/6d65ae77835cf144b540a5a344e1f10bb1988bc5)) - **NODE-6365:** pass through `allowPartialTrustChain` TLS flag ([#4228](https://redirect.github.com/mongodb/node-mongodb-native/issues/4228)) ([d6c147d](https://redirect.github.com/mongodb/node-mongodb-native/commit/d6c147d62a9aa96f0807e190190a06ed880df07f)) ##### Bug Fixes - **NODE-5720:** on pre-4.4 sharded servers, the node driver uses `error.writeConcern.code` to determine retryability ([#4155](https://redirect.github.com/mongodb/node-mongodb-native/issues/4155)) ([b26c328](https://redirect.github.com/mongodb/node-mongodb-native/commit/b26c32800ecb2658a0d9c779bdb741aa06a629d0)) - **NODE-6241:** allow Binary as local kms provider key for auto encryption ([#4165](https://redirect.github.com/mongodb/node-mongodb-native/issues/4165)) ([d85f827](https://redirect.github.com/mongodb/node-mongodb-native/commit/d85f827aca56603b5d7b64f853c190473be81b6f)) - **NODE-6259:** replace dynamically assigned length property with a static getter ([#4173](https://redirect.github.com/mongodb/node-mongodb-native/issues/4173)) ([320dde0](https://redirect.github.com/mongodb/node-mongodb-native/commit/320dde04aa1547dd838e7c790bb3432e2ca2bc19)) - **NODE-6276:** preserve top level error code MongoWriteConcernError ([#4183](https://redirect.github.com/mongodb/node-mongodb-native/issues/4183)) ([e902584](https://redirect.github.com/mongodb/node-mongodb-native/commit/e9025843e43bedb2326675184b6ce49b103e3c77)) - **NODE-6284:** make sparsity and trimFactor optional ([#4189](https://redirect.github.com/mongodb/node-mongodb-native/issues/4189)) ([8622545](https://redirect.github.com/mongodb/node-mongodb-native/commit/8622545c18d321ae17184cd43207652e454170fc)) - **NODE-6355:** respect utf8 validation options when iterating cursors ([#4214](https://redirect.github.com/mongodb/node-mongodb-native/issues/4214)) ([8bfe187](https://redirect.github.com/mongodb/node-mongodb-native/commit/8bfe18716197f58c025520da5d771b520e1b1350)) - **NODE-6362:** cache cursor deserialization options across deserialize calls ([#4221](https://redirect.github.com/mongodb/node-mongodb-native/issues/4221)) ([833eaa4](https://redirect.github.com/mongodb/node-mongodb-native/commit/833eaa41c5f379268be46408282b0c97323ea1bc)) - **NODE-6367:** enable mixed use of iteration APIs ([#4231](https://redirect.github.com/mongodb/node-mongodb-native/issues/4231)) ([08912c8](https://redirect.github.com/mongodb/node-mongodb-native/commit/08912c8a191937bdef921b4e9a4581b12ebf8b59)) ##### Performance Improvements - **NODE-5906:** optimize toArray to use batches ([#4171](https://redirect.github.com/mongodb/node-mongodb-native/issues/4171)) ([5565d50](https://redirect.github.com/mongodb/node-mongodb-native/commit/5565d5008812f03e9ff86a7b6326447ac5916244)) ### [`v6.8.2`](https://redirect.github.com/mongodb/node-mongodb-native/releases/tag/v6.8.2) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.8.1...v6.8.2) The MongoDB Node.js team is pleased to announce version 6.8.2 of the `mongodb` package! ##### Release Notes ##### Fixed mixed use of cursor.next() and cursor\[Symbol.asyncIterator] In 6.8.0, we inadvertently prevented the use of cursor.next() along with using for await syntax to iterate cursors. If your code made use of the following pattern and the call to cursor.next retrieved all your documents in the first batch, then the for-await loop would never be entered. This issue is now fixed. ```ts const firstDoc = await cursor.next(); for await (const doc of cursor) { // process doc // ... } ``` ##### Bug Fixes - **NODE-6367:** enable mixed use of iteration APIs ([#4234](https://redirect.github.com/mongodb/node-mongodb-native/issues/4234)) ([d63bf6f](https://redirect.github.com/mongodb/node-mongodb-native/commit/d63bf6fae303ec921335c363865e86c912286d6c)) ##### Documentation - [Reference](https://docs.mongodb.com/drivers/node/current/) - [API](https://mongodb.github.io/node-mongodb-native/6.8/) - [Changelog](https://redirect.github.com/mongodb/node-mongodb-native/blob/v6.8.2/HISTORY.md) We invite you to try the `mongodb` library immediately, and report any issues to the [NODE project](https://jira.mongodb.org/projects/NODE). ### [`v6.8.1`](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.8.0...0c6dbada1512ed1b2f217ceb07d446ce5cbd27b7) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.8.0...v6.8.1) ### [`v6.8.0`](https://redirect.github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#680-2024-06-27) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.7.0...v6.8.0) ##### Features - **NODE-5718:** add ReadConcernMajorityNotAvailableYet to retryable errors ([#4154](https://redirect.github.com/mongodb/node-mongodb-native/issues/4154)) ([4f32dec](https://redirect.github.com/mongodb/node-mongodb-native/commit/4f32decc354b222a6fe824a668d0b7b9db930f5f)) - **NODE-5801:** allow multiple providers providers per type ([#4137](https://redirect.github.com/mongodb/node-mongodb-native/issues/4137)) ([4d209ce](https://redirect.github.com/mongodb/node-mongodb-native/commit/4d209ce7aa92ac543f6b106d94a65508858ccf51)) - **NODE-5853:** support delegated KMIP data key option ([#4129](https://redirect.github.com/mongodb/node-mongodb-native/issues/4129)) ([aa429f8](https://redirect.github.com/mongodb/node-mongodb-native/commit/aa429f8c471b6ac23d9ffc33c9d40e1dc116c75b)) - **NODE-6136:** parse cursor responses on demand ([#4112](https://redirect.github.com/mongodb/node-mongodb-native/issues/4112)) ([3ed6a2a](https://redirect.github.com/mongodb/node-mongodb-native/commit/3ed6a2adf552159bc8526b096ace59f0d5800c96)) - **NODE-6157:** add signature to github releases ([#4119](https://redirect.github.com/mongodb/node-mongodb-native/issues/4119)) ([f38c5fe](https://redirect.github.com/mongodb/node-mongodb-native/commit/f38c5fe3990f279194523c906dc646bbcc29cbe9)) ##### Bug Fixes - **NODE-5801:** use more specific key typing for multiple KMS provider support ([#4146](https://redirect.github.com/mongodb/node-mongodb-native/issues/4146)) ([465ffd9](https://redirect.github.com/mongodb/node-mongodb-native/commit/465ffd97974b40e2bf2608907455c00c58c59cff)) - **NODE-6085:** add TS support for KMIP data key options ([#4128](https://redirect.github.com/mongodb/node-mongodb-native/issues/4128)) ([f790cc1](https://redirect.github.com/mongodb/node-mongodb-native/commit/f790cc181d87049e0018e1e5e859f90ee8156c0d)) - **NODE-6241:** allow `Binary` as local KMS provider key ([#4160](https://redirect.github.com/mongodb/node-mongodb-native/issues/4160)) ([fb724eb](https://redirect.github.com/mongodb/node-mongodb-native/commit/fb724eb6441408ad7f93c50d146a12c9b64d8333)) - **NODE-6242:** close becomes true after calling close when documents still remain ([#4161](https://redirect.github.com/mongodb/node-mongodb-native/issues/4161)) ([e3d70c3](https://redirect.github.com/mongodb/node-mongodb-native/commit/e3d70c3d224e1cd0888d79516c1b509921ac560d)) ### [`v6.7.0`](https://redirect.github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#670-2024-05-29) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.6.2...v6.7.0) ##### Features - **NODE-5464:** OIDC machine and callback workflow ([#3912](https://redirect.github.com/mongodb/node-mongodb-native/issues/3912)) ([2ba8434](https://redirect.github.com/mongodb/node-mongodb-native/commit/2ba8434d10aa02ddf281482cc02ef168c1b2965c)) ##### Bug Fixes - **NODE-6165:** useBigInt64 causes compareTopologyVersion to throw ([#4109](https://redirect.github.com/mongodb/node-mongodb-native/issues/4109)) ([21b729b](https://redirect.github.com/mongodb/node-mongodb-native/commit/21b729b983e2ddbe1dd9cff31f996825a45ec4e0)) ### [`v6.6.2`](https://redirect.github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#662-2024-05-15) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.6.1...v6.6.2) ##### Bug Fixes - **NODE-6171:** RTT set to zero when serverMonitoringMode=stream ([#4110](https://redirect.github.com/mongodb/node-mongodb-native/issues/4110)) ([7a7ec5b](https://redirect.github.com/mongodb/node-mongodb-native/commit/7a7ec5b95d0c38b377551c31d03130cd9f1882f6)) ### [`v6.6.1`](https://redirect.github.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#661-2024-05-06) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.6.0...v6.6.1) ##### Bug Fixes - **NODE-6151:** MongoClient connect does not keep Node.js running ([#4101](https://redirect.github.com/mongodb/node-mongodb-native/issues/4101)) ([7e0d9e6](https://redirect.github.com/mongodb/node-mongodb-native/commit/7e0d9e689859e20ad0fd7aae047fc349e24355c9)) ### [`v6.6.0`](https://redirect.github.com/mongodb/node-mongodb-native/releases/tag/v6.6.0) [Compare Source](https://redirect.github.com/mongodb/node-mongodb-native/compare/v6.5.0...v6.6.0) The MongoDB Node.js team is pleased to announce version 6.6.0 of the `mongodb` package! #### Release Notes ##### Aggregation pipelines can now add stages manually When creating an aggregation pipeline cursor, a new generic method `addStage()` has been added in the fluid API for users to add [aggregation pipeline stages](https://www.mongodb.com/docs/manual/reference/operator/aggregation-pipeline/) in a general manner. ```ts const documents = await users.aggregate().addStage({ $project: { name: true } }).toArray(); ``` Thank you [@prenaissance](https://redirect.github.com/prenaissance) for contributing this feature! ##### cause and package name included for `MongoMissingDependencyErrors` `MongoMissingDependencyError`s now include a `cause` and a `dependencyName` field, which can be used to programmatically determine which package is missing and why the driver failed to load it. For example: MongoMissingDependencyError: The iHateJavascript module does not exist at findOne (mongodb/main.js:7:11) at Object.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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 was generated by Mend Renovate. View the repository job log.