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

fix: correct typeof check in checkSupportedServer #2690

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

nbbeeken
Copy link
Contributor

This made it passed testing because if maxWireVersion is a number then so is min and the actual 'less than' comparison is correct.

@nbbeeken nbbeeken requested a review from emadum January 11, 2021 15:24
nbbeeken referenced this pull request Jan 11, 2021
MongoOptions introduce a well typed HostAddress type that tracks
the correct shape of a host's address depending on its type.
The MongoClientOptions type inherit from node's TLS and Socket options
and use our allow list of options to maintain a connection between the
types and programmatic processing of options. The hierarchy of options
from MongoClient > Topology > Server > ConnectionPool > Connection have
been corrected and clarified for responsibilities.

NODE-2704
@nbbeeken nbbeeken merged commit 421fe6e into master Jan 11, 2021
@nbbeeken nbbeeken deleted the fix/supportedServerVersion branch January 11, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants