File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed
Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ export class ReadPreference {
6363 tags ?: TagSet [ ] ;
6464 hedge ?: HedgeOptions ;
6565 maxStalenessSeconds ?: number ;
66+ /**
67+ * @deprecated This will be removed as dead code in the next major version.
68+ */
6669 minWireVersion ?: number ;
6770
6871 public static PRIMARY = ReadPreferenceMode . primary ;
Original file line number Diff line number Diff line change @@ -273,16 +273,6 @@ export function readPreferenceServerSelector(readPreference: ReadPreference): Se
273273 servers : ServerDescription [ ] ,
274274 deprioritized : ServerDescription [ ] = [ ]
275275 ) : ServerDescription [ ] {
276- const commonWireVersion = topologyDescription . commonWireVersion ;
277- if (
278- commonWireVersion &&
279- readPreference . minWireVersion &&
280- readPreference . minWireVersion > commonWireVersion
281- ) {
282- throw new MongoCompatibilityError (
283- `Minimum wire version '${ readPreference . minWireVersion } ' required, but found '${ commonWireVersion } '`
284- ) ;
285- }
286276
287277 if ( topologyDescription . type === TopologyType . LoadBalanced ) {
288278 return servers . filter ( loadBalancerFilter ) ;
Original file line number Diff line number Diff line change @@ -1106,7 +1106,7 @@ function isStaleServerDescription(
11061106
11071107/**
11081108 * @public
1109- * @deprecated This class will be removed as dead code.
1109+ * @deprecated This class will be removed as dead code in the next major version .
11101110 */
11111111export class ServerCapabilities {
11121112 maxWireVersion : number ;
You can’t perform that action at this time.
0 commit comments