Countly / countly-server

Countly is a product analytics platform that helps teams track, analyze and act-on their user actions and behaviour on mobile, web and desktop applications.
https://countly.com
Other
5.52k stars 967 forks source link

Bump mongodb from 4.9.1 to 6.7.0 #5293

Closed dependabot[bot] closed 1 week ago

dependabot[bot] commented 1 month ago

Bumps mongodb from 4.9.1 to 6.7.0.

Release notes

Sourced from mongodb's releases.

v6.7.0

6.7.0 (2024-05-29)

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

Release Notes

Support for MONGODB-OIDC Authentication

MONGODB-OIDC is now supported as an authentication mechanism for MongoDB server versions 7.0+. The currently supported facets to authenticate with are callback authentication, human interaction callback authentication, Azure machine authentication, and GCP machine authentication.

Azure Machine Authentication

The MongoClient must be instantiated with authMechanism=MONGODB-OIDC in the URI or in the client options. Additional required auth mechanism properties of TOKEN_RESOURCE and ENVIRONMENT are required and another optional username can be provided. Example:

const client = new MongoClient('mongodb+srv://<username>@<host>:<port>/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:<azure_token>,ENVIRONMENT=azure');
await client.connect();

GCP Machine Authentication

The MongoClient must be instantiated with authMechanism=MONGODB-OIDC in the URI or in the client options. Additional required auth mechanism properties of TOKEN_RESOURCE and ENVIRONMENT are required. Example:

const client = new MongoClient('mongodb+srv://<host>:<port>/?authMechanism=MONGODB-OIDC&authMechanismProperties=TOKEN_RESOURCE:<gcp_token>,ENVIRONMENT=gcp');
await client.connect();

Callback Authentication

The user can provide a custom callback to the MongoClient that returns a valid response with an access token. The callback is provided as an auth mechanism property an has the signature of:

const oidcCallBack = (params: OIDCCallbackParams): Promise<OIDCResponse> => {
  // params.timeoutContext is an AbortSignal that will abort after 30 seconds for non-human and 5 minutes for human.
  // params.version is the current OIDC API version.
  // params.idpInfo is the IdP info returned from the server.
  // params.username is the optional username.

// Make a call to get a token. const token = ...; return { accessToken: token, expiresInSeconds: 300, refreshToken: token }; } </tr></table>

... (truncated)

Changelog

Sourced from mongodb's changelog.

6.7.0 (2024-05-29)

Features

  • NODE-5464: OIDC machine and callback workflow (#3912) (2ba8434)

Bug Fixes

  • NODE-6165: useBigInt64 causes compareTopologyVersion to throw (#4109) (21b729b)

6.6.2 (2024-05-15)

Bug Fixes

  • NODE-6171: RTT set to zero when serverMonitoringMode=stream (#4110) (7a7ec5b)

6.6.1 (2024-05-06)

Bug Fixes

  • NODE-6151: MongoClient connect does not keep Node.js running (#4101) (7e0d9e6)

6.6.0 (2024-05-02)

Features

  • NODE-3639: add a general stage to the aggregation pipeline builder (#4079) (8fca1aa)
  • NODE-5678: add options parsing support for timeoutMS and defaultTimeoutMS (#4068) (ddd1e81)
  • NODE-5762: include cause and package name for all MongoMissingDependencyErrors (#4067) (62ea94b)
  • NODE-5825: add minRoundTripTime to ServerDescription and change roundTripTime to a moving average (#4059) (0e3d6ea)
  • NODE-5919: support new type option in create search index helpers (#4060) (3598c23)
  • NODE-6020: upgrade BSON to ^6.5.0 (#4035) (8ab2055)

Bug Fixes

  • NODE-3681: Typescript error in Collection.findOneAndModify UpdateFilter $currentDate (#4047) (a8670a7)
  • NODE-5530: make topology descriptions JSON stringifiable (#4070) (3a0e011)
  • NODE-5745: ignore Read/Write Concern in Atlas Search Index Helpers (#4042) (67d7bab)
  • NODE-5925: driver throws error when non-read operation in a transaction has a ReadPreferenceMode other than 'primary' (#4075) (39fc198)
  • NODE-5971: attach v to createIndexes command when version is specified (#4043) (1879a04)
  • NODE-5999: Change TopologyDescription.error type to MongoError (#4028) (30432e8)
  • NODE-6019: indexExists always returns false when full is set to true (#4034) (0ebc1ac)
  • NODE-6029: update types for collection listing indexes (#4072) (232bf3c)
  • NODE-6051: only provide expected allowed keys to libmongocrypt after fetching aws kms credentials (#4057) (c604e74)

... (truncated)

Commits
  • f56938f chore(main): release 6.7.0 [skip-ci] (#4118)
  • 2ba8434 feat(NODE-5464): OIDC machine and callback workflow (#3912)
  • d3031a5 docs(NODE-6191): clarify that operations should not be parallelized in transa...
  • d1695c4 docs: fix typos, punctuation, caps, formatting (#4103)
  • 652af8d chore(NODE-6170): update release please owner (#4115)
  • 21b729b fix(NODE-6165): useBigInt64 causes compareTopologyVersion to throw (#4109)
  • 9285c42 chore(NODE-6178): enable codeql scans (#4116)
  • 6acb5e5 chore(main): release 6.6.2 [skip-ci] (#4111)
  • 7a7ec5b fix(NODE-6171): RTT set to zero when serverMonitoringMode=stream (#4110)
  • 7c91272 ci(NODE-6162): add server 8.0 to evergreen (#4107)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by dbx-node, 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 show 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)
dependabot[bot] commented 1 week ago

Superseded by #5377.