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 #895

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 4, 2024

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

Updates bson from 6.9.0 to 6.10.1

Release notes

Sourced from bson's releases.

v6.10.1

6.10.1 (2024-11-27)

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

Release Notes

Fix issue with the internal unbounded type cache

As an optimization, a previous performance improvement stored the type information of seen objects to avoid recalculating type information. This caused an issue in the driver under extreme load and high memory usage as the cache grew. The assumption was that garbage collection would clear it enough to sustain normal operation. The cache is now removed and other optimal type checking is used in its place.

Cache the hex string of an ObjectId lazily

When ObjectId.cacheHexString is set to true we no longer convert the buffer to a hex string in the constructor, since the cache is already being filled in any call to objectid.toHexString().

Additionally, if a string is passed into the constructor we can cache this immediately as there is no performance impact and no extra memory that needs to be allocated.

This improves the performance for situations where you are parsing ObjectIds from a string (ex. JSON) and want to avoid recalculating the hex. It also improves situations where you have ObjectIds coming from BSON and only convert some of them strings perhaps after applying some filter to eliminate some.

With cacheHexString enabled deserializing ObjectIds from BSON shows ~80% performance improvement and toString-ing ObjectIds that were constructed from a string convert ~40% faster!

Thanks to @​SeanReece for contributing this improvement!

