Skip to content

Commit 561229b

Browse files
dariakpdurran
andauthored
feat(NODE-5166): bump max wire version for 7.0 (#3659)
Co-authored-by: Durran Jordan <durran@gmail.com>
1 parent c52a4ed commit 561229b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/cmap/wire_protocol/constants.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const MIN_SUPPORTED_SERVER_VERSION = '3.6';
2-
export const MAX_SUPPORTED_SERVER_VERSION = '6.0';
2+
export const MAX_SUPPORTED_SERVER_VERSION = '7.0';
33
export const MIN_SUPPORTED_WIRE_VERSION = 6;
4-
export const MAX_SUPPORTED_WIRE_VERSION = 17;
4+
export const MAX_SUPPORTED_WIRE_VERSION = 21;
55
export const OP_REPLY = 1;
66
export const OP_UPDATE = 2001;
77
export const OP_INSERT = 2002;

test/unit/assorted/wire_version.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { isHello } = require('../../mongodb');
77

88
const minCompatErrMsg = `minimum wire version ${
99
Number.MAX_SAFE_INTEGER - 1
10-
}, but this version of the Node.js Driver requires at most 17`;
10+
}, but this version of the Node.js Driver requires at most 21`;
1111
const maxCompatErrMsg = `reports maximum wire version 1, but this version of the Node.js Driver requires at least 6`;
1212

1313
describe('Wire Protocol Version', () => {

test/unit/cmap/wire_protocol/constants.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ describe('Wire Protocol Constants', function () {
1414
});
1515

1616
describe('MAX_SUPPORTED_SERVER_VERSION', function () {
17-
it('returns 6.0', function () {
18-
expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('6.0');
17+
it('returns 7.0', function () {
18+
expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('7.0');
1919
});
2020
});
2121

@@ -26,8 +26,8 @@ describe('Wire Protocol Constants', function () {
2626
});
2727

2828
describe('MAX_SUPPORTED_WIRE_VERSION', function () {
29-
it('returns 17', function () {
30-
expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(17);
29+
it('returns 21', function () {
30+
expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(21);
3131
});
3232
});
3333
});

0 commit comments

Comments
 (0)