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

Bump mongodb and connect-mongo in /examples/basic-mongo #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 16, 2023

Bumps mongodb to 5.7.0 and updates ancestor dependency connect-mongo. These dependencies need to be updated together.

Updates mongodb from 2.2.36 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.


Updates connect-mongo from 2.0.3 to 5.0.0

Changelog

Sourced from connect-mongo's changelog.

[5.0.0] - 2023-03-14

BREAKING CHANGES

  • Upgraded peer dependency mongodb to 5.0.0
  • Change engines to require Node 12.9 or newer, matching the upgrade to mongodb that occurred in v4.5.0

Fixed

  • Declare express-session as a peer dependency.

[4.6.0] - 2021-09-17

Changed

  • Moved mongodb to a peer dependency (and also as a dev dependency for connect-mongo developers). connect-mongo is no longer pinned to a specific version of mongodb. This allows end users to avoid errors due to Typescript definition changes when moving to new versions of mongodb. Users can use any version of mongodb that provides a compatible (non-breaking) interface to mongodb ^4.1.0. Tested on mongodb 4.1.0 and 4.1.1. Should fix: #433 #434 #436

Fixed

  • Fixed "Callback was already called" when some code throws immediately after calling the set function

[4.5.0] - 2021-08-17

BREAKING CHANGES

  • Drop Node 10 support

Changed

Fixed

  • Move writeConcern away from top-level option to fix deprecation warning #422

[4.4.1] - 2021-03-23

Fixed

  • store.all() method not working with encrypted store #410 #411
  • Update and unpin mongodb dependency due to upstream fix has been deployed #409

[4.4.0] - 2021-03-11

BREAKING CHANGES

  • Use export = for better cjs require without .default

Added

... (truncated)

Commits
  • 33cda2b fix: createIndex now do not need to supply writeConcern
  • f462a25 fix: declare express-session as peer dependency
  • 3f5ad83 build: update github pipeline node version
  • ae1bae1 chore: upgrade mongodb to 5.0.0 (#466)
  • 0920663 fix: require engines newer than node 12.9 (#445)
  • f22d702 fix typos in README.md (#443)
  • 8908b1c chore: bump version to 4.6.0 for release
  • 9847304 fix: callback was already called when code throw after set function (#440)
  • 2a2cd78 fix: move mongodb to peerDependencies (#435)
  • 3e27376 chore: bump version to 4.5.0 for release
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by mingchuno, a new releaser for connect-mongo since your current version.


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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) to 5.7.0 and updates ancestor dependency [connect-mongo](https://github.com/jdesboeufs/connect-mongo). These dependencies need to be updated together.


Updates `mongodb` from 2.2.36 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@v2.2.36...v5.7.0)

Updates `connect-mongo` from 2.0.3 to 5.0.0
- [Changelog](https://github.com/jdesboeufs/connect-mongo/blob/master/CHANGELOG.md)
- [Commits](jdesboeufs/connect-mongo@v2.0.3...v5.0.0)

---
updated-dependencies:
- dependency-name: mongodb
  dependency-type: indirect
- dependency-name: connect-mongo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 16, 2023
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.

0 participants