Skip to content

Commit d13cec2

Browse files
authored
feat(NODE-4229): bump maxWireVersion to 17 (#3265)
1 parent 11e7e00 commit d13cec2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/cmap/wire_protocol/constants.ts

Lines changed: 2 additions & 2 deletions
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 = '5.1';
2+
export const MAX_SUPPORTED_SERVER_VERSION = '6.0';
33
export const MIN_SUPPORTED_WIRE_VERSION = 6;
4-
export const MAX_SUPPORTED_WIRE_VERSION = 14;
4+
export const MAX_SUPPORTED_WIRE_VERSION = 17;
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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { isHello } = require('../../../src/utils');
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 14`;
10+
}, but this version of the Node.js Driver requires at most 17`;
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', () => {
@@ -36,7 +36,7 @@ describe('Wire Protocol Version', () => {
3636
await mock.cleanup();
3737
});
3838

39-
describe('minimum is greater than 14', () => {
39+
describe('minimum is greater than max supported', () => {
4040
it('should raise a compatibility error', async function () {
4141
setWireProtocolMessageHandler(Number.MAX_SAFE_INTEGER - 1, Number.MAX_SAFE_INTEGER);
4242

@@ -54,7 +54,7 @@ describe('Wire Protocol Version', () => {
5454
});
5555
});
5656

57-
describe('maximum is less than 2', () => {
57+
describe('maximum is less than min supported', () => {
5858
it('should raise a compatibility error', async function () {
5959
setWireProtocolMessageHandler(1, 1);
6060

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

Lines changed: 4 additions & 4 deletions
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 5.1', function () {
18-
expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('5.1');
17+
it('returns 6.0', function () {
18+
expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('6.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 14', function () {
30-
expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(14);
29+
it('returns 17', function () {
30+
expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(17);
3131
});
3232
});
3333
});

0 commit comments

Comments
 (0)