Bump mongodb from 5.0.1 to 5.1.0 #15

Closed
dependabot[bot] wants to merge 1 commits from dependabot/npm_and_yarn/mongodb-5.1.0 into main
dependabot[bot] commented 2023-03-01 21:00:04 +00:00 (Migrated from github.com)

Bumps mongodb from 5.0.1 to 5.1.0.

Release notes

Sourced from mongodb's releases.

v5.1.0

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

Release Highlights

Support for JavaScript bigints in the driver

The driver now supports automatic serialization of JavaScript bigints to BSON.Longs. It also supports deserializing of BSON.Long values returned from the server to bigint values when the useBigInt64 flag is passed as true.

import { MongoClient } from 'mongodb';

(async () => { const client = new MongoClient('<YOUR CONNECTION STRING>'); const db = client.db('test'); const coll = db.collection('bigints');

await coll.insertOne({ a: 10n }); // The driver automatically serializes bigints to BSON.Long before being sent to the server

const docBigInt = await coll.findOne({ a: 10n }, { useBigInt64: true }); // Must provide the useBigInt64 flag to specify that bigints get returned console.log(docBigInt); // { _id: ObjectId(...), a: 10n } const doc = await coll.findOne({ a: 10n }); // Must provide the useBigInt64 flag to specify that bigints get returned console.log(doc); // { _id: ObjectId(...), a: 10 } await client.close(); })()

Features

  • NODE-3445: add support for AssumeRoleWithWebIdentity in aws authentication (#3556) (e8a30b1)
  • NODE-4877: Add support for useBigInt64 (#3519) (917668c)
  • NODE-5050: support GCP automatic credential fetch for CSFLE (#3574) (722a4a6)

Bug Fixes

  • NODE-5044: Write Concern 0 Must Not Affect Read Operations (#3541) (#3575) (10146a4)
  • NODE-5052: prevent cursor and changestream close logic from running more than once (#3562) (71d0d79)
  • NODE-5064: consolidate connection cleanup logic and ensure socket is always closed (#3572) (e544d88)

Documentation

... (truncated)

Changelog

Sourced from mongodb's changelog.

5.1.0 (2023-02-23)

Features

  • NODE-3445: add support for AssumeRoleWithWebIdentity in aws authentication (#3556) (e8a30b1)
  • NODE-4877: Add support for useBigInt64 (#3519) (917668c)
  • NODE-5034: support OIDC auth options (#3557) (20a4fec)
  • NODE-5050: support GCP automatic credential fetch for CSFLE (#3574) (722a4a6)

Bug Fixes

  • NODE-5044: Write Concern 0 Must Not Affect Read Operations (#3541) (#3575) (10146a4)
  • NODE-5052: prevent cursor and changestream close logic from running more than once (#3562) (71d0d79)
  • NODE-5064: consolidate connection cleanup logic and ensure socket is always closed (#3572) (e544d88)
Commits
  • 687f51a chore(release): 5.1.0
  • 917668c feat(NODE-4877): Add support for useBigInt64 (#3519)
  • 10146a4 fix(NODE-5044): Write Concern 0 Must Not Affect Read Operations (#3541) (#3575)
  • 722a4a6 feat(NODE-5050): support GCP automatic credential fetch for CSFLE (#3574)
  • e544d88 fix(NODE-5064): consolidate connection cleanup logic and ensure socket is alw...
  • 0df03ef test(NODE-5035): skip oidc tests (#3573)
  • 66436e2 docs(NODE-5058): remove internal logo from 404 page and template (#3570)
  • 666f01c refactor(NODE-5063): make DestroyOptions required on connection.destroy (#3568)
  • 9ce0bcc test(NODE-5038): setup OIDC CI environment (#3560)
  • 71d0d79 fix(NODE-5052): prevent cursor and changestream close logic from running more...
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by w-a-james, a new releaser for mongodb since your current version.


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 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)
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.0.1 to 5.1.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mongodb/node-mongodb-native/releases">mongodb's releases</a>.</em></p> <blockquote> <h2>v5.1.0</h2> <p>The MongoDB Node.js team is pleased to announce version 5.1.0 of the <code>mongodb</code> package!</p> <h2>Release Highlights</h2> <h3>Support for JavaScript <code>bigint</code>s in the driver</h3> <p>The driver now supports automatic serialization of JavaScript <code>bigint</code>s to <code>BSON.Long</code>s. It also supports deserializing of <code>BSON.Long</code> values returned from the server to <code>bigint</code> values when the <code>useBigInt64</code> flag is passed as true.</p> <pre lang="typescript"><code>import { MongoClient } from 'mongodb'; <p>(async () =&gt; { const client = new MongoClient('&lt;YOUR CONNECTION STRING&gt;'); const db = client.db('test'); const coll = db.collection('bigints');</p> <p>await coll.insertOne({ a: 10n }); // The driver automatically serializes bigints to BSON.Long before being sent to the server</p> <p>const docBigInt = await coll.findOne({ a: 10n }, { useBigInt64: true }); // Must provide the useBigInt64 flag to specify that bigints get returned console.log(docBigInt); // { _id: ObjectId(...), a: 10n } const doc = await coll.findOne({ a: 10n }); // Must provide the useBigInt64 flag to specify that bigints get returned console.log(doc); // { _id: ObjectId(...), a: 10 } await client.close(); })() </code></pre></p> <h3>Features</h3> <ul> <li><strong>NODE-3445:</strong> add support for AssumeRoleWithWebIdentity in aws authentication (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3556">#3556</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/e8a30b15c8ec6caac770fa08f1201e6b95a5270d">e8a30b1</a>)</li> <li><strong>NODE-4877:</strong> Add support for useBigInt64 (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3519">#3519</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/917668c0bc42dbfa0a00869daa223f953f28c2e2">917668c</a>)</li> <li><strong>NODE-5050:</strong> support GCP automatic credential fetch for CSFLE (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3574">#3574</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/722a4a6c613e4c169b51f14251a8fb4bebc1cf2a">722a4a6</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>NODE-5044:</strong> Write Concern 0 Must Not Affect Read Operations (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3541">#3541</a>) (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3575">#3575</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/10146a42fcc8d84cd07fb26bde9b2926deee6f1e">10146a4</a>)</li> <li><strong>NODE-5052:</strong> prevent cursor and changestream close logic from running more than once (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3562">#3562</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/71d0d79e012e298be2307a73c097494072224bdb">71d0d79</a>)</li> <li><strong>NODE-5064:</strong> consolidate connection cleanup logic and ensure socket is always closed (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3572">#3572</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/e544d880b1731fa59ad6a0d740b946e79478cfa6">e544d88</a>)</li> </ul> <h2>Documentation</h2> <ul> <li>Reference: <a href="https://docs.mongodb.com/drivers/node/current/">https://docs.mongodb.com/drivers/node/current/</a></li> <li>API: <a href="https://mongodb.github.io/node-mongodb-native/5.1/">https://mongodb.github.io/node-mongodb-native/5.1/</a></li> <li>Changelog: <a href="https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md">HISTORY.md</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md">mongodb's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/mongodb/node-mongodb-native/compare/v5.0.1...v5.1.0">5.1.0</a> (2023-02-23)</h2> <h3>Features</h3> <ul> <li><strong>NODE-3445:</strong> add support for AssumeRoleWithWebIdentity in aws authentication (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3556">#3556</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/e8a30b15c8ec6caac770fa08f1201e6b95a5270d">e8a30b1</a>)</li> <li><strong>NODE-4877:</strong> Add support for useBigInt64 (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3519">#3519</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/917668c0bc42dbfa0a00869daa223f953f28c2e2">917668c</a>)</li> <li><strong>NODE-5034:</strong> support OIDC auth options (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3557">#3557</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/20a4fec5fa013c41f525f8c8c465b8f0db380bb2">20a4fec</a>)</li> <li><strong>NODE-5050:</strong> support GCP automatic credential fetch for CSFLE (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3574">#3574</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/722a4a6c613e4c169b51f14251a8fb4bebc1cf2a">722a4a6</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>NODE-5044:</strong> Write Concern 0 Must Not Affect Read Operations (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3541">#3541</a>) (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3575">#3575</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/10146a42fcc8d84cd07fb26bde9b2926deee6f1e">10146a4</a>)</li> <li><strong>NODE-5052:</strong> prevent cursor and changestream close logic from running more than once (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3562">#3562</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/71d0d79e012e298be2307a73c097494072224bdb">71d0d79</a>)</li> <li><strong>NODE-5064:</strong> consolidate connection cleanup logic and ensure socket is always closed (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3572">#3572</a>) (<a href="https://github.com/mongodb/node-mongodb-native/commit/e544d880b1731fa59ad6a0d740b946e79478cfa6">e544d88</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/687f51af41d5a660c117417731dedc69cd915ea2"><code>687f51a</code></a> chore(release): 5.1.0</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/917668c0bc42dbfa0a00869daa223f953f28c2e2"><code>917668c</code></a> feat(NODE-4877): Add support for useBigInt64 (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3519">#3519</a>)</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/10146a42fcc8d84cd07fb26bde9b2926deee6f1e"><code>10146a4</code></a> fix(NODE-5044): Write Concern 0 Must Not Affect Read Operations (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3541">#3541</a>) (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3575">#3575</a>)</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/722a4a6c613e4c169b51f14251a8fb4bebc1cf2a"><code>722a4a6</code></a> feat(NODE-5050): support GCP automatic credential fetch for CSFLE (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3574">#3574</a>)</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/e544d880b1731fa59ad6a0d740b946e79478cfa6"><code>e544d88</code></a> fix(NODE-5064): consolidate connection cleanup logic and ensure socket is alw...</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/0df03ef0557ea54b98069ad856fec5351d2e8ba6"><code>0df03ef</code></a> test(NODE-5035): skip oidc tests (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3573">#3573</a>)</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/66436e207aca5ebe3eaede4ba954e87ad3bbb97a"><code>66436e2</code></a> docs(NODE-5058): remove internal logo from 404 page and template (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3570">#3570</a>)</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/666f01c2010c5b37855a9828c5b93467be089fe8"><code>666f01c</code></a> refactor(NODE-5063): make DestroyOptions required on connection.destroy (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3568">#3568</a>)</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/9ce0bcc19b4acc7ae32f3d6251bdb819aae0bcc8"><code>9ce0bcc</code></a> test(NODE-5038): setup OIDC CI environment (<a href="https://github-redirect.dependabot.com/mongodb/node-mongodb-native/issues/3560">#3560</a>)</li> <li><a href="https://github.com/mongodb/node-mongodb-native/commit/71d0d79e012e298be2307a73c097494072224bdb"><code>71d0d79</code></a> fix(NODE-5052): prevent cursor and changestream close logic from running more...</li> <li>Additional commits viewable in <a href="https://github.com/mongodb/node-mongodb-native/compare/v5.0.1...v5.1.0">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by <a href="https://www.npmjs.com/~w-a-james">w-a-james</a>, a new releaser for mongodb since your current version.</p> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mongodb&package-manager=npm_and_yarn&previous-version=5.0.1&new-version=5.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details>
dependabot[bot] commented 2023-03-02 00:01:52 +00:00 (Migrated from github.com)

Looks like mongodb is up-to-date now, so this is no longer needed.

Looks like mongodb is up-to-date now, so this is no longer needed.

Pull request closed

Sign in to join this conversation.
No description provided.