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): bump the driver group across 1 directory with 2 updates #735

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 30, 2024

Bumps the driver group with 2 updates in the / directory: bson and mongodb.

Updates bson from 6.2.0 to 6.7.0

Release notes

Sourced from bson's releases.

v6.7.0

6.7.0 (2024-05-01)

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

Release Notes

Add Long.fromStringStrict method

The Long.fromStringStrict method is almost identical to the Long.fromString method, except it throws a BSONError if any of the following are true:

  • input string has invalid characters, for the given radix
  • the string contains whitespace
  • the value the input parameters represent is too large or too small to be a 64-bit Long

Unlike Long.fromString, this method does not coerce the inputs '+/-Infinity' and 'NaN' to Long.ZERO, in any case.

Examples:

Long.fromStringStrict('1234xxx5'); // throws BSONError
Long.fromString('1234xxx5'); // coerces input and returns new Long(123400)
// when writing in radix 10, 'n' and 'a' are both invalid characters
Long.fromStringStrict('NaN'); // throws BSONError
Long.fromString('NaN'); // coerces input and returns Long.ZERO

[!NOTE] Long.fromStringStrict's functionality will be present in Long.fromString in the V7 BSON release.

Add static Double.fromString method

This method attempts to create an Double type from a string, and will throw a BSONError on any string input that is not representable as a IEEE-754 64-bit double. Notably, this method will also throw on the following string formats:

  • Strings in non-decimal and non-exponential formats (binary, hex, or octal digits)
  • Strings with characters other than sign, numeric, floating point, or slash characters (Note: 'Infinity', '-Infinity', and 'NaN' input strings are still allowed)
  • Strings with leading and/or trailing whitespace Strings with leading zeros, however, are also allowed.

Add static Int32.fromString method

This method attempts to create an Int32 type from string, and will throw a BSONError on any string input that is not representable as an Int32. Notably, this method will also throw on the following string formats:

  • Strings in non-decimal formats (exponent notation, binary, hex, or octal digits)
  • Strings with non-numeric and non-leading sign characters (ex: '2.0', '24,000')
  • Strings with leading and/or trailing whitespace

Strings with leading zeros, however, are allowed

UTF-8 validation now throws a BSONError on overlong encodings in Node.js

... (truncated)

Changelog

Sourced from bson's changelog.

6.7.0 (2024-05-01)

Features

  • NODE-5648: add Long.fromStringStrict() (#675) (9d5a5df)
  • NODE-6086: add Double.fromString() method (#671) (e943cdb)
  • NODE-6087: add Int32.fromString method (#670) (5a21889)

Bug Fixes

  • NODE-6102: Double.fromString prohibiting '+' character and prohibiting exponential notation (#674) (c58d1e2)
  • NODE-6123: utf8 validation is insufficiently strict (#676) (ae8bac7)
  • NODE-6144: Long.fromString incorrectly coerces valid inputs to Long.ZERO in special cases (#677) (208f7e8)

6.6.0 (2024-04-01)

Features

  • NODE-5958: add BSON iterating API (#656) (269df91)
  • NODE-5959: make byte parsing utils available on onDemand library (#662) (efab49a)

Bug Fixes

  • NODE-6042: Binary.toString output with respect to position (#663) (d7898f9)
  • NODE-6059: clean up experimental APIs (#665) (3289184)

6.5.0 (2024-03-12)

Features

Bug Fixes

  • NODE-6016: flip byte order depending on system endianness (#659) (6a7ef5d)

6.4.0 (2024-02-29)

Features

  • NODE-5909: optimize writing basic latin strings (#645) (ec51256)

... (truncated)

Commits
  • 370396e chore(main): release 6.7.0 [skip-ci] (#672)
  • 208f7e8 fix(NODE-6144): Long.fromString incorrectly coerces valid inputs to Long.ZERO...
  • 9d5a5df feat(NODE-5648): add Long.fromStringStrict() (#675)
  • ae8bac7 fix(NODE-6123): utf8 validation is insufficiently strict (#676)
  • c58d1e2 fix(NODE-6102): Double.fromString prohibiting '+' character and prohibiting e...
  • 23d13f2 chore(NODE-6080): bump dev dependencies (#673)
  • e943cdb feat(NODE-6086): add Double.fromString() method (#671)
  • 5a21889 feat(NODE-6087): add Int32.fromString method (#670)
  • eeab1e8 chore(main): release 6.6.0 [skip-ci] (#661)
  • 3289184 fix(NODE-6059): clean up experimental APIs (#665)
  • Additional commits viewable in compare view

Updates mongodb from 6.3.0 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

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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 30, 2024
Bumps the driver group with 2 updates in the / directory: [bson](https://github.com/mongodb/js-bson) and [mongodb](https://github.com/mongodb/node-mongodb-native).


Updates `bson` from 6.2.0 to 6.7.0
- [Release notes](https://github.com/mongodb/js-bson/releases)
- [Changelog](https://github.com/mongodb/js-bson/blob/main/HISTORY.md)
- [Commits](mongodb/js-bson@v6.2.0...v6.7.0)

Updates `mongodb` from 6.3.0 to 6.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@v6.3.0...v6.7.0)

---
updated-dependencies:
- dependency-name: bson
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: driver
- dependency-name: mongodb
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: driver
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/driver-bf0585dba4 branch from 03a6a3c to 317075f Compare June 3, 2024 14:35
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 26, 2024

Looks like these dependencies are no longer updatable, so this is no longer needed.

@dependabot dependabot bot closed this Jun 26, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/driver-bf0585dba4 branch June 26, 2024 22:34
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