Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency mongodb to v6 #138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 30, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongodb 3.5.11 -> 6.14.2 age adoption passing confidence

Release Notes

mongodb/node-mongodb-native (mongodb)

v6.14.2

Compare Source

Bug Fixes
  • NODE-6803: kms proxy socket creates unhandled rejection (#​4444) (ed69cf9)

v6.14.1

Compare Source

Bug Fixes

v6.14.0

Compare Source

Features
  • NODE-6676: add support for nsType in change stream create events (#​4431) (7800067)
  • NODE-6773: add support for $lookup with automatic encryption (#​4427) (965b21a)
Bug Fixes
  • NODE-6765: FindOneAndUpdateOptions supports aggregation expressions (#​4423) (421ddeb)
  • NODE-6792: use isUint8Array from driver's utils instead of util/types (#​4436) (dfe1fba)
  • NODE-6794: revert @aws-sdk/credential-providers peer compatibility change (#​4437) (488c407)

v6.13.1

Compare Source

Bug Fixes
  • NODE-6407: use conversationId returned from server in saslContinue (#​4368) (fbefa6b)
  • NODE-6613: Update error messages when primaries go stale (#​4397) (6528c8d)
  • NODE-6690: Remove extraneous Document in replaceOne return type (#​4383) (6c81d4e)
  • NODE-6763: pass WriteConcernOptions instead on WriteConcernSettings (#​4421) (26f15d7)
  • NODE-6777: update BSON to 6.10.3 (#​4428) (db5b9e0)

v6.13.0

Compare Source

Features
Bug Fixes
  • NODE-5225: concurrent MongoClient.close() calls each attempt to close the client (#​4376) (9419af7)
  • NODE-6340: OIDC reauth uses caches speculative auth result (#​4379) (8b2b7fd)
Performance Improvements
  • NODE-6452: Optimize CommandStartedEvent and CommandSucceededEvent constructors (#​4371) (41b066b)
  • NODE-6616: shortcircuit logging ejson.stringify (#​4377) (c1bcf0d)

v6.12.0

Compare Source

Features
Bug Fixes
  • NODE-6583: upgrade to BSON v6.10.1 to remove internal unbounded type cache (#​4338) (249c279)
  • NODE-6600: set object mode correctly for message chunking in SizedMessageTransform (#​4345) (5558573)
  • NODE-6602: only wrap errors from SOCKS in network errors (#​4347) (ed83f36)

v6.11.0

Compare Source

Features
Bug Fixes
  • NODE-6374: MongoOperationTimeoutError inherits MongoRuntimeError (#​4237) (9fb896a)
  • NODE-6412: read stale response from previously timed out connection (#​4273) (fd8f3bd)
  • NODE-6454: use timeoutcontext for state machine execute() cursor options (#​4291) (5dd8ee5)
  • NODE-6469: pool is cleared before connection checkin on error (#​4296) (06a2e2c)
  • NODE-6523: deleteMany in gridfs passes timeoutMS to predicate, not options (#​4319) (1965ed5)
Performance Improvements
  • NODE-6525: remove setPrototype and defineProperty from hot path (#​4321) (48ed47e)

v6.10.0

Compare Source

Features
Bug Fixes
  • NODE-6394: data events missed while awaiting drain (#​4249) (3f9d243)
  • NODE-6418: change stream resumes infinitely after failed aggregates (#​4267) (6ecf198)
  • NODE-6436: only force majority write concern on commitTransaction retry (#​4284) (a7d1d43)

v6.9.0

Compare Source

Features
Bug Fixes
  • NODE-5720: on pre-4.4 sharded servers, the node driver uses error.writeConcern.code to determine retryability (#​4155) (b26c328)
  • NODE-6241: allow Binary as local kms provider key for auto encryption (#​4165) (d85f827)
  • NODE-6259: replace dynamically assigned length property with a static getter (#​4173) (320dde0)
  • NODE-6276: preserve top level error code MongoWriteConcernError (#​4183) (e902584)
  • NODE-6284: make sparsity and trimFactor optional (#​4189) (8622545)
  • NODE-6355: respect utf8 validation options when iterating cursors (#​4214) (8bfe187)
  • NODE-6362: cache cursor deserialization options across deserialize calls (#​4221) (833eaa4)
  • NODE-6367: enable mixed use of iteration APIs (#​4231) (08912c8)
Performance Improvements

v6.8.2

Compare Source

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.

const firstDoc = await cursor.next();

for await (const doc of cursor) {
    // process doc
    // ...
}
Bug Fixes

Documentation

We invite you to try the mongodb library immediately, and report any issues to the NODE project.

v6.8.1

Compare Source

The MongoDB Node.js team is pleased to announce version 6.8.1 of the mongodb package!

Release Notes

Fixed enableUtf8Validation option

Starting in v6.8.0 we inadvertently removed the ability to disable UTF-8 validation when deserializing BSON. Validation is normally a good thing, but it was always meant to be configurable and the recent Node.js runtime issues (v22.7.0) make this option indispensable for avoiding errors from mistakenly generated invalid UTF-8 bytes.

Bug Fixes
  • NODE-6355: respect utf8 validation option when iterating cursors (#​4220) (886cefb)

Documentation

We invite you to try the mongodb library immediately, and report any issues to the NODE project.

v6.8.0

Compare Source

Features
Bug Fixes
  • NODE-5801: use more specific key typing for multiple KMS provider support (#​4146) (465ffd9)
  • NODE-6085: add TS support for KMIP data key options (#​4128) (f790cc1)
  • NODE-6241: allow Binary as local KMS provider key (#​4160) (fb724eb)
  • NODE-6242: close becomes true after calling close when documents still remain (#​4161) (e3d70c3)

v6.7.0

Compare Source

Features
Bug Fixes
  • NODE-6165: useBigInt64 causes compareTopologyVersion to throw (#​4109) (21b729b)

v6.6.2

Compare Source

Bug Fixes
  • NODE-6171: RTT set to zero when serverMonitoringMode=stream (#​4110) (7a7ec5b)

v6.6.1

Compare Source

Bug Fixes
  • NODE-6151: MongoClient connect does not keep Node.js running (#​4101) (7e0d9e6)

v6.6.0

Compare Source

Features
  • NODE-3639: add a general stage to the aggregation pipeline builder (#​4079) (8fca1aa)
  • NODE-5678: add options parsing support for timeoutMS and defaultTimeoutMS (#​4068) (ddd1e81)
  • NODE-5762: include cause and package name for all MongoMissingDependencyErrors (#​4067) (62ea94b)
  • NODE-5825: add minRoundTripTime to ServerDescription and change roundTripTime to a moving average (#​4059) (0e3d6ea)
  • NODE-5919: support new type option in create search index helpers (#​4060) (3598c23)
  • NODE-6020: upgrade BSON to ^6.5.0 (#​4035) (8ab2055)
Bug Fixes
  • NODE-3681: Typescript error in Collection.findOneAndModify UpdateFilter $currentDate (#​4047) (a8670a7)
  • NODE-5530: make topology descriptions JSON stringifiable (#​4070) (3a0e011)
  • NODE-5745: ignore Read/Write Concern in Atlas Search Index Helpers (#​4042) (67d7bab)
  • NODE-5925: driver throws error when non-read operation in a transaction has a ReadPreferenceMode other than 'primary' (#​4075) (39fc198)
  • NODE-5971: attach v to createIndexes command when version is specified (#​4043) (1879a04)
  • NODE-5999: Change TopologyDescription.error type to MongoError (#​4028) (30432e8)
  • NODE-6019: indexExists always returns false when full is set to true (#​4034) (0ebc1ac)
  • NODE-6029: update types for collection listing indexes (#​4072) (232bf3c)
  • NODE-6051: only provide expected allowed keys to libmongocrypt after fetching aws kms credentials (#​4057) (c604e74)
  • NODE-6066: ClusterTime.signature can be undefined (#​4069) (ce55ca9)
Performance Improvements
  • NODE-6127: move error construction into setTimeout callback (#​4094) (6abc074)

v6.5.0

Compare Source

Features
  • NODE-5968: container and Kubernetes awareness in client metadata (#​4005) (28b7040)
  • NODE-5988: Provide access to raw results doc on MongoServerError (#​4016) (c023242)
  • NODE-6008: deprecate CloseOptions interface (#​4030) (f6cd8d9)
Bug Fixes
  • NODE-5636: generate _ids using pkFactory in bulk write operations (#​4025) (fbb5059)
  • NODE-5981: read preference not applied to commands properly (#​4010) (937c9c8)
  • NODE-5985: throw Nodejs' certificate expired error when TLS fails to connect instead of CERT_HAS_EXPIRED (#​4014) (057c223)
  • NODE-5993: memory leak in the Connection class (#​4022) (69de253)
Performance Improvements

v6.4.0

Compare Source

Features
  • NODE-3449: Add serverConnectionId to Command Monitoring Spec (735f7aa)
  • NODE-3470: retry selects another mongos (#​3963) (84959ee)
  • NODE-3689: require hello command for connection handshake to use OP_MSG disallowing OP_QUERY (#​3938) (ce7df0f)
  • NODE-4686: Add log messages to CLAM (#​3955) (e3bfa30)
  • NODE-4687: Add logging to server selection (#​3946) (7f3ce0b)
  • NODE-4719: add SDAM Logging Spec (#​3940) (a3c0298)
  • NODE-4847: Add config error handling to logging (#​3970) (8f7bb59)
  • NODE-5717: make ExceededTimeLimit retryable reads error (#​3947) (106ab09)
  • NODE-5885: upgrade BSON to ^6.3.0 (#​3983) (9401d09)
  • NODE-5939: Implement 6.x: cache the AWS credentials provider in the MONGODB-AWS auth logic (#​3991) (e0a37e5)
  • NODE-5978: upgrade BSON to ^6.4.0 (#​4007) (90f2f70)
Bug Fixes
  • NODE-5127: implement reject kmsRequest on server close (#​3964) (568e05f)
  • NODE-5609: node driver omits base64 padding in sasl-continue command (#​3975) (b7d28d3)
  • NODE-5765: change type for countDocuments (#​3932) (22cae0f)
  • NODE-5791: type error with $addToSet in bulkWrite (#​3953) (b93d405)
  • NODE-5818: Add feature flagging to server selection logging (#​3974) (55203ef)
  • NODE-5839: support for multibyte code-points in stringifyWithMaxLen (#​3979) (aed1cf0)
  • NODE-5840: heartbeat duration includes socket creation (#​3973) (a42039b)
  • NODE-5901: propagate errors to transformed stream in cursor (#​3985) (ecfc615)
  • NODE-5944: make AWS session token optional (#​4002) (f26de76)
Performance Improvements
  • NODE-5771: improve new connection (#​3948) (a4776cf)
  • NODE-5854: Conditional logger instantiation and precompute willLog perf fix (#​3984) (a63fbc2)
  • NODE-5928: consolidate signal use and abort promise wrap (#​3992) (38742c2)

v6.3.0

Compare Source

Features
Bug Fixes
  • NODE-4863: do not use RetryableWriteError for non-server errors (#​3914) (08c9fb4)
  • NODE-5709: bump mongodb-connection-string-url to 3.0.0 (#​3909) (1c3dc02)
  • NODE-5749: RTTPinger always sends legacy hello (#​3921) (ebbfb8a)

v6.2.0

Compare Source

Features
Bug Fixes
  • NODE-5496: remove client-side collection and database name check validation (#​3873) (98550c6)
  • NODE-5628: bulkWriteResult.insertedIds does not filter out _ids that are not actually inserted (#​3867) (09f2a67)
  • NODE-5706: make findOne() close implicit session to avoid memory leak (#​3897) (995d138)

v6.1.0

Compare Source

Features
Bug Fixes
  • NODE-5551: set AWS region from environment variable for STSClient (#​3831) (e9a5079)
  • NODE-5588: recursive calls to next cause memory leak (#​3841) (9a8fdb2)

v6.0.0

Compare Source

⚠ BREAKING CHANGES
  • NODE-5584: adopt bson v6 and mongodb-client-encryption v6 (#​3845)
  • NODE-5484: mark MongoError for internal use and remove Node14 cause assignment logic (#​3800)
  • NODE-4788: use implementer Writable methods for GridFSBucketWriteStream (#​3808)
  • NODE-4986: remove callbacks from ClientEncryption encrypt, decrypt, and createDataKey (#​3797)
  • NODE-5490: bump kerberos compatibility to ^2.0.1 (#​3798)
  • NODE-3568: ensure includeResultsMetadata is false by default (#​3786)
  • NODE-3989: only accept true and false for boolean options (#​3791)
  • NODE-5233: prevent session from one client from being used on another (#​3790)
  • NODE-5444: emit deprecation warning for useNewUrlParser and useUnifiedTopology (#​3792)
  • NODE-5470: convert remaining FLE to TS and drop support for onKMSProvidersRefresh (#​3787)
  • NODE-5508: remove EvalOperation and EvalOptions (#​3795)
  • NODE-3920: validate options are not repeated in connection string (#​3788)
  • NODE-3924: read tls files async (#​3776)
  • NODE-5430: make AutoEncrypter and MongoClient.autoEncrypter internal (#​3789)
  • NODE-4961: remove command result from commit and abort transaction APIs (#​3784)
  • NODE-2014: return executor result from withSession and withTransaction (#​3783)
  • NODE-5409: allow socks to be installed optionally (#​3782)
  • NODE-4796: remove addUser and collection.stats APIs (#​3781)
  • NODE-4936: remove unsupported options from db.command and admin.command (#​3775)
  • NODE-5228: remove unneeded fields from ConnectionPoolCreatedEvent.options (#​3772)
  • NODE-5190: remove deprecated keep alive options (#​3771)
  • NODE-5186: remove duplicate BulkWriteResult accessors (#​3766)
  • NODE-5376: remove deprecated ssl options (#​3755)
  • NODE-5415: bump minimum Node.js version to v16.20.1 (#​3760)
Features
  • NODE-2014: return executor result from withSession and withTransaction (#​3783) (65aa288)
  • NODE-3568: ensure includeResultsMetadata is false by default (#​3786) (fee8d3e)
  • NODE-3920: validate options are not repeated in connection string (#​3788) (11631a2)
  • NODE-3924: read tls files async (#​3776) (68adaf1)
  • NODE-3989: only accept true and false for boolean options (#​3791) (e2e36cc)
  • NODE-4796: remove addUser and collection.stats APIs (#​3781) (e79ac9d)
  • NODE-4961: remove command result from commit and abort transaction APIs (#​3784) (71c5936)
  • NODE-4986: remove callbacks from ClientEncryption encrypt, decrypt, and createDataKey (#​3797) (51a573f)
  • NODE-5186: remove duplicate BulkWriteResult accessors (#​3766) (8693987)
  • NODE-5190: remove deprecated keep alive options (#​3771) (7ade907)
  • NODE-5233: prevent session from one client from being used on another (#​3790) (9268b35)
  • NODE-5376: remove deprecated ssl options (#​3755) (ee56c8e)
  • NODE-5396: add mongodb-js/saslprep as a required dependency (#​3815) (bd031fc)
  • NODE-5409: allow socks to be installed optionally (#​3782) (787bdbf)
  • NODE-5415: bump minimum Node.js version to v16.20.1 ([#​3

@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from b25720a to 22c9415 Compare September 16, 2023 21:05
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 22c9415 to 2c6c338 Compare October 22, 2023 15:38
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 2c6c338 to 092d306 Compare November 18, 2023 18:36
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 092d306 to 2c76631 Compare March 2, 2024 21:52
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 2c76631 to b4a6ffb Compare March 13, 2024 21:37
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch 2 times, most recently from 0c33c34 to c3f1807 Compare May 8, 2024 22:24
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from c3f1807 to 5cf40cf Compare May 17, 2024 20:27
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 5cf40cf to a884ea6 Compare May 31, 2024 20:19
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from a884ea6 to ee94553 Compare June 29, 2024 22:14
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch 3 times, most recently from ceb37ad to c49fcca Compare September 14, 2024 19:24
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from c49fcca to 92a2d52 Compare October 23, 2024 22:35
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 92a2d52 to 536239e Compare November 24, 2024 17:19
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 536239e to 8d98a65 Compare December 12, 2024 20:23
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 8d98a65 to 45daf0b Compare February 2, 2025 01:07
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from 45daf0b to 601a31f Compare February 22, 2025 22:51
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch 2 times, most recently from 2c5831a to e3abbf0 Compare March 5, 2025 21:51
Dependency update (patch)
@renovate renovate bot force-pushed the renovate/mongodb-6.x branch from e3abbf0 to 696b82f Compare March 6, 2025 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants