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

build(deps): bump mongodb from 3.7.3 to 5.7.0 #223

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 10, 2023

Bumps mongodb from 3.7.3 to 5.7.0.

Release notes

Sourced from mongodb's releases.

v5.7.0

5.7.0 (2023-07-06)

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

Release Notes

Write Concern legacy options deprecated

wtimeout, j, and fsync options have been deprecated, please use wtimeoutMS and journal instead.

Legacy SSL options deprecated

In an effort to simplify TLS setup and use with the driver we're paring down the number of custom options to the ones that are common to all drivers. This should reduce inadvertent misconfiguration due to conflicting options.

The legacy "ssl-" options have been deprecated, each has a corresponding "tls-" option listed in the table below (except for sslCRL, you may directly use the Node.js crl option instead). tlsCertificateFile has also been deprecated, please use tlsCertificateKeyFile or pass the cert directly to the MongoClient constructor.

In addition to the common driver options, the Node.js driver also passes through Node.js TLS options provided on the MongoClient to Node.js' tls.connect API, which may be convenient to reuse with other Node.js APIs.

Node.js native option MongoDB driver option name legacy option name driver option type
ca tlsCAFile sslCA string
crl N/A sslCRL string
cert tlsCertificateKeyFile sslCert string
key tlsCertificateKeyFile sslKey string
passphrase tlsCertificateKeyFilePassword sslPass string
rejectUnauthorized tlsAllowInvalidCertificates sslValidate boolean

New includeResultMetadata option for findOneAnd... family of methods.

This option defaults to true, which will return a ModifyResult type. When set to false, which will become the default in the next major release, it will return the modified document or null if nothing matched. This applies to findOneAndDelete, findOneAndUpdate, findOneAndReplace.

// With a document { _id: 1, a: 1 } in the collection
await collection.findOneAndDelete({ a: 1 }, { includeResultMetadata: false }); // returns { _id: 1, a: 1 }
await collection.findOneAndDelete({ a: 2 }, { includeResultMetadata: false }); // returns null
await collection.findOneAndDelete({ a: 1 }, { includeResultMetadata: true }); // returns { ok: 1, lastErrorObject: { n: 1 }, value: { _id: 1, a: 1 }}

Support for change stream split events

When change stream documents exceed the max BSON size limit of 16MB, they can be split into multiple fragments in order to not error when sending events over the wire. In order to enable this functionality, the collection must be created with changeStreamPreAndPostImages enabled and the change stream itself must include an $changeStreamSplitLargeEvent aggregation stage. This feature requires a minimum server version of 7.0.0.

Example:

await db.createCollection('test', { changeStreamPreAndPostImages: { enabled: true }});
</tr></table> 

... (truncated)

Changelog

Sourced from mongodb's changelog.

5.7.0 (2023-07-06)

Features

Bug Fixes

  • NODE-4977: load snappy lazily (#3726) (865e658)
  • NODE-5102: listDatabases nameOnly setting is sent as NaN (#3742) (b97132e)
  • NODE-5289: prevent scram auth from throwing TypeError if saslprep is not a function (#3727) (e006347)
  • NODE-5374: do not apply cursor transform in Cursor.hasNext (#3746) (0668cd8)

5.6.0 (2023-06-01)

Features

Bug Fixes

  • NODE-5249: remove strict flag from create collection options (#3677) (be8faaf)
  • NODE-5296: construct error messages for AggregateErrors in Node16+ (#3682) (e03178e)

5.5.0 (2023-05-11)

Features

  • NODE-4720: Add log messages to CMAP spec (#3645) (b27f385)
  • NODE-5004: dont create or drop ecc collections (#3660) (2264fbb)

Bug Fixes

  • NODE-5260: AWS Lambda metadata detection logic is too permissive (#3663) (d74d3f9)

... (truncated)

Commits
  • e16246d chore(main): release 5.7.0 [skip-ci] (#3735)
  • 6a574cf feat(NODE-5407): update bson to 5.4.0 (#3754)
  • 1f880ea feat(NODE-5274): deprecate write concern options (#3752)
  • 0668cd8 fix(NODE-5374): do not apply cursor transform in Cursor.hasNext (#3746)
  • ccc5e30 chore: update release 4x workflow name (#3751)
  • 865e658 fix(NODE-4977): load snappy lazily (#3726)
  • dda4ec0 chore(NODE-5382): add 4.x release workflow (#3748)
  • b97132e fix(NODE-5102): listDatabases nameOnly setting is sent as NaN (#3742)
  • a329748 refactor(NODE-5352): refactor AbstractOperation to use async (#3729)
  • 1d31888 ci(NODE-5361): use task groups for lambda (#3740)
  • 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

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 10, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mongodb-5.7.0 branch 2 times, most recently from 9d9fabe to 108d324 Compare July 13, 2023 23:18
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 3.7.3 to 5.7.0.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md)
- [Commits](mongodb/node-mongodb-native@v3.7.3...v5.7.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 28, 2023

Superseded by #238.

@dependabot dependabot bot closed this Aug 28, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/mongodb-5.7.0 branch August 28, 2023 08:27
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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants