caioagiani / nestjs-graphql

NestJS API GraphQL
5 stars 1 forks source link

fix(deps): update dependency mongodb to v4 #22

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongodb 3.6.9 -> 4.4.1 age adoption passing confidence

Release Notes

mongodb/node-mongodb-native ### [`v4.4.1`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​441-httpsgithubcommongodbnode-mongodb-nativecomparev440v441-2022-03-03) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.4.0...v4.4.1) ### [`v4.4.0`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​440-httpsgithubcommongodbnode-mongodb-nativecomparev431v440-2022-02-17) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.3.1...v4.4.0) ##### Features - **NODE-2938:** add service host mechanism property ([#​3130](https://togithub.com/mongodb/node-mongodb-native/issues/3130)) ([46d5821](https://togithub.com/mongodb/node-mongodb-native/commit/46d5821088e5897cd707246ef55f3474bc1c130c)) - **NODE-2939:** add new hostname canonicalization opts ([#​3131](https://togithub.com/mongodb/node-mongodb-native/issues/3131)) ([d0390d0](https://togithub.com/mongodb/node-mongodb-native/commit/d0390d02f53bd385f65d749f6a019568b0b98210)) - **NODE-3351:** use hostname canonicalization ([#​3122](https://togithub.com/mongodb/node-mongodb-native/issues/3122)) ([f5c76f3](https://togithub.com/mongodb/node-mongodb-native/commit/f5c76f3ef61bc319790c6b8072c72489c2a2041f)) - **NODE-3777:** add csfle kmip support ([#​3070](https://togithub.com/mongodb/node-mongodb-native/issues/3070)) ([44bbd6e](https://togithub.com/mongodb/node-mongodb-native/commit/44bbd6e94d58fac9eb07a07e5437662eb6409dc5)) - **NODE-3867:** deprecate cursor count and update v4 docs ([#​3127](https://togithub.com/mongodb/node-mongodb-native/issues/3127)) ([a48d7e2](https://togithub.com/mongodb/node-mongodb-native/commit/a48d7e2c69e7d9010f65a34859afcbaee7f01d9b)) ##### Bug Fixes - fix csfle imports ([#​3142](https://togithub.com/mongodb/node-mongodb-native/issues/3142)) ([541e939](https://togithub.com/mongodb/node-mongodb-native/commit/541e939e2ef3376930efd1b0077d984a578fa205)) - **NODE-3621:** fixed type of documentKey property on ChangeStreamDocument ([#​3118](https://togithub.com/mongodb/node-mongodb-native/issues/3118)) ([c63a21b](https://togithub.com/mongodb/node-mongodb-native/commit/c63a21b1d42f10359cfe7c34ff18ff73b70379a2)) - **NODE-3795:** unexpected No auth provider for DEFAULT defined error ([#​3092](https://togithub.com/mongodb/node-mongodb-native/issues/3092)) ([fb38a56](https://togithub.com/mongodb/node-mongodb-native/commit/fb38a561a3025f21b3c926e54336ce2fd2f79d17)) - **NODE-3813:** unexpected type conversion of read preference tags ([#​3138](https://togithub.com/mongodb/node-mongodb-native/issues/3138)) ([3e7b894](https://togithub.com/mongodb/node-mongodb-native/commit/3e7b89483ed858c54b8378526e28346d0ea8ba19)) - **NODE-3878:** use legacy count operation on collection.count ([#​3126](https://togithub.com/mongodb/node-mongodb-native/issues/3126)) ([12c6835](https://togithub.com/mongodb/node-mongodb-native/commit/12c6835155c256eefac8fed7bd36c41120731b91)) - **NODE-3917:** Throw an error when directConnection is set with multiple hosts ([#​3143](https://togithub.com/mongodb/node-mongodb-native/issues/3143)) ([b192493](https://togithub.com/mongodb/node-mongodb-native/commit/b192493cd790e5fd7c05ca4926535e06ceffb55e)) ##### [4.3.1](https://togithub.com/mongodb/node-mongodb-native/compare/v4.3.0...v4.3.1) (2022-01-18) ##### Bug Fixes - **NODE-3792:** remove offensive language throughout the codebase ([#​3091](https://togithub.com/mongodb/node-mongodb-native/issues/3091)) ([8e2b0cc](https://togithub.com/mongodb/node-mongodb-native/commit/8e2b0ccc273d18f5d744807b990f80f014ca16f6)) - **NODE-3852,NODE-3854,NODE-3856:** Misc typescript fixes for 4.3.1 ([#​3102](https://togithub.com/mongodb/node-mongodb-native/issues/3102)) ([dd5195a](https://togithub.com/mongodb/node-mongodb-native/commit/dd5195a5a6d2ae3ae7817685270ae19c3a7f1b06)) ### [`v4.3.1`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​431-httpsgithubcommongodbnode-mongodb-nativecomparev430v431-2022-01-18) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.3.0...v4.3.1) ### [`v4.3.0`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​430-httpsgithubcommongodbnode-mongodb-nativecomparev422v430-2022-01-06) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.2.2...v4.3.0) ##### Features - **NODE-3589:** support dot-notation attributes in Filter ([#​2972](https://togithub.com/mongodb/node-mongodb-native/issues/2972)) ([76fff97](https://togithub.com/mongodb/node-mongodb-native/commit/76fff97606d5e8b33ff8453400ccaefd18a54a1a)) - **NODE-3633:** add Socks5 support ([#​3041](https://togithub.com/mongodb/node-mongodb-native/issues/3041)) ([451627a](https://togithub.com/mongodb/node-mongodb-native/commit/451627a3a5ac93f259410a12b71d87b0911715e1)) - **NODE-3784:** Add `enableUtf8Validation` option ([#​3074](https://togithub.com/mongodb/node-mongodb-native/issues/3074)) ([4f56409](https://togithub.com/mongodb/node-mongodb-native/commit/4f56409e5ddeaf9aa1796135008869dec9d7c690)) - **NODE-3793:** Remove offensive language from code and tests ([#​3082](https://togithub.com/mongodb/node-mongodb-native/issues/3082)) ([91a67e0](https://togithub.com/mongodb/node-mongodb-native/commit/91a67e0f370e46b36665966ad49988207907624d)) ##### Bug Fixes - **gridfs:** make `GridFSBucketWriteStream.prototype.end()` return `this` for compat with [@​types/node](https://togithub.com/types/node)[@​17](https://togithub.com/17).0.6 ([#​3088](https://togithub.com/mongodb/node-mongodb-native/issues/3088)) ([7bb9e37](https://togithub.com/mongodb/node-mongodb-native/commit/7bb9e3729a23e845a68532f554808fb52decfacb)) - **NODE-2899:** sort and correct circular imports ([#​3072](https://togithub.com/mongodb/node-mongodb-native/issues/3072)) ([48cc729](https://togithub.com/mongodb/node-mongodb-native/commit/48cc72940ac13a81a1aef7899d227da9159f0675)) - **NODE-3675:** SRV option bug correctly defaults authSource to $external ([#​3079](https://togithub.com/mongodb/node-mongodb-native/issues/3079)) ([30f2a2d](https://togithub.com/mongodb/node-mongodb-native/commit/30f2a2d9304a429f025a0be244c83ca97e72cddf)) - **NODE-3803:** Fix \_id typing on collection create operations ([#​3077](https://togithub.com/mongodb/node-mongodb-native/issues/3077)) ([f1979db](https://togithub.com/mongodb/node-mongodb-native/commit/f1979db85370bf8b674ff7074d5e5b1dd1a020e9)) ##### [4.2.2](https://togithub.com/mongodb/node-mongodb-native/compare/v4.2.1...v4.2.2) (2021-12-13) ##### Bug Fixes - **NODE-3705:** ReadPreference.fromOptions omitting hedge and maxStalenessSeconds when readPreference is a string ([#​3060](https://togithub.com/mongodb/node-mongodb-native/issues/3060)) ([b9fbac5](https://togithub.com/mongodb/node-mongodb-native/commit/b9fbac5b13e0305a196f05b30b25111632f3ef13)) - **NODE-3711:** retry txn end on retryable write ([#​3045](https://togithub.com/mongodb/node-mongodb-native/issues/3045)) ([7b00d0f](https://togithub.com/mongodb/node-mongodb-native/commit/7b00d0f06052b5302583fedec15796142cb151cf)) - **NODE-3765:** make replacement for replaceOne operations without \_id ([#​3040](https://togithub.com/mongodb/node-mongodb-native/issues/3040)) ([e07e564](https://togithub.com/mongodb/node-mongodb-native/commit/e07e564dc073eee12d12c98635f7d61a04665251)) - stricter protocol check in connection string ([#​3078](https://togithub.com/mongodb/node-mongodb-native/issues/3078)) ([bc05671](https://togithub.com/mongodb/node-mongodb-native/commit/bc056719dac0b34cbfd59ac544f92a992f30ca76)) ##### [4.2.1](https://togithub.com/mongodb/node-mongodb-native/compare/v4.2.0...v4.2.1) (2021-11-30) ##### Bug Fixes - **NODE-2370:** correct a return type of hasNext() ([#​3058](https://togithub.com/mongodb/node-mongodb-native/issues/3058)) ([b6a63df](https://togithub.com/mongodb/node-mongodb-native/commit/b6a63df6269898fb09dd180b512197822727e90a)) - **NODE-3627:** Enable flexible BSON validation for server error key containing invalid utf-8 ([#​3054](https://togithub.com/mongodb/node-mongodb-native/issues/3054)) ([7a507f0](https://togithub.com/mongodb/node-mongodb-native/commit/7a507f08905d2e30f4c4b53adf0bf506e65e357f)) - **NODE-3648:** run get more ops through server selection ([#​3030](https://togithub.com/mongodb/node-mongodb-native/issues/3030)) ([268e211](https://togithub.com/mongodb/node-mongodb-native/commit/268e2110c0a26e51fa82f42e84251a21fa30a5d0)) - **NODE-3767:** don't delete dbName if authSource is provided ([#​3055](https://togithub.com/mongodb/node-mongodb-native/issues/3055)) ([0a830e2](https://togithub.com/mongodb/node-mongodb-native/commit/0a830e240adcd8564b6f11d8af0da50a411db58f)) - **NODE-3770:** Filter type uses WithId on the schema ([#​3053](https://togithub.com/mongodb/node-mongodb-native/issues/3053)) ([307d623](https://togithub.com/mongodb/node-mongodb-native/commit/307d623ea597c5d89c548b6731bd692fec7a8047)) ### [`v4.2.2`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​422-httpsgithubcommongodbnode-mongodb-nativecomparev421v422-2021-12-13) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.2.1...v4.2.2) ### [`v4.2.1`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​421-httpsgithubcommongodbnode-mongodb-nativecomparev420v421-2021-11-30) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.2.0...v4.2.1) ### [`v4.2.0`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​420-httpsgithubcommongodbnode-mongodb-nativecomparev413v420-2021-11-17) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.1.4...v4.2.0) ##### Features - **NODE-3083:** support aggregate writes on secondaries ([#​3022](https://togithub.com/mongodb/node-mongodb-native/issues/3022)) ([f696909](https://togithub.com/mongodb/node-mongodb-native/commit/f69690917c2355619027872b676bdaeeb254e427)) - **NODE-3446:** deprecate mapReduce command ([#​3036](https://togithub.com/mongodb/node-mongodb-native/issues/3036)) ([b6c73bf](https://togithub.com/mongodb/node-mongodb-native/commit/b6c73bf7ec71204eceee34dce4fc572830072cd0)) - **NODE-3467:** implement srvMaxHosts, srvServiceName options ([#​3031](https://togithub.com/mongodb/node-mongodb-native/issues/3031)) ([1f8b539](https://togithub.com/mongodb/node-mongodb-native/commit/1f8b539cd3d60dd9f36baa22fd287241b5c65380)) - **NODE-3469,NODE-3615,NODE-3507:** update min and max wire versions ([#​3014](https://togithub.com/mongodb/node-mongodb-native/issues/3014)) ([2a78d5a](https://togithub.com/mongodb/node-mongodb-native/commit/2a78d5a185ce1a6e8f35ce89dae479fcd0877bc6)) - **NODE-3691:** make time series options granularity type strict ([#​3005](https://togithub.com/mongodb/node-mongodb-native/issues/3005)) ([98017f9](https://togithub.com/mongodb/node-mongodb-native/commit/98017f9f7f7c218de7eeb44fb14d749d774acc38)) - **NODE-3692:** make change stream events typing more generic ([#​3034](https://togithub.com/mongodb/node-mongodb-native/issues/3034)) ([d5ae78e](https://togithub.com/mongodb/node-mongodb-native/commit/d5ae78ed73c1d7a850b9a830d1a9ef5c6b963bfb)) - **NODE-3728:** Allow to pass `authorizedCollections` option to the `db.listCollections` method ([#​3021](https://togithub.com/mongodb/node-mongodb-native/issues/3021)) ([e1234a7](https://togithub.com/mongodb/node-mongodb-native/commit/e1234a795f05ed687014651c154c8b9f9e8f2cbb)) - **NODE-3729:** add withId to default return type for collection.find and collection.findOne ([#​3039](https://togithub.com/mongodb/node-mongodb-native/issues/3039)) ([52520aa](https://togithub.com/mongodb/node-mongodb-native/commit/52520aac08ddb73888c7e6ee133f94ab5a481094)) ##### Bug Fixes - **NODE-3116:** reschedule unreliable async interval first ([#​3006](https://togithub.com/mongodb/node-mongodb-native/issues/3006)) ([33886a7](https://togithub.com/mongodb/node-mongodb-native/commit/33886a7ca5601b687d4be1062b5fe8583ec54b6d)) - **NODE-3344:** allow setting `defaultTransactionOptions` with POJO rather than ReadConcern instance ([#​3032](https://togithub.com/mongodb/node-mongodb-native/issues/3032)) ([53b3164](https://togithub.com/mongodb/node-mongodb-native/commit/53b3164b8ceb19c8c8be8b5084fd03476f5635b9)) - **NODE-3515:** do proper opTime merging in bulk results ([#​3012](https://togithub.com/mongodb/node-mongodb-native/issues/3012)) ([43300c3](https://togithub.com/mongodb/node-mongodb-native/commit/43300c393a190c00f174bc5be0b3fc6d0906e970)) - **NODE-3668:** compile error with OptionalId on TS 4.5 beta ([#​3004](https://togithub.com/mongodb/node-mongodb-native/issues/3004)) ([ee7f095](https://togithub.com/mongodb/node-mongodb-native/commit/ee7f095e28aacf07014de8055ce75b16a92a8965)) - **NODE-3726:** add optional option overloads of Db's createCollection function ([#​3019](https://togithub.com/mongodb/node-mongodb-native/issues/3019)) ([c3149e1](https://togithub.com/mongodb/node-mongodb-native/commit/c3149e17f301e7333fb5504b58b01e74f324c8e3)) - **NODE-3727:** add overloads for BulkOperationBase's execute function ([#​3018](https://togithub.com/mongodb/node-mongodb-native/issues/3018)) ([216d194](https://togithub.com/mongodb/node-mongodb-native/commit/216d1949301438b74ed71da8af9bb766bcbdbf92)) ##### [4.1.3](https://togithub.com/mongodb/node-mongodb-native/compare/v4.1.2...v4.1.3) (2021-10-05) ##### Bug Fixes - **NODE-3609:** correct listDatabases return type ([#​2986](https://togithub.com/mongodb/node-mongodb-native/issues/2986)) ([a8e9938](https://togithub.com/mongodb/node-mongodb-native/commit/a8e9938abcb00b67816438fb7c9db890e35d63c9)) - **NODE-3624:** Incorrect default aggregation generic type ([#​2987](https://togithub.com/mongodb/node-mongodb-native/issues/2987)) ([440517e](https://togithub.com/mongodb/node-mongodb-native/commit/440517edb3980135dd9fcdbc9e96b5fec8baa067)) ##### [4.1.2](https://togithub.com/mongodb/node-mongodb-native/compare/v4.1.1...v4.1.2) (2021-09-14) ##### Bug Fixes - **NODE-3434:** errInfo should be exposed on bulk write ([#​2977](https://togithub.com/mongodb/node-mongodb-native/issues/2977)) ([6b3c161](https://togithub.com/mongodb/node-mongodb-native/commit/6b3c161675df30b728a9fecfdb7ac7dcb8461598)) - **NODE-3467:** allow object type for aggregate out helper ([#​2971](https://togithub.com/mongodb/node-mongodb-native/issues/2971)) ([cd603e8](https://togithub.com/mongodb/node-mongodb-native/commit/cd603e8c78f24422dcad4c65e9ca22eed94aa55e)) - **NODE-3487:** check for nullish aws mechanism property ([#​2951](https://togithub.com/mongodb/node-mongodb-native/issues/2951)) ([78ec0dd](https://togithub.com/mongodb/node-mongodb-native/commit/78ec0ddabb3c875b204abc748910515d8344d711)) - **NODE-3559:** incorrect GridFS stream type ([#​2981](https://togithub.com/mongodb/node-mongodb-native/issues/2981)) ([3915ea8](https://togithub.com/mongodb/node-mongodb-native/commit/3915ea83f546588817c291b6aa8c0e712c5bcdd8)) - **NODE-3567:** correct typing on aggregation out helper ([#​2967](https://togithub.com/mongodb/node-mongodb-native/issues/2967)) ([a299a0b](https://togithub.com/mongodb/node-mongodb-native/commit/a299a0bf30decef451b4fd3218ea2c9719fd962e)) - **NODE-3574:** reintroduce ObjectID export ([#​2965](https://togithub.com/mongodb/node-mongodb-native/issues/2965)) ([2291119](https://togithub.com/mongodb/node-mongodb-native/commit/2291119512160d6d0bef9215f95d60264cd225ab)) - **NODE-3585:** MongoClientOptions#compressors has incorrect type ([#​2976](https://togithub.com/mongodb/node-mongodb-native/issues/2976)) ([f1b896d](https://togithub.com/mongodb/node-mongodb-native/commit/f1b896de6cbea212cf877696977300c7fa394a1a)) - **NODE-3591:** tlsCertificateKeyFile option does not default cert ([#​2979](https://togithub.com/mongodb/node-mongodb-native/issues/2979)) ([6d42267](https://togithub.com/mongodb/node-mongodb-native/commit/6d42267925947793af88d8d810790cade3545ea8)) - **NODE-3599:** incorrect indexes return type ([#​2980](https://togithub.com/mongodb/node-mongodb-native/issues/2980)) ([122b9f3](https://togithub.com/mongodb/node-mongodb-native/commit/122b9f3045368f2bd71c635ed4fe12ddf4e16e4c)) ##### [4.1.1](https://togithub.com/mongodb/node-mongodb-native/compare/v4.1.0...v4.1.1) (2021-08-24) ##### Bug Fixes - **NODE-3454:** projection types are too narrow ([#​2924](https://togithub.com/mongodb/node-mongodb-native/issues/2924)) ([48d6da9](https://togithub.com/mongodb/node-mongodb-native/commit/48d6da99b7990b03df5043a879db3dece5615ad8)) - **NODE-3468:** remove generic overrides from find ([#​2935](https://togithub.com/mongodb/node-mongodb-native/issues/2935)) ([74bd7bd](https://togithub.com/mongodb/node-mongodb-native/commit/74bd7bdd7a9d02c81cafec1237cb477192778cd8)) - **NODE-3511:** deprecate fullResponse and remove associated buggy code paths ([#​2943](https://togithub.com/mongodb/node-mongodb-native/issues/2943)) ([dfc39d1](https://togithub.com/mongodb/node-mongodb-native/commit/dfc39d175b03b6f34568f92ffd0107b829015c7d)) - **NODE-3528:** add support for snappy 7 ([#​2939](https://togithub.com/mongodb/node-mongodb-native/issues/2939)) ([0f7f300](https://togithub.com/mongodb/node-mongodb-native/commit/0f7f3003b948d230edf1491fab775e7acc29381e)) - **NODE-3546:** revert findOne not found result type to null ([#​2945](https://togithub.com/mongodb/node-mongodb-native/issues/2945)) ([1c576e9](https://togithub.com/mongodb/node-mongodb-native/commit/1c576e9ff525a177ae886cf51e7b52e2e6a56676)) ### [`v4.1.4`](https://togithub.com/mongodb/node-mongodb-native/releases/v4.1.4) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.1.3...v4.1.4) #### Release Highlights This release includes a couple of bug fixes as noted below: ##### Bug Fixes - **NODE-3515:** do proper opTime merging in bulk results ([#​3012](https://togithub.com/mongodb/node-mongodb-native/issues/3012)) ([43300c3](https://togithub.com/mongodb/node-mongodb-native/commit/43300c393a190c00f174bc5be0b3fc6d0906e970)) - **NODE-3668:** compile error with OptionalId on TS 4.5 beta ([#​3004](https://togithub.com/mongodb/node-mongodb-native/issues/3004)) ([ee7f095](https://togithub.com/mongodb/node-mongodb-native/commit/ee7f095e28aacf07014de8055ce75b16a92a8965)) #### Documentation - Reference: https://docs.mongodb.com/drivers/node - API: https://mongodb.github.io/node-mongodb-native/4.1 - Changelog: https://github.com/mongodb/node-mongodb-native/blob/4.1/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). ### [`v4.1.3`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​413-httpsgithubcommongodbnode-mongodb-nativecomparev412v413-2021-10-05) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.1.2...v4.1.3) ### [`v4.1.2`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​412-httpsgithubcommongodbnode-mongodb-nativecomparev411v412-2021-09-14) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.1.1...v4.1.2) ### [`v4.1.1`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​411-httpsgithubcommongodbnode-mongodb-nativecomparev410v411-2021-08-24) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.1.0...v4.1.1) ### [`v4.1.0`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​410-httpsgithubcommongodbnode-mongodb-nativecomparev401v410-2021-08-03) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.0.1...v4.1.0) ##### Features - **NODE-2843:** implement sessions advanceClusterTime method ([#​2920](https://togithub.com/mongodb/node-mongodb-native/issues/2920)) ([1fd0244](https://togithub.com/mongodb/node-mongodb-native/commit/1fd0244d77a304460948666b8dedcd62901808b3)) - **NODE-3011:** Load Balancer Support ([#​2909](https://togithub.com/mongodb/node-mongodb-native/issues/2909)) ([c554a7a](https://togithub.com/mongodb/node-mongodb-native/commit/c554a7a0d132437078a4c9d5e9ed828cce982455)) ##### Bug Fixes - **NODE-2883:** Aggregate Operation should not require parent parameter ([#​2918](https://togithub.com/mongodb/node-mongodb-native/issues/2918)) ([dc6e2d6](https://togithub.com/mongodb/node-mongodb-native/commit/dc6e2d6c5762ec62d1096a52d670b76b02aa2bf3)) - **NODE-3058:** accept null or undefined anywhere we permit nullish values ([#​2921](https://togithub.com/mongodb/node-mongodb-native/issues/2921)) ([b42a1b4](https://togithub.com/mongodb/node-mongodb-native/commit/b42a1b417e8a4e222000336b0fe9e94053d30d98)) - **NODE-3441:** fix typings for createIndexes ([#​2915](https://togithub.com/mongodb/node-mongodb-native/issues/2915)) ([f87f376](https://togithub.com/mongodb/node-mongodb-native/commit/f87f37662f4a90f762cc2133d109794dd79e9da8)) - **NODE-3442:** AsyncIterator has incorrect return type ([#​2916](https://togithub.com/mongodb/node-mongodb-native/issues/2916)) ([4a10389](https://togithub.com/mongodb/node-mongodb-native/commit/4a103890d3db68328163a152e37dbcd2a416e97b)) - **NODE-3452:** readonly filters not permitted by typings ([#​2927](https://togithub.com/mongodb/node-mongodb-native/issues/2927)) ([ce51e78](https://togithub.com/mongodb/node-mongodb-native/commit/ce51e784c25e6342dc2fb711b647ccc2c8cc4a92)) - **NODE-3510:** omit incorrect `| void` in declaration of Promise overload of `rename()` ([#​2922](https://togithub.com/mongodb/node-mongodb-native/issues/2922)) ([58c1e84](https://togithub.com/mongodb/node-mongodb-native/commit/58c1e846482575a90d23a39e35711fa1a51e3c33)) - **NODE-3513:** default command monitoring to off ([#​2926](https://togithub.com/mongodb/node-mongodb-native/issues/2926)) ([3c60245](https://togithub.com/mongodb/node-mongodb-native/commit/3c60245a65e45ce2b944cbd70daafb4c1a44ab81)) ##### [4.0.1](https://togithub.com/mongodb/node-mongodb-native/compare/v4.0.0...v4.0.1) (2021-07-20) ##### Features - **NODE-3419:** define MongoRuntimeError children ([#​2893](https://togithub.com/mongodb/node-mongodb-native/issues/2893)) ([eadeb01](https://togithub.com/mongodb/node-mongodb-native/commit/eadeb01ec689c72032a9c21e3e8486001a026945)) ##### Bug Fixes - **NODE-3199:** unable to bundle driver due to uncaught require ([#​2904](https://togithub.com/mongodb/node-mongodb-native/issues/2904)) ([9e48bbd](https://togithub.com/mongodb/node-mongodb-native/commit/9e48bbdc95149ca62fa21404624125b87c3c9d56)) - **NODE-3393:** snapshot time not applied if distinct executed first ([#​2908](https://togithub.com/mongodb/node-mongodb-native/issues/2908)) ([7aa3008](https://togithub.com/mongodb/node-mongodb-native/commit/7aa3008d58b9d9869c2ea4af7809fa6b5cfbf6f4)) - **NODE-3417:** allow calling `db()` before MongoClient is connected ([#​2889](https://togithub.com/mongodb/node-mongodb-native/issues/2889)) ([51ea86d](https://togithub.com/mongodb/node-mongodb-native/commit/51ea86d0abfbe18a3ae0a5e41a6b8c5b974f3c3b)) ### [`v4.0.1`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​401-httpsgithubcommongodbnode-mongodb-nativecomparev400v401-2021-07-20) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v4.0.0...v4.0.1) ### [`v4.0.0`](https://togithub.com/mongodb/node-mongodb-native/blob/HEAD/HISTORY.md#​400-httpsgithubcommongodbnode-mongodb-nativecomparev400-beta6v400-2021-07-13) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v3.7.3...v4.0.0) ##### Features - **NODE-3095:** add timeseries options to db.createCollection ([#​2878](https://togithub.com/mongodb/node-mongodb-native/issues/2878)) ([c145c91](https://togithub.com/mongodb/node-mongodb-native/commit/c145c91dfa060d819406a599e21d573782291ad4)) - **NODE-3392:** enable snapshot reads on secondaries ([#​2897](https://togithub.com/mongodb/node-mongodb-native/issues/2897)) ([523e05c](https://togithub.com/mongodb/node-mongodb-native/commit/523e05c3684dcf98c8bbfa4f0631092debd8a85c)) - **NODE-3403:** define MongoRuntimeError children ([#​2894](https://togithub.com/mongodb/node-mongodb-native/issues/2894)) ([cb0db49](https://togithub.com/mongodb/node-mongodb-native/commit/cb0db494859db6d8f62152cf4bac5e256b9bc650)) - **NODE-3410:** added MongoRuntimeError ([#​2892](https://togithub.com/mongodb/node-mongodb-native/issues/2892)) ([ee903cb](https://togithub.com/mongodb/node-mongodb-native/commit/ee903cb79f341c6052f058f48a61b6ed2e566f50)) ##### Bug Fixes - **NODE-1797:** error when ChangeStream used as iterator and emitter concurrently ([#​2871](https://togithub.com/mongodb/node-mongodb-native/issues/2871)) ([e0b3afe](https://togithub.com/mongodb/node-mongodb-native/commit/e0b3afe8d2849a0e362a067e25f693d6a4353a12)) - **NODE-1843:** bulk operations ignoring provided sessions ([#​2868](https://togithub.com/mongodb/node-mongodb-native/issues/2868)) ([70810d1](https://togithub.com/mongodb/node-mongodb-native/commit/70810d191c625447eb2d5324f627c36009a762a7)) - **NODE-3063:** fix custom csfle test script ([#​2884](https://togithub.com/mongodb/node-mongodb-native/issues/2884)) ([d73c80c](https://togithub.com/mongodb/node-mongodb-native/commit/d73c80c3c69a8cd69af506e747eb54f98b76fe92)) - **NODE-3279:** use "hello" for monitoring if supported ([#​2895](https://togithub.com/mongodb/node-mongodb-native/issues/2895)) ([5a8842a](https://togithub.com/mongodb/node-mongodb-native/commit/5a8842ad9de2ce6a89ecba985ff6a2a005205afc)) - **NODE-3386:** listCollections result type definition ([#​2866](https://togithub.com/mongodb/node-mongodb-native/issues/2866)) ([c12979a](https://togithub.com/mongodb/node-mongodb-native/commit/c12979a9c0c1615a3808db41bac64a19449d42d4)) - **NODE-3413:** accept tls=false in mongodb+srv connection strings ([#​2886](https://togithub.com/mongodb/node-mongodb-native/issues/2886)) ([526c73f](https://togithub.com/mongodb/node-mongodb-native/commit/526c73f3bab5fae734f4870668083b253378a10a)) - **NODE-3416:** make change stream generic default to Document ([#​2882](https://togithub.com/mongodb/node-mongodb-native/issues/2882)) ([3d490dc](https://togithub.com/mongodb/node-mongodb-native/commit/3d490dcf854a18bb94a9bd94e9a72d155ea414f4)) - **NODE-3430:** watch method types on MongoClient and Db ([#​2900](https://togithub.com/mongodb/node-mongodb-native/issues/2900)) ([17cc291](https://togithub.com/mongodb/node-mongodb-native/commit/17cc2918767acd41eaec8b602d82fc0a909e5950)) ### [`v3.7.3`](https://togithub.com/mongodb/node-mongodb-native/releases/v3.7.3) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v3.7.2...v3.7.3) The MongoDB Node.js team is pleased to announce version 3.7.3 of the mongodb package! #### What's Changed - fix(NODE-3515): do proper opTime merging in bulk results by [@​durran](https://togithub.com/durran) in [https://github.com/mongodb/node-mongodb-native/pull/3011](https://togithub.com/mongodb/node-mongodb-native/pull/3011) **Full Changelog**: https://github.com/mongodb/node-mongodb-native/compare/v3.7.2...v3.7.3 #### Documentation - Reference: https://docs.mongodb.com/drivers/node - API: https://mongodb.github.io/node-mongodb-native/3.7 - Changelog: https://github.com/mongodb/node-mongodb-native/blob/3.7/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). ### [`v3.7.2`](https://togithub.com/mongodb/node-mongodb-native/releases/v3.7.2) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v3.7.1...v3.7.2) The MongoDB Node.js team is pleased to announce version 3.7.2 of the mongodb package! #### Release Highlights This release contains a fix for optional require of dependencies on yarn berry. ##### Bug Fixes - **NODE-3622:** bump optional-require for additional yarn berry pnp support ([#​2989](https://togithub.com/mongodb/node-mongodb-native/issues/2989)) ([ec23d6302](https://togithub.com/mongodb/node-mongodb-native/commit/https://github.com/mongodb/node-mongodb-native/commit/ec23d6302)) #### Documentation - Reference: https://docs.mongodb.com/drivers/node - API: https://mongodb.github.io/node-mongodb-native/3.7 - Changelog: https://github.com/mongodb/node-mongodb-native/blob/3.7/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). ### [`v3.7.1`](https://togithub.com/mongodb/node-mongodb-native/releases/v3.7.1) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v3.7.0...v3.7.1) The MongoDB Node.js team is pleased to announce version 3.7.1 of the mongodb package! #### Release Highlights This release contains an internal improvement that makes our monitor utilize the new hello handshake for monitoring when available. ##### Features - **NODE-3424:** use hello for monitoring commands ([#​2964](https://togithub.com/mongodb/node-mongodb-native/issues/2964)) ([910c564](https://togithub.com/mongodb/node-mongodb-native/commit/910c56491f72b8ce4d94bf683a97e193b66c6985)) #### Documentation - Reference: https://docs.mongodb.com/drivers/node - API: https://mongodb.github.io/node-mongodb-native/3.7 - Changelog: https://github.com/mongodb/node-mongodb-native/blob/3.7/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). ### [`v3.7.0`](https://togithub.com/mongodb/node-mongodb-native/releases/v3.7.0) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v3.6.12...v3.7.0) The MongoDB Node.js team is pleased to announce version 3.7.0 of the mongodb package! ##### Release Highlights ##### Versioned API Versioned API is a new feature in MongoDB 5.0 that allows user-selectable API versions, subsets of MongoDB server semantics, to be declared on a client. During communication with a server, clients with a declared API version will force the server to behave in a manner compatible with the API version. Declaring an API version on a client can be used to ensure consistent responses from a server, providing long term API stability for an application. The declared API version is applied to all commands run through the client, including those sent through the generic RunCommand helper. Specifying versioned API options in the command document AND declaring an API version on the client is not supported and will lead to undefined behavior. ##### Declare an API version on a client ```javascript // Declare API version "1" for the client client = new MongoClient(uri, { serverApi: { version: '1' } }); cursor = client.db('database').collection('coll').find(...); ``` ##### Strict mode Declaring a `strict` API version will cause the MongoDB server to reject all commands that are not part of the declared API version. This includes command options and aggregation pipeline stages. For example, the following `find` call would fail because the `tailable` option is not part of version 1: ```javascript // Declare API version "1" for the client, with strict on client = new MongoClient(uri, { serverApi: { version: '1', strict: true } }); // Fails with an error cursor = client.db('database').collection('coll').find({ ... }, { tailable: true }); ``` ##### Deprecation Errors The `deprecationErrors` option can be used to enable command failures when using functionality that is deprecated from version 1. Note that at the time of this writing, no deprecations in version 1 exist. ```javascript // Declare API version "1" for the client, with deprecationErrors on client = new MongoClient(uri, { serverApi: { version: '1', deprecationErrors: true } }); // Note: since API version "1" is the initial version, there are no deprecated commands to provide as an example yet. ``` ##### Features - **NODE-3191:** backport versioned api ([#​2850](https://togithub.com/mongodb/node-mongodb-native/issues/2850)) ([93a47fd](https://togithub.com/mongodb/node-mongodb-native/commit/93a47fdbd92a27f0821cbcf59a951d581bfec9c0)) ##### Bug Fixes - **NODE-3377:** driver should allow arbitrary explain levels ([#​2961](https://togithub.com/mongodb/node-mongodb-native/issues/2961)) ([96c8ab4](https://togithub.com/mongodb/node-mongodb-native/commit/96c8ab41e38eb5a4c012b4cd5df3ab8c59a5d9fe)) - **NODE-3463:** pass explain error through to callback ([#​2949](https://togithub.com/mongodb/node-mongodb-native/issues/2949)) ([e5975af](https://togithub.com/mongodb/node-mongodb-native/commit/e5975af98615b2e0ef82b0031d4ec687d5a85109)) ##### Documentation - Reference: https://docs.mongodb.com/drivers/node/current/ - API: https://mongodb.github.io/node-mongodb-native/3.7/api/ - Changelog: https://github.com/mongodb/node-mongodb-native/blob/v3.7.0/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). ### [`v3.6.12`](https://togithub.com/mongodb/node-mongodb-native/releases/v3.6.12) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v3.6.11...v3.6.12) The MongoDB Node.js team is pleased to announce version 3.6.12 of the mongodb package! ##### Bug Fixes - **NODE-3487:** check for nullish aws mechanism property ([#​2957](https://togithub.com/mongodb/node-mongodb-native/issues/2957)) ([5902b4c](https://togithub.com/mongodb/node-mongodb-native/commit/5902b4c13a977c659af94b1fbcbcfbe5e7ca4db4)) - **NODE-3528:** add support for snappy v7 ([#​2947](https://togithub.com/mongodb/node-mongodb-native/issues/2947)) ([54f5c2d](https://togithub.com/mongodb/node-mongodb-native/commit/54f5c2d682828bc751242cf4e90ea73f0342c842)) ##### Documentation - Reference: https://docs.mongodb.com/drivers/node/current/ - API: https://mongodb.github.io/node-mongodb-native/3.6/api/ - Changelog: https://github.com/mongodb/node-mongodb-native/blob/v3.6.12/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). ### [`v3.6.11`](https://togithub.com/mongodb/node-mongodb-native/releases/v3.6.11) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v3.6.10...v3.6.11) The MongoDB Node.js team is pleased to announce version 3.6.11 of the mongodb package! #### Release Highlights This patch addresses a few bugs listed below. Notably, we fixed an issue with the way we imported one of our optional dependencies that blocked webpack bundling. If you are a webpack user you will still get warnings for our optional dependencies (if you don't use them). You can hush the warnings by adding [this option](https://webpack.js.org/configuration/externals/) to your webpack config: ```javascript { // ... externals: [ 'mongodb-client-encryption', 'aws4', 'saslprep', 'kerberos', 'snappy', 'bson-ext', ], // ... } ``` It is important to note that this will leave the imports in place and not pull in the code to your bundle. If you later do adopt using these dependencies you'll want to revert the relevant setting. ##### Bug Fixes - **NODE-1843:** bulk operations ignoring provided sessions ([#​2898](https://togithub.com/mongodb/node-mongodb-native/issues/2898)) ([9244b17](https://togithub.com/mongodb/node-mongodb-native/commit/9244b1771e538f7b685fd6d4aa83d9da84b20093)) - **NODE-3199:** unable to bundle driver due to uncaught require ([#​2903](https://togithub.com/mongodb/node-mongodb-native/issues/2903)) ([60efe9d](https://togithub.com/mongodb/node-mongodb-native/commit/60efe9d0030477da462d326c2e2ddc5fe6c0ffff)) #### Documentation - Reference: https://docs.mongodb.com/drivers/node/current/ - API: http://mongodb.github.io/node-mongodb-native/3.6/api - Changelog: https://github.com/mongodb/node-mongodb-native/blob/3.6/HISTORY.md We invite you to try the mongodb package immediately, and report any issues to the [NODE project](https://jira.mongodb.org/projects/NODE). ### [`v3.6.10`](https://togithub.com/mongodb/node-mongodb-native/releases/v3.6.10) [Compare Source](https://togithub.com/mongodb/node-mongodb-native/compare/v3.6.9...v3.6.10) The MongoDB Node.js team is pleased to announce version 3.6.10 of the mongodb package! ##### Release Highlights This patch addresses a few bugs listed below. Notably the `bsonRegExp` option is now respected by the underlying BSON library, you can use this to decode regular expressions that contain syntax not permitted in native JS RegExp objects. Take a look at this example: ```javascript await collection.insertOne({ a: new BSONRegExp('(?-i)AA_') }) await collection.findOne({ a: new BSONRegExp('(?-i)AA_') }, { bsonRegExp: true }) // { _id: ObjectId, a: BSONRegExp { pattern: '(?-i)AA_', options: '' } } ``` Also there was an issue with `Cursor.forEach` where user defined forEach callbacks that throw errors incorrectly handled catching errors. Take a look at the comments in this example: ```javascript collection.find({}).forEach(doc => { if(doc.bad) throw new Error('bad document!'); }).catch(error => { // now this is called! and error is `bad document!` }) // before this fix the `bad document!` error would be thrown synchronously // and have to be caught with try catch out here ``` ##### Bug Fixes - **NODE-2035:** Exceptions thrown from awaited cursor forEach do not propagate ([#​2852](https://togithub.com/mongodb/node-mongodb-native/issues/2852)) ([a917dfa](https://togithub.com/mongodb/node-mongodb-native/commit/a917dfada67859412344ed238796cf3bee243f5f)) - **NODE-3150:** added bsonRegExp option for v3.6 ([#​2843](https://togithub.com/mongodb/node-mongodb-native/issues/2843)) ([e4a9a57](https://togithub.com/mongodb/node-mongodb-native/commit/e4a9a572427666fd1a89576dadf50b9c452e1659)) - **NODE-3358:** Command monitoring objects hold internal state references ([#​2858](https://togithub.com/mongodb/node-mongodb-native/issues/2858)) ([750760c](https://togithub.com/mongodb/node-mongodb-native/commit/750760c324ddedb72491befde9f7aff1ceec009c)) - **NODE-3380:** perform retryable write checks against server ([#​2861](https://togithub.com/mongodb/node-mongodb-native/issues/2861)) ([621677a](https://togithub.com/mongodb/node-mongodb-native/commit/621677a42772e0b26aa13883f57d7e42f86df43f)) - **NODE-3397:** report more helpful error with unsupported authMechanism in initial handshake ([#​2876](https://togithub.com/mongodb/node-mongodb-native/issues/2876)) ([3ce148d](https://togithub.com/mongodb/node-mongodb-native/commit/3ce148d8fb37faea1ee056f6e9331e5282e65cd0)) ##### Documentation - Reference: https://docs.mongodb.com/drivers/node/current/ - API: http://mongodb.github.io/node-mongodb-native/3.6/api - Changelog: https://github.com/mongodb/node-mongodb-native/blob/3.6/HISTORY.md We invite you to try the mongodb package immediately, and report any issues to the [NODE project](https://jira.mongodb.org/projects/NODE).

Configuration

📅 Schedule: 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 WhiteSource Renovate. View repository job log here.

renovate[bot] commented 2 years ago

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 4.x releases. However, if you upgrade to 4.x manually then Renovate will reenable minor and patch updates automatically.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.