You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pinned version of prettier we use is no longer supported, so
this increases the version and applies the whitspace changes
across the codebase in one commit
Copy file name to clipboardExpand all lines: lib/core/connection/connect.js
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,7 @@ function checkSupportedServer(ismaster, options) {
74
74
returnnull;
75
75
}
76
76
77
-
constmessage=`Server at ${options.host}:${options.port} reports minimum wire version ${
78
-
ismaster.minWireVersion
79
-
}, but this version of the Node.js Driver requires at most ${MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${MAX_SUPPORTED_SERVER_VERSION})`;
77
+
constmessage=`Server at ${options.host}:${options.port} reports minimum wire version ${ismaster.minWireVersion}, but this version of the Node.js Driver requires at most ${MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${MAX_SUPPORTED_SERVER_VERSION})`;
this.compatibilityError=`Server at ${serverDescription.address} requires wire version ${
63
-
serverDescription.minWireVersion
64
-
}, but this version of the driver only supports up to ${MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${MAX_SUPPORTED_SERVER_VERSION})`;
62
+
this.compatibilityError=`Server at ${serverDescription.address} requires wire version ${serverDescription.minWireVersion}, but this version of the driver only supports up to ${MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${MAX_SUPPORTED_SERVER_VERSION})`;
this.compatibilityError=`Server at ${serverDescription.address} reports wire version ${
70
-
serverDescription.maxWireVersion
71
-
}, but this version of the driver requires at least ${MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${MIN_SUPPORTED_SERVER_VERSION}).`;
67
+
this.compatibilityError=`Server at ${serverDescription.address} reports wire version ${serverDescription.maxWireVersion}, but this version of the driver requires at least ${MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${MIN_SUPPORTED_SERVER_VERSION}).`;
72
68
break;
73
69
}
74
70
}
@@ -342,9 +338,11 @@ function updateRsFromPrimary(
0 commit comments