[Snyk] Upgrade mongodb from 6.18.0 to 6.19.0 - #97
Open
Softeng310-project wants to merge 1 commit into
Open
Conversation
Snyk has created this PR to upgrade mongodb from 6.18.0 to 6.19.0. See this package in npm: mongodb See this project in Snyk: https://app.snyk.io/org/softeng310-project/project/ee03ef86-c060-453e-b1a5-5111b7b6a272?utm_source=github&utm_medium=referral&page=upgrade-pr
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Snyk has created this PR to upgrade mongodb from 6.18.0 to 6.19.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 13 versions ahead of your current version.
The recommended version was released 25 days ago.
Release notes
Package name: mongodb
-
6.19.0 - 2025-08-26
import * as tls from 'tls';
- 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)
- Reference
- API
- Changelog
-
6.19.0-dev.20250918.sha.7c485ef7 - 2025-09-18
-
6.19.0-dev.20250917.sha.a6eca88c - 2025-09-17
-
6.19.0-dev.20250916.sha.14303bc8 - 2025-09-16
-
6.19.0-dev.20250911.sha.c6172940 - 2025-09-11
-
6.19.0-dev.20250910.sha.b813c858 - 2025-09-10
-
6.19.0-dev.20250909.sha.43c85189 - 2025-09-09
-
6.19.0-dev.20250906.sha.82d6ce6a - 2025-09-06
-
6.19.0-dev.20250903.sha.98c5d830 - 2025-09-03
-
6.19.0-dev.20250830.sha.d03a6bd9 - 2025-08-30
-
6.19.0-dev.20250829.sha.4a6447c9 - 2025-08-29
-
6.19.0-dev.20250828.sha.41034f16 - 2025-08-28
-
6.19.0-dev.20250827.sha.3c5bb1d5 - 2025-08-27
-
6.18.0 - 2025-07-22
import { MongoClient } from 'mongodb';
- NODE-5055: Add databaseName property to command monitoring events (#4586) (3faf0c9)
- NODE-7009: add client metadata on demand (#4574) (b9636ee)
- NODE-7053: deprecate noResponse option (#4589) (1115319)
- NODE-6865: deprecate transaction getters (#4567) (da46aea)
- NODE-6991: deprecate unintentionally public client metadata types (#4566) (ca6554b)
- 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
- Reference
- API
- Changelog
from mongodb GitHub release notes6.19.0 (2025-08-26)
The MongoDB Node.js team is pleased to announce version 6.19.0 of the
mongodbpackage!Release Notes
Experimental Support for Queryable Encryption Text Field Prefix, Suffix and Substring Queries
Important
Substring, prefix and suffix search are in preview and should be used for experimental workloads only. These features are unstable and their security is not guaranteed until released as Generally Available (GA). The GA version of these features may not be backwards compatible with the preview version.
When using Queryable Encryption with both automatic encryption and explicit encryption, text fields can now be queried using prefix, suffix and substring queries. This feature requires
mongodb-client-encryption@>=6.5.0.Allow a
secureContextfor Auto Encryption and Client Encryption TLS optionsThis can be provided in the
tlsOptionsoption both both objects.import { ClientEncryption, MongoClient } from 'mongodb';
const caFile = await fs.readFile(process.env.CSFLE_TLS_CA_FILE);
const certFile = await fs.readFile(process.env.CSFLE_TLS_CLIENT_CERT_FILE);
const secureContextOptions = {
ca: caFile,
key: certFile,
cert: certFile
};
const options = {
keyVaultNamespace: 'db.coll',
kmsProviders: {
aws: {}
}
},
tlsOptions: {
aws: {
secureContext: tls.createSecureContext(secureContextOptions),
}
}
};
const client = this.configuration.newClient({}, { autoEncryption: { ...options, schemaMap } });
const clientEncryption = new ClientEncryption(client, options);
collection.findOne()andcollection.find()will no longer potentially leave open cursors on the serverThe
findOnecommand will now always set thelimitoption to1andsingleBatchtotrue. Thelimit,noCursorResponseandbatchSizeoptions have also been deprecated, and the command will guarantee no more cursors can be orphaned and nokillCursorscommand will be potentially executed.findwill now setlimittobatchSize + 1when both options were equal, to avoid leaving cursors open.Clients no longer send a ping on connect
When authentication is enabled, the
MongoClientwill no longer send apingcommand when connecting since it is unnecessary. Instead it will check a connection out of the pool to force the initial handshake, and check it back in.Features
Documentation
We invite you to try the
mongodblibrary immediately, and report any issues to the NODE project.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:
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 @ qhello for bringing this bug to our attention!
CommandSucceededEventandCommandFailedEventevents now have adatabaseNamepropertyCommandSucceededEventandCommandFailedEventnow 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:
ClientMetadata,ClientMetadataOptions, andCancellationTokenhave been deprecatedThese types will be removed in an upcoming major version of the driver.
CommandOptions.noResponseis deprecatedCaution
noResponseis not intended for use outside ofMongoClient.close(). Do not use this option.The Node driver has historically supported an option,
noResponse, that is used internally when a MongoClient is closed. This option was accidentally public. This option will be removed in an upcoming major release.Features
Bug Fixes
wallTimeproperty TS change stream event interfaces (#4541) (f153c6f)Documentation
We invite you to try the
mongodblibrary immediately, and report any issues to the NODE project.Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: