geodatagouv / geoplatform

Core API and processing tools for geo.data.gouv.fr
MIT License
5 stars 1 forks source link

Bump mongodb from 3.1.13 to 3.3.0 #284

Closed dependabot-preview[bot] closed 5 years ago

dependabot-preview[bot] commented 5 years ago

Bumps mongodb from 3.1.13 to 3.3.0.

Release notes *Sourced from [mongodb's releases](https://github.com/mongodb/node-mongodb-native/releases).* > ## v3.3.0 > The MongoDB Node.js team is pleased to announce version 3.3.0 of the driver > > ## Release Highlights > > ### Server Version 4.2 feature support > > This latest release brings support for features in the newly released [MongoDB v4.2](https://www.mongodb.com/blog/post/mongodb-42-is-now-ga-ready-for-your-production-apps): > > * Distributed Transactions > * On-Demand Materialized Views with the `$merge` operator > * Wildcard Indexes > * Retryable Reads > * MongoDB Query Language Enhancements. > > ### SRV Polling for Sharded Clusters > > The Driver has supported connecting to a cluster using an SRV record since version 3.0. Prior to now, we would only resolve the SRV record when initially connecting. This was fine for single replica sets, as the driver is able to discover new members added after initial connect from any member of a replica set. However, in a sharded deployment, individual mongos processes do not have an awareness of each other. This means that if the deployment changes in a shared cluster, the driver would have no way of knowing without disconnecting and connecting with a new client. > > Starting in 3.3, if a driver connects to a sharded cluster with an SRV record, we will now periodically check that SRV record for any changes in the deployment, and update the client-side connections accordingly. > > **NOTE: This feature is only available when starting a client with `{ useUnifiedTopology: true }` ** > > ### Beta support for MongoDB Client-Side Encryption > > The driver now has support for[ MongoDB Client-Side Encryption](https://docs.mongodb.com/manual/core/security-client-side-encryption). This requires installing the [`mongodb-client-encryption`](https://www.npmjs.com/package/mongodb-client-encryption) npm package in your project. > > ### Merged `mongodb-core` into `node-mongodb-native` > > Up until this release, the `mongodb` driver has consisted of two components: > > * `mongodb-core`: The low-level engine of the driver. > * `node-mongodb-native`: The API layer of the driver, published as `mongodb` > > Over time, this separation has done more harm than good, and has led to increased development time for repairing bugs and implementing new features. Starting in the 3.3 release of `mongodb`, we have merged `mongodb-core` into `node-mongodb-native`, removing this barrier to development. > > ## Release Notes > >

Bug >

>
    >
  • [NODE-1480] - &[#39](https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/39);Should handle Error thrown during operation&[#39](https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/39); in error_tests.js should handle exception >
  • >
  • [NODE-1994] - fix &[#39](https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/39);should correctly handle multiple unordered batch API&[#39](https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/39); >
  • >
  • [NODE-2022] - startAtOperationTime and resumeToken conflict on cursor restarts >
  • >
  • [NODE-2051] - MongoClient with autoEncryption does not clean up MongoCryptD client >
  • >
  • [NODE-2054] - [FLE] AutoEncrypter MongoClient does not use new url parser > ... (truncated)
Changelog *Sourced from [mongodb's changelog](https://github.com/mongodb/node-mongodb-native/blob/v3.3.0/HISTORY.md).* > # [3.3.0](https://github.com/mongodb/node-mongodb-native/compare/v3.3.0-alpha1...v3.3.0) (2019-08-13) > > > ### Bug Fixes > > * **aggregate-operation:** move type assertions to constructor ([25b27ff](https://github.com/mongodb/node-mongodb-native/commit/25b27ff)) > * **autoEncryption:** tear down mongocryptd client when main client closes ([fe2f57e](https://github.com/mongodb/node-mongodb-native/commit/fe2f57e)) > * **autoEncryption:** use new url parser for autoEncryption client ([d3670c2](https://github.com/mongodb/node-mongodb-native/commit/d3670c2)) > * **Bulk:** change BulkWriteError message to first item from writeErrors ([#2013](https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/2013)) ([6bcf1e4](https://github.com/mongodb/node-mongodb-native/commit/6bcf1e4)) > * **change_stream:** emit 'close' event if reconnecting failed ([41aba90](https://github.com/mongodb/node-mongodb-native/commit/41aba90)) > * **change_stream:** emit close event after cursor is closed during error ([c2d80b2](https://github.com/mongodb/node-mongodb-native/commit/c2d80b2)) > * **change-streams:** don't copy irrelevant resume options ([f190072](https://github.com/mongodb/node-mongodb-native/commit/f190072)) > * **changestream:** removes all event listeners on close ([30eeeb5](https://github.com/mongodb/node-mongodb-native/commit/30eeeb5)) > * **ChangeStream:** remove startAtOperationTime once we have resumeToken ([8d27e6e](https://github.com/mongodb/node-mongodb-native/commit/8d27e6e)) > * **ClientSessions:** initialize clientOptions and cluster time ([b95d64e](https://github.com/mongodb/node-mongodb-native/commit/b95d64e)) > * **connect:** don't treat 'connect' as an error event ([170a011](https://github.com/mongodb/node-mongodb-native/commit/170a011)) > * **connect:** fixed syntax issue in connect error handler ([ff7166d](https://github.com/mongodb/node-mongodb-native/commit/ff7166d)) > * **connections_stepdown_tests:** use correct version of mongo for tests ([ce2c9af](https://github.com/mongodb/node-mongodb-native/commit/ce2c9af)) > * **createCollection:** Db.createCollection should pass readConcern to new collection ([#2026](https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/2026)) ([6145d4b](https://github.com/mongodb/node-mongodb-native/commit/6145d4b)) > * **cursor:** do not truncate an existing Long ([317055b](https://github.com/mongodb/node-mongodb-native/commit/317055b)), closes [mongodb-js/mongodb-core#441](https://github-redirect.dependabot.com/mongodb-js/mongodb-core/issues/441) > * **distinct:** return full response if `full` option was specified ([95a7d05](https://github.com/mongodb/node-mongodb-native/commit/95a7d05)) > * **MongoClient:** allow Object.prototype items as db names ([dc6fc37](https://github.com/mongodb/node-mongodb-native/commit/dc6fc37)) > * **MongoClient:** only check own properties for valid options ([c9dc717](https://github.com/mongodb/node-mongodb-native/commit/c9dc717)) > * **OpMsg:** cap requestIds at 0x7fffffff ([c0e87d5](https://github.com/mongodb/node-mongodb-native/commit/c0e87d5)) > * **read-operations:** send sessions on all read operations ([4d45c8a](https://github.com/mongodb/node-mongodb-native/commit/4d45c8a)) > * **ReadPreference:** improve ReadPreference error message and remove irrelevant sharding test ([dd34ce4](https://github.com/mongodb/node-mongodb-native/commit/dd34ce4)) > * **ReadPreference:** only allow valid ReadPreference modes ([06bbef2](https://github.com/mongodb/node-mongodb-native/commit/06bbef2)) > * **replset:** correct legacy max staleness calculation ([2eab8aa](https://github.com/mongodb/node-mongodb-native/commit/2eab8aa)) > * **replset:** introduce a fixed-time server selection loop ([cf53299](https://github.com/mongodb/node-mongodb-native/commit/cf53299)) > * **server:** emit "first connect" error if initial connect fails due to ECONNREFUSED ([#2016](https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/2016)) ([5a7b15b](https://github.com/mongodb/node-mongodb-native/commit/5a7b15b)) > * **serverSelection:** make sure to pass session to serverSelection ([eb5cc6b](https://github.com/mongodb/node-mongodb-native/commit/eb5cc6b)) > * **sessions:** ensure an error is thrown when attempting sharded transactions ([3a1fdc1](https://github.com/mongodb/node-mongodb-native/commit/3a1fdc1)) > * **topology:** add new error for retryWrites on MMAPv1 ([392f5a6](https://github.com/mongodb/node-mongodb-native/commit/392f5a6)) > * don't check non-unified topologies for session support check ([2bccd3f](https://github.com/mongodb/node-mongodb-native/commit/2bccd3f)) > * maintain internal database name on collection rename ([884d46f](https://github.com/mongodb/node-mongodb-native/commit/884d46f)) > * only check for transaction state if session exists ([360975a](https://github.com/mongodb/node-mongodb-native/commit/360975a)) > * preserve aggregate explain support for legacy servers ([032b204](https://github.com/mongodb/node-mongodb-native/commit/032b204)) > * read concern only supported for `mapReduce` without inline ([51a36f3](https://github.com/mongodb/node-mongodb-native/commit/51a36f3)) > * reintroduce support for 2.6 listIndexes ([c3bfc05](https://github.com/mongodb/node-mongodb-native/commit/c3bfc05)) > * return `executeOperation` for explain, if promise is desired ([b4a7ad7](https://github.com/mongodb/node-mongodb-native/commit/b4a7ad7)) > * validate atomic operations in all update methods ([88bb77e](https://github.com/mongodb/node-mongodb-native/commit/88bb77e)) > * **transactions:** fix error message for attempting sharded ([eb5dfc9](https://github.com/mongodb/node-mongodb-native/commit/eb5dfc9)) > * **transactions:** fix sharded transaction error logic ([083e18a](https://github.com/mongodb/node-mongodb-native/commit/083e18a)) > > > ### Features > > * **Aggregate:** support ReadConcern in aggregates with $out ([21cdcf0](https://github.com/mongodb/node-mongodb-native/commit/21cdcf0)) > * **AutoEncryption:** improve error message for missing mongodb-client-encryption ([583f29f](https://github.com/mongodb/node-mongodb-native/commit/583f29f)) > * **ChangeStream:** adds new resume functionality to ChangeStreams ([9ec9b8f](https://github.com/mongodb/node-mongodb-native/commit/9ec9b8f)) > ... (truncated)
Commits - [`8b3c3b0`](https://github.com/mongodb/node-mongodb-native/commit/8b3c3b02d71bfbbd6ec312845900ac233b5ae163) chore(release): 3.3.0 - [`0d2018c`](https://github.com/mongodb/node-mongodb-native/commit/0d2018caf3ce76b2f19873ec94df5a702cb9bc00) docs(AutoEncryption): adds documentation for extraOptions - [`3ecda98`](https://github.com/mongodb/node-mongodb-native/commit/3ecda982ec8f3f095ed86dd35c18ce9db451f674) docs(autoEncryption): document that autoEncryption is in beta - [`814a4cc`](https://github.com/mongodb/node-mongodb-native/commit/814a4cccda1a6f406500dd1a092f725e4ca57308) chore(useUnifiedTopology): add deprecation warning for useUnifiedTopology - [`b7308db`](https://github.com/mongodb/node-mongodb-native/commit/b7308dbfe347f9809857587921ab978ab3d9d3ca) test: disable some failing tests for later investigation - [`b23e606`](https://github.com/mongodb/node-mongodb-native/commit/b23e606d8fe47a474b45b4bbe5a518efb3b4b47e) test(transactions): disable invalid pinning test - [`82a7a6e`](https://github.com/mongodb/node-mongodb-native/commit/82a7a6e4171b75c2165eef329a2ef06788b3766a) chore(travis): add 4.2 testing to travis - [`392f5a6`](https://github.com/mongodb/node-mongodb-native/commit/392f5a692b96e6a328b22dee11d8ca2057589bf1) fix(topology): add new error for retryWrites on MMAPv1 - [`2ef8f2c`](https://github.com/mongodb/node-mongodb-native/commit/2ef8f2c6faf542def42e176d994bef6761d21b75) chore(ci): update evergreen config to test Ubuntu 18.04 on mongodb >= 4.2 - [`ae729f8`](https://github.com/mongodb/node-mongodb-native/commit/ae729f82c9d53826fe431c232cf93952a7a4b924) refactor(change-stream): use `AggregateOperation` for stream cursor - Additional commits viewable in [compare view](https://github.com/mongodb/node-mongodb-native/compare/v3.1.13...v3.3.0)


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will not automatically merge this PR because it includes a minor update to a production dependency.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.
codecov[bot] commented 5 years ago

Codecov Report

Merging #284 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #284   +/-   ##
=======================================
  Coverage   23.55%   23.55%           
=======================================
  Files          99       99           
  Lines        2165     2165           
=======================================
  Hits          510      510           
  Misses       1655     1655

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b585762...daa87b9. Read the comment docs.

dependabot-preview[bot] commented 5 years ago

Superseded by #289.