Bug Fixes

  • NODE-6552: remove cache and use toStringTag in type helpers (#740) (3ede13e)

Performance Improvements

  • NODE-6450: Lazy objectId hex string cache (#722) (7c37580)

Documentation

We invite you to try the bson library immediately, and report any issues to the NODE project.

v6.10.0

6.10.0 (2024-11-18)

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

Release Notes

BSON Binary Vector Support!

... (truncated)

Changelog

Sourced from bson's changelog.

6.10.1 (2024-11-27)

Bug Fixes

  • NODE-6552: remove cache and use toStringTag in type helpers (#740) (3ede13e)

Performance Improvements

  • NODE-6450: Lazy objectId hex string cache (#722) (7c37580)

6.10.0 (2024-11-18)

Features

  • NODE-6537: add support for binary vectors (#730) (d7bdcec)

Bug Fixes

  • NODE-6536: Binary.read never returns number[] and reads beyond content (#727) (f99fdfd)
Commits
  • 26549d9 chore(main): release 6.10.1 [skip-ci] (#734)
  • 3ede13e fix(NODE-6552): remove cache and use toStringTag in type helpers (#740)
  • dbeda2f chore(NODE-6564): add dependabot for github actions (#733)
  • 7c37580 perf(NODE-6450): Lazy objectId hex string cache (#722)
  • 6e84925 chore(NODE-6555): remove warnings when locally installing bson (#732)
  • 2e86183 chore(main): release 6.10.0 [skip-ci] (#731)
  • d7bdcec feat(NODE-6537): add support for binary vectors (#730)
  • f6e86bb test(NODE-6534): add spec test runner for Binary vector (#729)
  • f99fdfd fix(NODE-6536): Binary.read never returns number[] and reads beyond content (...
  • 887849d chore(NODE-6018): run entire BSON suite on a big endian machine (#726)
  • Additional commits viewable in compare view

Updates mongodb from 6.10.0 to 6.11.0

Release notes

Sourced from mongodb's releases.

v6.11.0

6.11.0 (2024-11-22)

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

Release Notes

Client Side Operations Timeout (CSOT)

We've been working hard to try to simplify how setting timeouts works in the driver and are excited to finally put Client Side Operation Timeouts (CSOT) in your hands! We're looking forward to hearing your feedback on this new feature during its trial period in the driver, so feel free to file Improvements, Questions or Bug reports on our Jira Project or leave comments on this community forum thread: Node.js Driver 6.11 Forum Discussion!

CSOT is the common drivers solution for timing out the execution of an operation at the different stages of an operation's lifetime. At its simplest, CSOT allows you to specify one option,timeoutMS that determines when the driver will interrupt an operation and return a timeout error.

For example, when executing a potentially long-running query, you would specify timeoutMS as follows:

await collection.find({}, {timeoutMS: 600_000}).toArray(); // Ensures that the find will throw a timeout error if all documents are not retrieved within 10 minutes
// Potential Stack trace if this were to time out:
// Uncaught MongoOperationTimeoutError: Timed out during socket read (600000ms)
//    at Connection.readMany (mongodb/lib/cmap/connection.js:427:31)
//    at async Connection.sendWire (mongodb/lib/cmap/connection.js:246:30)
//    at async Connection.sendCommand (mongodb/lib/cmap/connection.js:281:24)
//    at async Connection.command (mongodb/lib/cmap/connection.js:323:26)
//    at async Server.command (mongodb/lib/sdam/server.js:170:29)
//    at async GetMoreOperation.execute (mongodb/lib/operations/get_more.js:58:16)
//    at async tryOperation (mongodb/lib/operations/execute_operation.js:203:20)
//    at async executeOperation (mongodb/lib/operations/execute_operation.js:73:16)
//    at async FindCursor.getMore (mongodb/lib/cursor/abstract_cursor.js:590:16)

[!WARNING] This feature is experimental and subject to change at any time. We do not recommend using this feature in production applications until it is stable.

What's new?

timeoutMS

The main new option introduced with CSOT is the timeoutMS option. This option can be applied directly as a client option, as well as at the database, collection, session, transaction and operation layers, following the same inheritance behaviours as other driver options.

When the timeoutMS option is specified, it will always take precedence over the following options:

  • socketTimeoutMS
  • waitQueueTimeoutMS
  • wTimeoutMS
  • maxTimeMS
  • maxCommitTimeMS

Note, however that timeoutMS DOES NOT unconditionally override the serverSelectionTimeoutMS option.

When timeoutMS is specified, the duration of time allotted to the server selection and connection checkout portions of command execution is defined by min(serverSelectionTimeoutMS, timeoutMS) if both are >0. A zero value for either timeout value represents an infinite timeout. A finite timeout will always be used unless both timeouts are specified as 0. Note also that the driver has a default value for serverSelectionTimeoutMS of 30000.

After server selection and connection checkout are complete, the time remaining bounds the execution of the remainder of the operation.

... (truncated)

Changelog

Sourced from mongodb's changelog.

6.11.0 (2024-11-22)

Features

  • NODE-5682: set maxTimeMS on commands and preempt I/O (#4174) (e4e6a5e)
  • NODE-5844: add iscryptd to ServerDescription (#4239) (c39d443)
  • NODE-6069: OIDC k8s machine workflow (#4270) (82c931c)
  • NODE-6090: Implement CSOT logic for connection checkout and server selection (bd8a9f4)
  • NODE-6231: Add CSOT behaviour for retryable reads and writes (#4186) (2ffd5eb)
  • NODE-6274: add CSOT support to bulkWrite (#4250) (c5a9ae5)
  • NODE-6275: Add CSOT support to GridFS (#4246) (3cb8187)
  • NODE-6304: add CSOT support for non-tailable cursors (#4195) (131f6ed)
  • NODE-6305: Add CSOT support to tailable cursors (#4218) (2398fc6)
  • NODE-6312: add error transformation for server timeouts (#4192) (c2c0cb9)
  • NODE-6313: add CSOT support to sessions and transactions (#4199) (5f1102f)
  • NODE-6387: Add CSOT support to change streams (#4256) (4588ff2)
  • NODE-6389: add support for timeoutMS in StateMachine.execute() (#4243) (c55f965)
  • NODE-6390: Add timeoutMS support to auto encryption (#4265) (55e08e7)
  • NODE-6391: Add timeoutMS support to explicit encryption (#4269) (f745b99)
  • NODE-6392: add timeoutMS support to ClientEncryption helpers part 1 (#4281) (e86f11e)
  • NODE-6403: add CSOT support to client bulk write (#4261) (365d63b)
  • NODE-6421: add support for timeoutMS to explain helpers (#4268) (5b2629b)
  • NODE-6446: deprecate legacy timeout options (#4279) (c28608b)
  • NODE-6551: update bson to 6.10.0 (#4329) (adb15fe)

Bug Fixes

  • NODE-6374: MongoOperationTimeoutError inherits MongoRuntimeError (#4237) (9fb896a)
  • NODE-6412: read stale response from previously timed out connection (#4273) (fd8f3bd)
  • NODE-6454: use timeoutcontext for state machine execute() cursor options (#4291) (5dd8ee5)
  • NODE-6469: pool is cleared before connection checkin on error (#4296) (06a2e2c)
  • NODE-6523: deleteMany in gridfs passes timeoutMS to predicate, not options (#4319) (1965ed5)

Performance Improvements

  • NODE-6525: remove setPrototype and defineProperty from hot path (#4321) (48ed47e)
Commits
  • 122421d chore(main): release 6.11.0 [skip-ci] (#4317)
  • b9bba0f ci(NODE-6557): Add Node.js 22 to support matrix (#4330)
  • 1673748 chore(NODE-6565): add dependabot for github actions (#4331)
  • a0431f0 chore(NODE-6426): update saslprep dependency to 1.1.9 (#4327)
  • adb15fe feat(NODE-6551): update bson to 6.10.0 (#4329)
  • 06a2e2c fix(NODE-6469): pool is cleared before connection checkin on error (#4296)
  • aa986f8 ci(NODE-6405): stop mongo orchestration in post task (#4328)
  • 1320ad8 chore(NODE-6488): specify target=es2021 for ts compilation tests (#4303)
  • 691cbbb test(NODE-5722): unpin on endSessions test (#4326)
  • 20564f7 refactor(NODE-6524): consolidate socket timeout calculation (#4320)
  • 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 Dec 4, 2024
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/driver-462ade3572 branch 3 times, most recently from 5a12932 to 59b6eaa Compare December 10, 2024 04:33
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.9.0 to 6.10.1
- [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.9.0...v6.10.1)

Updates `mongodb` from 6.10.0 to 6.11.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.10.0...v6.11.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-462ade3572 branch from 59b6eaa to 18987c0 Compare December 10, 2024 12:50
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 11, 2024

Superseded by #903.

@dependabot dependabot bot closed this Dec 11, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/driver-462ade3572 branch December 11, 2024 04:42
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