Skip to content

Commit e566461

Browse files
committed
feat(NODE-3469): update min wire version
1 parent 7111d9a commit e566461

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

src/cmap/wire_protocol/constants.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export const MIN_SUPPORTED_SERVER_VERSION = '2.6';
2-
export const MAX_SUPPORTED_SERVER_VERSION = '5.0';
3-
export const MIN_SUPPORTED_WIRE_VERSION = 2;
1+
export const MIN_SUPPORTED_SERVER_VERSION = '3.6';
2+
export const MAX_SUPPORTED_SERVER_VERSION = '5.1';
3+
export const MIN_SUPPORTED_WIRE_VERSION = 6;
44
export const MAX_SUPPORTED_WIRE_VERSION = 13;
55
export const OP_REPLY = 1;
66
export const OP_UPDATE = 2001;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
const { expect } = require('chai');
2+
const {
3+
MIN_SUPPORTED_SERVER_VERSION,
4+
MAX_SUPPORTED_SERVER_VERSION,
5+
MIN_SUPPORTED_WIRE_VERSION,
6+
MAX_SUPPORTED_WIRE_VERSION
7+
} = require('../../../../src/cmap/wire_protocol/constants');
8+
9+
describe('Wire Protocol Constants', function () {
10+
describe('MIN_SUPPORTED_SERVER_VERSION', function () {
11+
it('returns 3.6', function () {
12+
expect(MIN_SUPPORTED_SERVER_VERSION).to.equal('3.6');
13+
});
14+
});
15+
16+
describe('MAX_SUPPORTED_SERVER_VERSION', function () {
17+
it('returns 5.1', function () {
18+
expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('5.1');
19+
});
20+
});
21+
22+
describe('MIN_SUPPORTED_WIRE_VERSION', function () {
23+
it('returns 6', function () {
24+
expect(MIN_SUPPORTED_WIRE_VERSION).to.equal(6);
25+
});
26+
});
27+
28+
describe('MAX_SUPPORTED_WIRE_VERSION', function () {
29+
it('returns 13', function () {
30+
expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(13);
31+
});
32+
});
33+
});

0 commit comments

Comments
 (0)