Title: Bump mongodb from 6.11.0 to 6.20.0 in /demo/src by dependabot[bot] · Pull Request #46 · codebytes/load-testing · GitHub
Open Graph Title: Bump mongodb from 6.11.0 to 6.20.0 in /demo/src by dependabot[bot] · Pull Request #46 · codebytes/load-testing
X Title: Bump mongodb from 6.11.0 to 6.20.0 in /demo/src by dependabot[bot] · Pull Request #46 · codebytes/load-testing
Description: Bumps mongodb from 6.11.0 to 6.20.0.
Release notes
Sourced from mongodb's releases.
v6.20.0
6.20.0 (2025-09-17)
The MongoDB Node.js team is pleased to announce version 6.20.0 of the mongodb package!
Release Notes
Collection and Db objects now provide references to their Db and MongoClient
import { MongoClient } from 'mongodb';
const client = new MongoClient(process.env.MONGODB_URI);
const db = client.db('test');
assert(db.client === client); // returns the MongoClient associated with the Db object
const collection = db.collection('test');
assert(collection.db === db); // returns the Db associated with the Collection object
Hint is supported with unacknowledged writes for delete, update and findAndModify commands on servers that support hint
The driver no longer throws errors when hint is provided to unacknowledged writes for delete, update and findAndModify commands in the following circumstances:
No error is thrown for update commands.
No errors are thrown for delete and findAndModify commands on servers >=4.4.
ServerCapabilities and ReadPreference.minWireVersion are deprecated
Neither the ServerCapabilities class nor the ReadPreference.minWireVersion property were ever intended for public use and, internally, are effectively dead code with the driver's minimum supported server version being 4.2.
Driver info and metadata MongoClient options have been deprecated.
These will be made internal in a future major release:
driverInfo
additionalDriverInfo
metadata
extendedMetadata
CommandOperationOptions.retryWrites is deprecated
CommandOperationOptions.retryWrites is deprecated. This per‑command option has no effect; the Node.js driver only honors retryWrites when configured at the client level (MongoClient options) or via the connection string. Do not use this option on individual commands. There is no runtime behavior change because it was already ignored, but it will be removed in an upcoming major release and may cause type or build errors in code that references it. To control retryable writes, set retryWrites in MongoClient options or include retryWrites=true|false in the connection string.
ChangeStream .tryNext() now updates resumeToken to prevent duplicates after resume
When .tryNext() returns a change document, the driver now caches its resumeToken, aligning its behavior with .next() and the 'change' event. If .tryNext() returns null (no new changes), nothing is cached, which is unchanged from previous behavior.
Previously, .tryNext() did not update the resumeToken, so a resumable error could cause a resume from an older token and re-deliver already processed changes. With this release, resumes continue from the latest token observed via .tryNext(), preventing duplicates.
const changeStream = collection.watch([]);
while (true) {
const change = await changeStream.tryNext(); // prior versions could return duplicates
... (truncated)
Changelog
Sourced from mongodb's changelog.
6.20.0 (2025-09-17)
Features
NODE-6883: allow rawData option on time series collections (#4642) (0fa3cd4)
NODE-7125: add db and client properties to collection and database objects (#4640) (3469f86)
NODE-7134: allow hint with unacknowledged writes for delete, update and findAndModify commands (#4647) (82d6ce6)
NODE-7139: remove pre-4.2 logic and deprecate dead code (#4657) (14303bc)
NODE-7140: deprecate driver info options (#4654) (b813c85)
NODE-7157: deprecate retryWrites in CommandOperationOptions (#4661) (620972d)
Bug Fixes
NODE-4763: cache resumeToken in ChangeStream.tryNext() (#4636) (8331a93)
NODE-6858: treat MongoServerSelectionError as a resumable error for Change Streams (#4653) (c6d64e7)
NODE-7138: prevent duplicate metadata from being appended to handshake metadata (#4651) (05c230c)
6.19.0 (2025-08-26)
Features
NODE-4179: allow secureContext in KMS TLS options (#4578) (0ea6eaa)
NODE-6472: findOne and find no longer keep open cursors (#4580) (be7f808)
NODE-7020: remove ping on connect (#4607) (3d296b7)
NODE-7059, NODE-7008: add support for text queries for QE string fields (#4597) (e4492f3)
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
NODE-4845: allocate sessions lazily in cursors (#4575) (5761703)
NODE-6589: background task does not prune idle connections when minPoolSize=0 (#4569) (7cbb641)
NODE-6955: add missing wallTime property TS change stream event interfaces (#4541) (f153c6f)
6.17.0 (2025-06-03)
... (truncated)
Commits
477140e chore(main): release 6.20.0 (#4641)
7c485ef docs: generate docs from latest main [skip-ci] (#4595)
05c230c fix(NODE-7138): prevent duplicate metadata from being appended to handshake m...
aa7465e chore: update local cluster setup instructions (#4662)
620972d feat(NODE-7157): deprecate retryWrites in CommandOperationOptions (#4661)
a6eca88 chore(deps): bump drivers-evergreen-tools from 931726b to d7a7337 (#4658)
c6d64e7 fix(NODE-6858): treat MongoServerSelectionError as a resumable error for Chan...
14303bc feat(NODE-7139): remove pre-4.2 logic and deprecate dead code (#4657)
c617294 refactor(NODE-7148): make rawData internal (#4655)
b813c85 feat(NODE-7140): deprecate driver info options (#4654)
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
Open Graph Description: Bumps mongodb from 6.11.0 to 6.20.0. Release notes Sourced from mongodb's releases. v6.20.0 6.20.0 (2025-09-17) The MongoDB Node.js team is pleased to announce version 6.20.0 of the mongodb p...
X Description: Bumps mongodb from 6.11.0 to 6.20.0. Release notes Sourced from mongodb's releases. v6.20.0 6.20.0 (2025-09-17) The MongoDB Node.js team is pleased to announce version 6.20.0 of the mongo...
Opengraph URL: https://github.com/codebytes/load-testing/pull/46
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5df6d925-5d84-d0cd-6065-9997c03c2b69 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E196:9D4B7:416A30:553589:698FC327 |
| html-safe-nonce | 9f11e3973583aafeac4318c3b2a1534ef322027ae51a40ed09ee50cd902310de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTk2OjlENEI3OjQxNkEzMDo1NTM1ODk6Njk4RkMzMjciLCJ2aXNpdG9yX2lkIjoiMzk2MjE4NTcyODM2OTA4MzE3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6f2544ac73414dd9aceed38ec79b65676708b532572b6c0615b47c8805514417 |
| hovercard-subject-tag | pull_request:2907059172 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codebytes/load-testing/pull/46/files |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps mongodb from 6.11.0 to 6.20.0. Release notes Sourced from mongodb's releases. v6.20.0 6.20.0 (2025-09-17) The MongoDB Node.js team is pleased to announce version 6.20.0 of the mongodb p... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/codebytes/load-testing git https://github.com/codebytes/load-testing.git |
| octolytics-dimension-user_id | 47988 |
| octolytics-dimension-user_login | codebytes |
| octolytics-dimension-repository_id | 626956694 |
| octolytics-dimension-repository_nwo | codebytes/load-testing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 626956694 |
| octolytics-dimension-repository_network_root_nwo | codebytes/load-testing |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 111423ee085528bc9fa8c25b2e698c30347f841e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width