chore(deps): bump mongodb from 6.17.0 to 6.18.0
Type: Pull Request
State: Open
Association: Contributor
Comments: 0
(4 months ago)
(4 months ago)
dependencies javascript
Bumps mongodb from 6.17.0 to 6.18.0.
Release notes
Sourced from mongodb's releases.
v6.18.0
6.18.0 (2025-07-22)
The MongoDB Node.js team is pleased to announce version 6.18.0 of the
mongodbpackage!Release Notes
New
appendMetadataAPI allows clients to add handshake metadata post constructionDriver information such as name, version, and platform are allowed:
import { MongoClient } from 'mongodb';const client = new MongoClient(process.env.MONGODB_URI);
client.appendMetadata({ name: 'my library', version: '1.0', platform: 'NodeJS' });
Cursors lazily instantiate sessions
In previous versions, sessions were eagerly allocated whenever a cursor was created, regardless of whether or not a cursor was actually iterated (and the session was actually needed). Some driver APIs (
FindCursor.count(),AggregationCursor.explain()andFindCursor.explain()) don't actually iterate the cursor they are executed on. This can lead to client sessions being created and never being cleaned up.With this update, sessions are not allocated until the cursor is iterated.
Idle connections are now pruned during periods of no activity even when
minPoolSize=0A
MongoClientconfigured with amaxIdleTimeMSandminPoolSizeof 0 is advantageous for workloads that have sustained periods of little or no activity because it allows the connection pool to close connections that are unused during these periods of inactivity. However, due to a bug in theConnectionPoolimplementation, idle / perished connections were not cleaned up unlessminPoolSizewas non-zero.With the changes in this PR, the
ConnectionPoolnow always cleans up idle connections, regardless ofminPoolSize.ChangeStream event interfaces include a
wallTimepropertyThis property is available on all types with the exception of reshard collection and refine collection shard key events. Thanks to
@qhellofor bringing this bug to our attention!
CommandSucceededEventandCommandFailedEventevents now have adatabaseNameproperty
CommandSucceededEventandCommandFailedEventnow include the name of the database against which the command was executed.Deprecations
Transaction state getters are deprecated
These were for internal use only and include:
Transaction#options Transaction#recoveryToken Transaction#isPinned Transaction#isStarting Transaction#isActive </tr></table>
... (truncated)
Changelog
Sourced from mongodb's changelog.
6.18.0 (2025-07-22)
Features
- NODE-5055: Add databaseName property to command monitoring events (#4586) (3faf0c9)
- NODE-6865: deprecate transaction getters (#4567) (da46aea)
- NODE-6991: deprecate unintentionally public client metadata types (#4566) (ca6554b)
- NODE-7009: add client metadata on demand (#4574) (b9636ee)
- NODE-7053: deprecate noResponse option (#4589) (1115319)
Bug Fixes
Commits
1f358f3chore(main): release 6.18.0 (#4554)966a4e4test(NODE-4663): add csfle prose test 20 (#4585)1115319feat(NODE-7053): deprecate noResponse option (#4589)6e240d4test(NODE-6775): support auto encryption in the unified test runner (#4584)af98d40chore(deps): bump drivers-evergreen-tools from1e3ddd0to3052fce(#4588)3faf0c9feat(NODE-5055): Add databaseName property to command monitoring events (#4586)ec82ae9chore(deps): bump drivers-evergreen-tools fromee0b039to1e3ddd0(#4583)b9636eefeat(NODE-7009): add client metadata on demand (#4574)af0bb5adocs(NODE-6589): update maxIdleTimeMS API docs (#4579)a09212arefactor(NODE-3922): remove behaviour around ocsp tls options (#4577)- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
1
+3
-3
Package Dependencies
Technical Details
| ID: | 4278261 |
| UUID: | 2702570314 |
| Node ID: | PR_kwDOOT_S586hFfNK |
| Host: | GitHub |
| Repository: | mongodb-js/mongodb-mcp-server |
| Merge State: | Unknown |