Skip to content

Commit 9e21008

Browse files
committed
remove pre-4.2 logic from connection
1 parent c5f859d commit 9e21008

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/cmap/connection.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
284284
private get supportsOpMsg(): boolean {
285285
return (
286286
this.description != null &&
287-
maxWireVersion(this) >= 6 &&
288287
!this.description.__nodejs_mock_server__
289288
);
290289
}
@@ -880,12 +879,6 @@ export class CryptoConnection extends Connection {
880879
return await super.command<T>(ns, cmd, options, responseType);
881880
}
882881

883-
if (serverWireVersion < 8) {
884-
throw new MongoCompatibilityError(
885-
'Auto-encryption requires a minimum MongoDB version of 4.2'
886-
);
887-
}
888-
889882
// Save sort or indexKeys based on the command being run
890883
// the encrypt API serializes our JS objects to BSON to pass to the native code layer
891884
// and then deserializes the encrypted result, the protocol level components

0 commit comments

Comments
 (0)