[Snyk] Upgrade mongodb from 4.3.1 to 4.4.0 #16
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 4.3.1 to 4.4.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.
Release notes
Package name: mongodb
-
4.4.0 - 2022-02-17
⚠️ collection.count() and cursor.count()
- If a query is passed in,
- If no query is passed in,
- NODE-2938: add service host mechanism property (#3130) (46d5821)
- NODE-2939: add new hostname canonicalization opts (#3131) (d0390d0)
- NODE-3351: use hostname canonicalization (#3122) (f5c76f3)
- NODE-3777: add csfle kmip support (#3070) (44bbd6e)
- NODE-3867: deprecate cursor count and update v4 docs (#3127) (a48d7e2)
- NODE-3621: fixed type of documentKey property on ChangeStreamDocument (#3118) (c63a21b)
- NODE-3795: unexpected No auth provider for DEFAULT defined error (#3092) (fb38a56)
- NODE-3813: unexpected type conversion of read preference tags (#3138) (3e7b894)
- NODE-3878: use legacy count operation on collection.count (#3126) (12c6835)
- NODE-3917: Throw an error when directConnection is set with multiple hosts (#3143) (b192493)
- Reference: https://docs.mongodb.com/drivers/node
- API: https://mongodb.github.io/node-mongodb-native/4.4
- Changelog: https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md
-
4.3.1 - 2022-01-18
- type checking defaults to
interface Node {
- indirectly self-referential types are still not supported
interface A {
- NODE-3792: remove offensive language throughout the codebase (#3091) (8e2b0cc)
- NODE-3852,NODE-3854,NODE-3856: Misc typescript fixes for 4.3.1 (#3102) (dd5195a)
- Reference: https://docs.mongodb.com/drivers/node
- API: https://mongodb.github.io/node-mongodb-native/4.3
- Changelog: https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md
from mongodb GitHub release notesThe MongoDB Node.js team is pleased to announce version 4.4.0 of the mongodb package!
Release Highlights
This release includes a few new features described below.
KMIP
KMIP can now be configured as a KMS provider for CSFLE by providing the KMIP endpoint in the kmsProviders option.
Example:
CSFLE TLS
Custom TLS options can now be provided for connection to the KMS servers on a per KMS provider basis.
Example:
Valid options are
tlsCAFile,tlsCertificateKeyFile,tlsCertificateKeyFilePasswordand all accept strings as values: a string path to a certificate location on the file system or a string password.Kerberos
Hostname canonicalization when using GSSAPI authentication now accepts
'none','forward', and'forwardAndReverse'as auth mechanism properties.'none'will perform no canonicalization (default),'forward'will perform a forward cname lookup, and'forwardAndReverse'will perform a forward lookup followed by a reverse PTR lookup on the IP address. Previous boolean values are still accepted and map tofalse -> 'none'andtrue -> 'forwardAndReverse'.Example:
For cases when the service host name differs from the connection’s host name (most likely when creating new users on localhost), a
SERVICE_HOSTauth mechanism property may now be provided.Example:
In the 4.0.0 release of the driver, the deprecated
collection.count()method was inadvertently changed to behave likecollection.countDocuments(). In this release, we have updated thecollection.count()behavior to match the legacy behavior:collection.countwill behave the same ascollection.countDocumentsand perform a collection scan.collection.countwill behave the same ascollection.estimatedDocumentCountand rely on collection metadata.We also deprecated the
cursor.count()method and will remove it in the next major version along withcollection.count(); please usecollection.estimatedDocumentCount()orcollection.countDocuments()instead.Features
Bug Fixes
Documentation
We invite you to try the mongodb library immediately, and report any issues to the NODE project.
The MongoDB Node.js team is pleased to announce version 4.3.1 of the mongodb package!
Release Highlights
In this patch release, we address the limitation introduced in 4.3.0 with the dot notation Typescript improvements and recursive types.
Namely, this fix removes compilation errors for self-referential types.
Note that this fix still has the following limitations:
anyafter the first level of recursion for self-referential typesnext: Node | null;
}
declare const collection: Collection<Node>;
// no error here even though
nextis of typeNode | nullcollection.find({
next: {
next: 'asdf'
}
});
b: B;
}
interface B {
a: A;
}
declare const mutuallyRecursive: Collection<A>;
// this will throw an error because there is indirect recursion
// between types (A depends on B which depends on A and so on)
mutuallyRecursive.find({});
Bug Fixes
Documentation
We invite you to try the mongodb library immediately, and report any issues to the NODE project.
Commit messages
Package name: mongodb
Compare
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:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs