diff --git a/src/cmap/wire_protocol/constants.ts b/src/cmap/wire_protocol/constants.ts index 75c26d7f6e..a868a7370c 100644 --- a/src/cmap/wire_protocol/constants.ts +++ b/src/cmap/wire_protocol/constants.ts @@ -1,7 +1,7 @@ export const MIN_SUPPORTED_SERVER_VERSION = '3.6'; -export const MAX_SUPPORTED_SERVER_VERSION = '6.0'; +export const MAX_SUPPORTED_SERVER_VERSION = '7.0'; export const MIN_SUPPORTED_WIRE_VERSION = 6; -export const MAX_SUPPORTED_WIRE_VERSION = 17; +export const MAX_SUPPORTED_WIRE_VERSION = 21; export const OP_REPLY = 1; export const OP_UPDATE = 2001; export const OP_INSERT = 2002; diff --git a/test/unit/assorted/wire_version.test.js b/test/unit/assorted/wire_version.test.js index 0995aa324c..7607ff09b7 100644 --- a/test/unit/assorted/wire_version.test.js +++ b/test/unit/assorted/wire_version.test.js @@ -7,7 +7,7 @@ const { isHello } = require('../../mongodb'); const minCompatErrMsg = `minimum wire version ${ Number.MAX_SAFE_INTEGER - 1 -}, but this version of the Node.js Driver requires at most 17`; +}, but this version of the Node.js Driver requires at most 21`; const maxCompatErrMsg = `reports maximum wire version 1, but this version of the Node.js Driver requires at least 6`; describe('Wire Protocol Version', () => { diff --git a/test/unit/cmap/wire_protocol/constants.test.js b/test/unit/cmap/wire_protocol/constants.test.js index ec6dd89758..7f03b8a0c9 100644 --- a/test/unit/cmap/wire_protocol/constants.test.js +++ b/test/unit/cmap/wire_protocol/constants.test.js @@ -14,8 +14,8 @@ describe('Wire Protocol Constants', function () { }); describe('MAX_SUPPORTED_SERVER_VERSION', function () { - it('returns 6.0', function () { - expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('6.0'); + it('returns 7.0', function () { + expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('7.0'); }); }); @@ -26,8 +26,8 @@ describe('Wire Protocol Constants', function () { }); describe('MAX_SUPPORTED_WIRE_VERSION', function () { - it('returns 17', function () { - expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(17); + it('returns 21', function () { + expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(21); }); }); });