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

chore(deps): update dependency mongodb to v4 #575

Closed

Conversation

renovate-bot
Copy link
Contributor

WhiteSource Renovate

This PR contains the following updates:

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

Release Notes

mongodb/node-mongodb-native

v4.0.0

Compare Source

Features
Bug Fixes
  • NODE-1797: error when ChangeStream used as iterator and emitter concurrently (#​2871) (e0b3afe)
  • NODE-1843: bulk operations ignoring provided sessions (#​2868) (70810d1)
  • NODE-3063: fix custom csfle test script (#​2884) (d73c80c)
  • NODE-3279: use "hello" for monitoring if supported (#​2895) (5a8842a)
  • NODE-3386: listCollections result type definition (#​2866) (c12979a)
  • NODE-3413: accept tls=false in mongodb+srv connection strings (#​2886) (526c73f)
  • NODE-3416: make change stream generic default to Document (#​2882) (3d490dc)
  • NODE-3430: watch method types on MongoClient and Db (#​2900) (17cc291)

v3.6.10

Compare Source

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:

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:

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) (a917dfa)
  • NODE-3150: added bsonRegExp option for v3.6 (#​2843) (e4a9a57)
  • NODE-3358: Command monitoring objects hold internal state references (#​2858) (750760c)
  • NODE-3380: perform retryable write checks against server (#​2861) (621677a)
  • NODE-3397: report more helpful error with unsupported authMechanism in initial handshake (#​2876) (3ce148d)
Documentation

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


Configuration

📅 Schedule: "before 3am on Friday" (UTC).

🚦 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.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate-bot renovate-bot requested a review from a team July 16, 2021 00:53
@forking-renovate forking-renovate bot added the dependencies Pull requests that update a dependency file label Jul 16, 2021
@vmarchaud
Copy link
Member

See #577

@vmarchaud vmarchaud closed this Jul 17, 2021
@forking-renovate
Copy link

forking-renovate bot commented Jul 17, 2021

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.

@renovate-bot renovate-bot deleted the renovate/mongodb-4.x branch July 17, 2021 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants