shelfio / jest-mongodb

Jest preset for MongoDB in-memory server
MIT License
587 stars 83 forks source link

chore(deps): update dependency mongodb to v6 #431

Closed renovate[bot] closed 7 months ago

renovate[bot] commented 10 months ago

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongodb 3.x.x \|\| 4.x \|\| 5.x -> 3.x.x \|\| 4.x \|\| 5.x \|\| 6.x age adoption passing confidence

Release Notes

mongodb/node-mongodb-native (mongodb) ### [`v6.2.0`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#620-2023-10-19) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v6.1.0...v6.2.0) ##### Features - **NODE-5613:** add `awaited` field to SDAM heartbeat events ([#​3895](https://togithub.com/mongodb/node-mongodb-native/issues/3895)) ([b50aadc](https://togithub.com/mongodb/node-mongodb-native/commit/b50aadca7e5e471283ebaccff5b98c099c57fa55)) - update bson to 6.2.0 ([#​3898](https://togithub.com/mongodb/node-mongodb-native/issues/3898)) ([32b7176](https://togithub.com/mongodb/node-mongodb-native/commit/32b7176af6af4d6bd455200da64d0fde07ce0806)) ##### Bug Fixes - **NODE-5496:** remove client-side collection and database name check validation ([#​3873](https://togithub.com/mongodb/node-mongodb-native/issues/3873)) ([98550c6](https://togithub.com/mongodb/node-mongodb-native/commit/98550c6ad5b7c268707d3e9e2367ca56f71298ad)) - **NODE-5628:** bulkWriteResult.insertedIds does not filter out \_ids that are not actually inserted ([#​3867](https://togithub.com/mongodb/node-mongodb-native/issues/3867)) ([09f2a67](https://togithub.com/mongodb/node-mongodb-native/commit/09f2a6796b4f1ecec4880678e19375a07e446949)) - **NODE-5706:** make findOne() close implicit session to avoid memory leak ([#​3897](https://togithub.com/mongodb/node-mongodb-native/issues/3897)) ([995d138](https://togithub.com/mongodb/node-mongodb-native/commit/995d13805d4d4e35eac41c2264979dd84b1e4dd3)) ### [`v6.1.0`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#610-2023-09-14) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v6.0.0...v6.1.0) ##### Features - **NODE-5634:** bump bson version to ^6.1.0 ([#​3866](https://togithub.com/mongodb/node-mongodb-native/issues/3866)) ([c6edabb](https://togithub.com/mongodb/node-mongodb-native/commit/c6edabb8fa4c6f8d80b028a96eacd26975460f8a)) ##### Bug Fixes - **NODE-5551:** set AWS region from environment variable for STSClient ([#​3831](https://togithub.com/mongodb/node-mongodb-native/issues/3831)) ([e9a5079](https://togithub.com/mongodb/node-mongodb-native/commit/e9a50793143c53f5f70a720e17cf6683f56f7229)) - **NODE-5588:** recursive calls to next cause memory leak ([#​3841](https://togithub.com/mongodb/node-mongodb-native/issues/3841)) ([9a8fdb2](https://togithub.com/mongodb/node-mongodb-native/commit/9a8fdb22853a7a84dfa8b8e87a6b5d808ae00b6e)) ### [`v6.0.0`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#600-2023-08-28) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v5.9.1...v6.0.0) ##### ⚠ BREAKING CHANGES - **NODE-5584:** adopt bson v6 and mongodb-client-encryption v6 ([#​3845](https://togithub.com/mongodb/node-mongodb-native/issues/3845)) - **NODE-5484:** mark MongoError for internal use and remove Node14 cause assignment logic ([#​3800](https://togithub.com/mongodb/node-mongodb-native/issues/3800)) - **NODE-4788:** use implementer Writable methods for GridFSBucketWriteStream ([#​3808](https://togithub.com/mongodb/node-mongodb-native/issues/3808)) - **NODE-4986:** remove callbacks from ClientEncryption encrypt, decrypt, and createDataKey ([#​3797](https://togithub.com/mongodb/node-mongodb-native/issues/3797)) - **NODE-5490:** bump kerberos compatibility to ^2.0.1 ([#​3798](https://togithub.com/mongodb/node-mongodb-native/issues/3798)) - **NODE-3568:** ensure includeResultsMetadata is false by default ([#​3786](https://togithub.com/mongodb/node-mongodb-native/issues/3786)) - **NODE-3989:** only accept true and false for boolean options ([#​3791](https://togithub.com/mongodb/node-mongodb-native/issues/3791)) - **NODE-5233:** prevent session from one client from being used on another ([#​3790](https://togithub.com/mongodb/node-mongodb-native/issues/3790)) - **NODE-5444:** emit deprecation warning for useNewUrlParser and useUnifiedTopology ([#​3792](https://togithub.com/mongodb/node-mongodb-native/issues/3792)) - **NODE-5470:** convert remaining FLE to TS and drop support for `onKMSProvidersRefresh` ([#​3787](https://togithub.com/mongodb/node-mongodb-native/issues/3787)) - **NODE-5508:** remove EvalOperation and EvalOptions ([#​3795](https://togithub.com/mongodb/node-mongodb-native/issues/3795)) - **NODE-3920:** validate options are not repeated in connection string ([#​3788](https://togithub.com/mongodb/node-mongodb-native/issues/3788)) - **NODE-3924:** read tls files async ([#​3776](https://togithub.com/mongodb/node-mongodb-native/issues/3776)) - **NODE-5430:** make AutoEncrypter and MongoClient.autoEncrypter internal ([#​3789](https://togithub.com/mongodb/node-mongodb-native/issues/3789)) - **NODE-4961:** remove command result from commit and abort transaction APIs ([#​3784](https://togithub.com/mongodb/node-mongodb-native/issues/3784)) - **NODE-2014:** return executor result from withSession and withTransaction ([#​3783](https://togithub.com/mongodb/node-mongodb-native/issues/3783)) - **NODE-5409:** allow socks to be installed optionally ([#​3782](https://togithub.com/mongodb/node-mongodb-native/issues/3782)) - **NODE-4796:** remove addUser and collection.stats APIs ([#​3781](https://togithub.com/mongodb/node-mongodb-native/issues/3781)) - **NODE-4936:** remove unsupported options from db.command and admin.command ([#​3775](https://togithub.com/mongodb/node-mongodb-native/issues/3775)) - **NODE-5228:** remove unneeded fields from ConnectionPoolCreatedEvent.options ([#​3772](https://togithub.com/mongodb/node-mongodb-native/issues/3772)) - **NODE-5190:** remove deprecated keep alive options ([#​3771](https://togithub.com/mongodb/node-mongodb-native/issues/3771)) - **NODE-5186:** remove duplicate BulkWriteResult accessors ([#​3766](https://togithub.com/mongodb/node-mongodb-native/issues/3766)) - **NODE-5376:** remove deprecated ssl options ([#​3755](https://togithub.com/mongodb/node-mongodb-native/issues/3755)) - **NODE-5415:** bump minimum Node.js version to v16.20.1 ([#​3760](https://togithub.com/mongodb/node-mongodb-native/issues/3760)) ##### Features - **NODE-2014:** return executor result from withSession and withTransaction ([#​3783](https://togithub.com/mongodb/node-mongodb-native/issues/3783)) ([65aa288](https://togithub.com/mongodb/node-mongodb-native/commit/65aa288a28a9e8859f4fd75f176961ef3d9747f0)) - **NODE-3568:** ensure includeResultsMetadata is false by default ([#​3786](https://togithub.com/mongodb/node-mongodb-native/issues/3786)) ([fee8d3e](https://togithub.com/mongodb/node-mongodb-native/commit/fee8d3e094846222035962c75a207e14b70325c7)) - **NODE-3920:** validate options are not repeated in connection string ([#​3788](https://togithub.com/mongodb/node-mongodb-native/issues/3788)) ([11631a2](https://togithub.com/mongodb/node-mongodb-native/commit/11631a2b63e7102602ce2b2e452fd61ee5a46d05)) - **NODE-3924:** read tls files async ([#​3776](https://togithub.com/mongodb/node-mongodb-native/issues/3776)) ([68adaf1](https://togithub.com/mongodb/node-mongodb-native/commit/68adaf1e5d5ee8cf8f0468380d7a7b3113facc07)) - **NODE-3989:** only accept true and false for boolean options ([#​3791](https://togithub.com/mongodb/node-mongodb-native/issues/3791)) ([e2e36cc](https://togithub.com/mongodb/node-mongodb-native/commit/e2e36ccbb30de217d7ca2014d8591b574360d557)) - **NODE-4796:** remove addUser and collection.stats APIs ([#​3781](https://togithub.com/mongodb/node-mongodb-native/issues/3781)) ([e79ac9d](https://togithub.com/mongodb/node-mongodb-native/commit/e79ac9da9fce35e1ea9b26fc4a97a79826a6a687)) - **NODE-4961:** remove command result from commit and abort transaction APIs ([#​3784](https://togithub.com/mongodb/node-mongodb-native/issues/3784)) ([71c5936](https://togithub.com/mongodb/node-mongodb-native/commit/71c593685735a08d5d7503120464a7c23ba20a46)) - **NODE-4986:** remove callbacks from ClientEncryption encrypt, decrypt, and createDataKey ([#​3797](https://togithub.com/mongodb/node-mongodb-native/issues/3797)) ([51a573f](https://togithub.com/mongodb/node-mongodb-native/commit/51a573fe99506b81c7ab808898eb9eb63f58f600)) - **NODE-5186:** remove duplicate BulkWriteResult accessors ([#​3766](https://togithub.com/mongodb/node-mongodb-native/issues/3766)) ([8693987](https://togithub.com/mongodb/node-mongodb-native/commit/8693987b66dff745c8421ac9cdc29dc772b1f675)) - **NODE-5190:** remove deprecated keep alive options ([#​3771](https://togithub.com/mongodb/node-mongodb-native/issues/3771)) ([7ade907](https://togithub.com/mongodb/node-mongodb-native/commit/7ade9079fa78538069604a5b42ad13ffbb80af46)) - **NODE-5233:** prevent session from one client from being used on another ([#​3790](https://togithub.com/mongodb/node-mongodb-native/issues/3790)) ([9268b35](https://togithub.com/mongodb/node-mongodb-native/commit/9268b35d5ba0736ff38e691024d89f1ac6c28515)) - **NODE-5376:** remove deprecated ssl options ([#​3755](https://togithub.com/mongodb/node-mongodb-native/issues/3755)) ([ee56c8e](https://togithub.com/mongodb/node-mongodb-native/commit/ee56c8eebf22b2f90885513e699d209c63379846)) - **NODE-5396:** add `mongodb-js/saslprep` as a required dependency ([#​3815](https://togithub.com/mongodb/node-mongodb-native/issues/3815)) ([bd031fc](https://togithub.com/mongodb/node-mongodb-native/commit/bd031fc26bdbae7ac8a73cccc06e11da7160d656)) - **NODE-5409:** allow socks to be installed optionally ([#​3782](https://togithub.com/mongodb/node-mongodb-native/issues/3782)) ([787bdbf](https://togithub.com/mongodb/node-mongodb-native/commit/787bdbf3f7bd974aca1347de427e973217c90009)) - **NODE-5415:** bump minimum Node.js version to v16.20.1 ([#​3760](https://togithub.com/mongodb/node-mongodb-native/issues/3760)) ([de158b2](https://togithub.com/mongodb/node-mongodb-native/commit/de158b245d809e6600c178303a033997d4181ade)) - **NODE-5430:** make AutoEncrypter and MongoClient.autoEncrypter internal ([#​3789](https://togithub.com/mongodb/node-mongodb-native/issues/3789)) ([b16ef9e](https://togithub.com/mongodb/node-mongodb-native/commit/b16ef9ed2cbb141c1c8c071ed0d51bc0993dc423)) - **NODE-5444:** emit deprecation warning for useNewUrlParser and useUnifiedTopology ([#​3792](https://togithub.com/mongodb/node-mongodb-native/issues/3792)) ([c08060d](https://togithub.com/mongodb/node-mongodb-native/commit/c08060d074dfe6f222feb360589ac52f9fa90b6d)) - **NODE-5470:** convert remaining FLE to TS and drop support for `onKMSProvidersRefresh` ([#​3787](https://togithub.com/mongodb/node-mongodb-native/issues/3787)) ([844aa52](https://togithub.com/mongodb/node-mongodb-native/commit/844aa52640baf69c0b6dacdb3d11add4ca24d8f2)) - **NODE-5484:** mark MongoError for internal use and remove Node14 cause assignment logic ([#​3800](https://togithub.com/mongodb/node-mongodb-native/issues/3800)) ([a17b0af](https://togithub.com/mongodb/node-mongodb-native/commit/a17b0af1a2ae112b7e96da86a8761d5c15d616cf)) - **NODE-5490:** bump kerberos compatibility to ^2.0.1 ([#​3798](https://togithub.com/mongodb/node-mongodb-native/issues/3798)) ([1044be1](https://togithub.com/mongodb/node-mongodb-native/commit/1044be14ca69ea4c367bf79735894deadf166d6e)) - **NODE-5508:** remove EvalOperation and EvalOptions ([#​3795](https://togithub.com/mongodb/node-mongodb-native/issues/3795)) ([225cb81](https://togithub.com/mongodb/node-mongodb-native/commit/225cb8184295c6ad934571c2a0cb7ef6bcf8af50)) - **NODE-5566:** add ability to provide CRL file via tlsCRLFile ([#​3834](https://togithub.com/mongodb/node-mongodb-native/issues/3834)) ([33c86c9](https://togithub.com/mongodb/node-mongodb-native/commit/33c86c923e0ccfcb61f670c31efd145542bd4980)) - **NODE-5584:** adopt bson v6 and mongodb-client-encryption v6 ([#​3845](https://togithub.com/mongodb/node-mongodb-native/issues/3845)) ([7bef363](https://togithub.com/mongodb/node-mongodb-native/commit/7bef3632da73f20431952b99a0d11e9aac001c12)) ##### Bug Fixes - **NODE-4788:** use implementer Writable methods for GridFSBucketWriteStream ([#​3808](https://togithub.com/mongodb/node-mongodb-native/issues/3808)) ([7955610](https://togithub.com/mongodb/node-mongodb-native/commit/7955610c67eb500af683866aed631d06521345cc)) - **NODE-4936:** remove unsupported options from db.command and admin.command ([#​3775](https://togithub.com/mongodb/node-mongodb-native/issues/3775)) ([52cd649](https://togithub.com/mongodb/node-mongodb-native/commit/52cd649caf2e64aef6d3984c5f2d24af03db4c51)) - **NODE-5228:** remove unneeded fields from ConnectionPoolCreatedEvent.options ([#​3772](https://togithub.com/mongodb/node-mongodb-native/issues/3772)) ([7a91714](https://togithub.com/mongodb/node-mongodb-native/commit/7a9171411e6afeb68d8611e15f49b872648dbc9c)) - **NODE-5412:** drop aws sdk version to match node18 runtime ([#​3809](https://togithub.com/mongodb/node-mongodb-native/issues/3809)) ([1e96e49](https://togithub.com/mongodb/node-mongodb-native/commit/1e96e49b607791d1c1517e65cf88f51821898b0b)) - **NODE-5548:** ensure that tlsCertificateKeyFile maps to cert and key ([#​3819](https://togithub.com/mongodb/node-mongodb-native/issues/3819)) ([a0955bd](https://togithub.com/mongodb/node-mongodb-native/commit/a0955bdf935113abbb28d7c7011abc04027be2b0)) - **NODE-5592:** withTransaction return type ([#​3846](https://togithub.com/mongodb/node-mongodb-native/issues/3846)) ([05d2725](https://togithub.com/mongodb/node-mongodb-native/commit/05d2725bf179e4c35ff3735856313bca062c77a8))

Configuration

📅 Schedule: Branch creation - "before 6am on Thursday" in timezone Europe/Kiev, 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 has been generated by Mend Renovate. View repository job log here.

MumiaIrrequieta commented 8 months ago

Anything I can do to help this PR moving forward? I would like to be able to remove the "--force" flag from my npm install.

Voziv commented 8 months ago

Looks like the reason CI is failing is due to node 16 being out of date here: .circleci/config.yml

Updating that node version and the minimum required in package.json to 16.20.1 would fix it in theory