Skip to content

Commit 65c7ffe

Browse files
Merge branch 'main' into NODE-5968/6.x-container-and-kubernetes-awareness
2 parents f41e370 + f2b3484 commit 65c7ffe

File tree

775 files changed

+308963
-40816
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

775 files changed

+308963
-40816
lines changed

.evergreen/config.in.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,14 @@ task_groups:
13271327
script: |
13281328
${PREPARE_SHELL}
13291329
set +o xtrace
1330+
if [[ -n "${USE_SERVERLESS_PROXY}" ]];
1331+
then
1332+
export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
1333+
else
1334+
export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
1335+
fi
13301336
LOADBALANCED=ON \
1331-
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
1337+
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
13321338
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
13331339
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
13341340
bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
@@ -1342,7 +1348,13 @@ task_groups:
13421348
script: |
13431349
${PREPARE_SHELL}
13441350
set +o xtrace
1345-
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
1351+
if [[ -n "${USE_SERVERLESS_PROXY}" ]];
1352+
then
1353+
export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
1354+
else
1355+
export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
1356+
fi
1357+
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
13461358
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
13471359
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
13481360
SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \

.evergreen/config.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3722,8 +3722,14 @@ task_groups:
37223722
script: |
37233723
${PREPARE_SHELL}
37243724
set +o xtrace
3725+
if [[ -n "${USE_SERVERLESS_PROXY}" ]];
3726+
then
3727+
export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
3728+
else
3729+
export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
3730+
fi
37253731
LOADBALANCED=ON \
3726-
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
3732+
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
37273733
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
37283734
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
37293735
bash ${DRIVERS_TOOLS}/.evergreen/serverless/create-instance.sh
@@ -3737,7 +3743,13 @@ task_groups:
37373743
script: |
37383744
${PREPARE_SHELL}
37393745
set +o xtrace
3740-
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_DRIVERS_GROUP} \
3746+
if [[ -n "${USE_SERVERLESS_PROXY}" ]];
3747+
then
3748+
export SERVERLESS_GROUP="${PROXY_SERVERLESS_DRIVERS_GROUP}"
3749+
else
3750+
export SERVERLESS_GROUP="${SERVERLESS_DRIVERS_GROUP}"
3751+
fi
3752+
SERVERLESS_DRIVERS_GROUP=${SERVERLESS_GROUP} \
37413753
SERVERLESS_API_PUBLIC_KEY=${SERVERLESS_API_PUBLIC_KEY} \
37423754
SERVERLESS_API_PRIVATE_KEY=${SERVERLESS_API_PRIVATE_KEY} \
37433755
SERVERLESS_INSTANCE_NAME=${SERVERLESS_INSTANCE_NAME} \
@@ -4373,6 +4385,15 @@ buildvariants:
43734385
NPM_VERSION: 9
43744386
tasks:
43754387
- serverless_task_group
4388+
- name: rhel8-test-serverless-proxy
4389+
display_name: Serverless Proxy Test
4390+
run_on: rhel80-large
4391+
expansions:
4392+
NODE_LTS_VERSION: 16
4393+
NPM_VERSION: 9
4394+
USE_SERVERLESS_PROXY: true
4395+
tasks:
4396+
- serverless_task_group
43764397
- name: rhel8-test-gcp-kms
43774398
display_name: GCP KMS Test
43784399
run_on: debian11-small

.evergreen/generate_evergreen_tasks.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,18 @@ BUILD_VARIANTS.push({
695695
tasks: ['serverless_task_group']
696696
});
697697

698+
BUILD_VARIANTS.push({
699+
name: 'rhel8-test-serverless-proxy',
700+
display_name: 'Serverless Proxy Test',
701+
run_on: DEFAULT_OS,
702+
expansions: {
703+
NODE_LTS_VERSION: LOWEST_LTS,
704+
NPM_VERSION: 9,
705+
USE_SERVERLESS_PROXY: true
706+
},
707+
tasks: ['serverless_task_group']
708+
});
709+
698710
BUILD_VARIANTS.push({
699711
name: 'rhel8-test-gcp-kms',
700712
display_name: 'GCP KMS Test',

HISTORY.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,43 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [6.4.0](https://github.com/mongodb/node-mongodb-native/compare/v6.3.0...v6.4.0) (2024-02-29)
6+
7+
8+
### Features
9+
10+
* **NODE-3449:** Add serverConnectionId to Command Monitoring Spec ([735f7aa](https://github.com/mongodb/node-mongodb-native/commit/735f7aa17c2403044c015c0eb0fc7e4be08c0983))
11+
* **NODE-3470:** retry selects another mongos ([#3963](https://github.com/mongodb/node-mongodb-native/issues/3963)) ([84959ee](https://github.com/mongodb/node-mongodb-native/commit/84959ee27135abd04e4009b0adfebc7889d9139f))
12+
* **NODE-3689:** require hello command for connection handshake to use OP_MSG disallowing OP_QUERY ([#3938](https://github.com/mongodb/node-mongodb-native/issues/3938)) ([ce7df0f](https://github.com/mongodb/node-mongodb-native/commit/ce7df0f79ed764d4a36caf1562cea4f5015c0ea6))
13+
* **NODE-4686:** Add log messages to CLAM ([#3955](https://github.com/mongodb/node-mongodb-native/issues/3955)) ([e3bfa30](https://github.com/mongodb/node-mongodb-native/commit/e3bfa30eefe6b0a79141b32029d8e44d426275d6))
14+
* **NODE-4687:** Add logging to server selection ([#3946](https://github.com/mongodb/node-mongodb-native/issues/3946)) ([7f3ce0b](https://github.com/mongodb/node-mongodb-native/commit/7f3ce0bb8d4173739e5a3ffe9041dd11b28f9b08))
15+
* **NODE-4719:** add SDAM Logging Spec ([#3940](https://github.com/mongodb/node-mongodb-native/issues/3940)) ([a3c0298](https://github.com/mongodb/node-mongodb-native/commit/a3c02983bc9cead125373d86a5c47cf8f4e40f9e))
16+
* **NODE-4847:** Add config error handling to logging ([#3970](https://github.com/mongodb/node-mongodb-native/issues/3970)) ([8f7bb59](https://github.com/mongodb/node-mongodb-native/commit/8f7bb593cbd1b2cd69c76702dbd1125479d1055a))
17+
* **NODE-5717:** make ExceededTimeLimit retryable reads error ([#3947](https://github.com/mongodb/node-mongodb-native/issues/3947)) ([106ab09](https://github.com/mongodb/node-mongodb-native/commit/106ab092d0fe184509551c55b6b0fe817fa6ba21))
18+
* **NODE-5885:** upgrade BSON to `^6.3.0` ([#3983](https://github.com/mongodb/node-mongodb-native/issues/3983)) ([9401d09](https://github.com/mongodb/node-mongodb-native/commit/9401d09af4def8bfbeff65e70863be5d13b3dd61))
19+
* **NODE-5939:** Implement 6.x: cache the AWS credentials provider in the MONGODB-AWS auth logic ([#3991](https://github.com/mongodb/node-mongodb-native/issues/3991)) ([e0a37e5](https://github.com/mongodb/node-mongodb-native/commit/e0a37e594919d173762b0c64a24bb0291b159fa5))
20+
* **NODE-5978:** upgrade BSON to ^6.4.0 ([#4007](https://github.com/mongodb/node-mongodb-native/issues/4007)) ([90f2f70](https://github.com/mongodb/node-mongodb-native/commit/90f2f70ba61e598fd3c69c1e2a5ae4297fe8f333))
21+
22+
23+
### Bug Fixes
24+
25+
* **NODE-5127:** implement reject kmsRequest on server close ([#3964](https://github.com/mongodb/node-mongodb-native/issues/3964)) ([568e05f](https://github.com/mongodb/node-mongodb-native/commit/568e05fdc3d78882e925e8e799aca6fb86c88295))
26+
* **NODE-5609:** node driver omits base64 padding in sasl-continue command ([#3975](https://github.com/mongodb/node-mongodb-native/issues/3975)) ([b7d28d3](https://github.com/mongodb/node-mongodb-native/commit/b7d28d3135fa298d693aa22d2f1713054c5b0751))
27+
* **NODE-5765:** change type for countDocuments ([#3932](https://github.com/mongodb/node-mongodb-native/issues/3932)) ([22cae0f](https://github.com/mongodb/node-mongodb-native/commit/22cae0fbc0ad4043e27210577427870b8ec287f5))
28+
* **NODE-5791:** type error with $addToSet in bulkWrite ([#3953](https://github.com/mongodb/node-mongodb-native/issues/3953)) ([b93d405](https://github.com/mongodb/node-mongodb-native/commit/b93d405275c3a8ce6b1eba0af335ffb2a309e34e))
29+
* **NODE-5818:** Add feature flagging to server selection logging ([#3974](https://github.com/mongodb/node-mongodb-native/issues/3974)) ([55203ef](https://github.com/mongodb/node-mongodb-native/commit/55203ef53d085518fd0acaf4b23d4a987cf6736d))
30+
* **NODE-5839:** support for multibyte code-points in stringifyWithMaxLen ([#3979](https://github.com/mongodb/node-mongodb-native/issues/3979)) ([aed1cf0](https://github.com/mongodb/node-mongodb-native/commit/aed1cf0d2b1083e24997e49bfe7f5416e944466e))
31+
* **NODE-5840:** heartbeat duration includes socket creation ([#3973](https://github.com/mongodb/node-mongodb-native/issues/3973)) ([a42039b](https://github.com/mongodb/node-mongodb-native/commit/a42039b9d03f1fc4d58f6edc641a839bc0364cd2))
32+
* **NODE-5901:** propagate errors to transformed stream in cursor ([#3985](https://github.com/mongodb/node-mongodb-native/issues/3985)) ([ecfc615](https://github.com/mongodb/node-mongodb-native/commit/ecfc6157786360832d1afb4294d76f83a90a9d70))
33+
* **NODE-5944:** make AWS session token optional ([#4002](https://github.com/mongodb/node-mongodb-native/issues/4002)) ([f26de76](https://github.com/mongodb/node-mongodb-native/commit/f26de764c7ee5034992ec5978175fc50f29fc690))
34+
35+
36+
### Performance Improvements
37+
38+
* **NODE-5771:** improve new connection ([#3948](https://github.com/mongodb/node-mongodb-native/issues/3948)) ([a4776cf](https://github.com/mongodb/node-mongodb-native/commit/a4776cfe638c4e51cb690e43b941153d4f36a30a))
39+
* **NODE-5854:** Conditional logger instantiation and precompute willLog perf fix ([#3984](https://github.com/mongodb/node-mongodb-native/issues/3984)) ([a63fbc2](https://github.com/mongodb/node-mongodb-native/commit/a63fbc2a98a2b0ed88bfe2cd5f59e9feee97820b))
40+
* **NODE-5928:** consolidate signal use and abort promise wrap ([#3992](https://github.com/mongodb/node-mongodb-native/issues/3992)) ([38742c2](https://github.com/mongodb/node-mongodb-native/commit/38742c2849d00e6a6070329b5c6a19704f40eb89))
41+
542
## [6.3.0](https://github.com/mongodb/node-mongodb-native/compare/v6.2.0...v6.3.0) (2023-11-15)
643

744

docs/6.4/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.

docs/6.4/assets/highlight.css

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
:root {
2+
--light-hl-0: #795E26;
3+
--dark-hl-0: #DCDCAA;
4+
--light-hl-1: #000000;
5+
--dark-hl-1: #D4D4D4;
6+
--light-hl-2: #A31515;
7+
--dark-hl-2: #CE9178;
8+
--light-hl-3: #008000;
9+
--dark-hl-3: #6A9955;
10+
--light-hl-4: #0000FF;
11+
--dark-hl-4: #569CD6;
12+
--light-hl-5: #0070C1;
13+
--dark-hl-5: #4FC1FF;
14+
--light-hl-6: #001080;
15+
--dark-hl-6: #9CDCFE;
16+
--light-hl-7: #AF00DB;
17+
--dark-hl-7: #C586C0;
18+
--light-hl-8: #098658;
19+
--dark-hl-8: #B5CEA8;
20+
--light-hl-9: #267F99;
21+
--dark-hl-9: #4EC9B0;
22+
--light-hl-10: #000000;
23+
--dark-hl-10: #C8C8C8;
24+
--light-hl-11: #000000FF;
25+
--dark-hl-11: #D4D4D4;
26+
--light-hl-12: #EE0000;
27+
--dark-hl-12: #D7BA7D;
28+
--light-hl-13: #811F3F;
29+
--dark-hl-13: #D16969;
30+
--light-code-background: #FFFFFF;
31+
--dark-code-background: #1E1E1E;
32+
}
33+
34+
@media (prefers-color-scheme: light) { :root {
35+
--hl-0: var(--light-hl-0);
36+
--hl-1: var(--light-hl-1);
37+
--hl-2: var(--light-hl-2);
38+
--hl-3: var(--light-hl-3);
39+
--hl-4: var(--light-hl-4);
40+
--hl-5: var(--light-hl-5);
41+
--hl-6: var(--light-hl-6);
42+
--hl-7: var(--light-hl-7);
43+
--hl-8: var(--light-hl-8);
44+
--hl-9: var(--light-hl-9);
45+
--hl-10: var(--light-hl-10);
46+
--hl-11: var(--light-hl-11);
47+
--hl-12: var(--light-hl-12);
48+
--hl-13: var(--light-hl-13);
49+
--code-background: var(--light-code-background);
50+
} }
51+
52+
@media (prefers-color-scheme: dark) { :root {
53+
--hl-0: var(--dark-hl-0);
54+
--hl-1: var(--dark-hl-1);
55+
--hl-2: var(--dark-hl-2);
56+
--hl-3: var(--dark-hl-3);
57+
--hl-4: var(--dark-hl-4);
58+
--hl-5: var(--dark-hl-5);
59+
--hl-6: var(--dark-hl-6);
60+
--hl-7: var(--dark-hl-7);
61+
--hl-8: var(--dark-hl-8);
62+
--hl-9: var(--dark-hl-9);
63+
--hl-10: var(--dark-hl-10);
64+
--hl-11: var(--dark-hl-11);
65+
--hl-12: var(--dark-hl-12);
66+
--hl-13: var(--dark-hl-13);
67+
--code-background: var(--dark-code-background);
68+
} }
69+
70+
:root[data-theme='light'] {
71+
--hl-0: var(--light-hl-0);
72+
--hl-1: var(--light-hl-1);
73+
--hl-2: var(--light-hl-2);
74+
--hl-3: var(--light-hl-3);
75+
--hl-4: var(--light-hl-4);
76+
--hl-5: var(--light-hl-5);
77+
--hl-6: var(--light-hl-6);
78+
--hl-7: var(--light-hl-7);
79+
--hl-8: var(--light-hl-8);
80+
--hl-9: var(--light-hl-9);
81+
--hl-10: var(--light-hl-10);
82+
--hl-11: var(--light-hl-11);
83+
--hl-12: var(--light-hl-12);
84+
--hl-13: var(--light-hl-13);
85+
--code-background: var(--light-code-background);
86+
}
87+
88+
:root[data-theme='dark'] {
89+
--hl-0: var(--dark-hl-0);
90+
--hl-1: var(--dark-hl-1);
91+
--hl-2: var(--dark-hl-2);
92+
--hl-3: var(--dark-hl-3);
93+
--hl-4: var(--dark-hl-4);
94+
--hl-5: var(--dark-hl-5);
95+
--hl-6: var(--dark-hl-6);
96+
--hl-7: var(--dark-hl-7);
97+
--hl-8: var(--dark-hl-8);
98+
--hl-9: var(--dark-hl-9);
99+
--hl-10: var(--dark-hl-10);
100+
--hl-11: var(--dark-hl-11);
101+
--hl-12: var(--dark-hl-12);
102+
--hl-13: var(--dark-hl-13);
103+
--code-background: var(--dark-code-background);
104+
}
105+
106+
.hl-0 { color: var(--hl-0); }
107+
.hl-1 { color: var(--hl-1); }
108+
.hl-2 { color: var(--hl-2); }
109+
.hl-3 { color: var(--hl-3); }
110+
.hl-4 { color: var(--hl-4); }
111+
.hl-5 { color: var(--hl-5); }
112+
.hl-6 { color: var(--hl-6); }
113+
.hl-7 { color: var(--hl-7); }
114+
.hl-8 { color: var(--hl-8); }
115+
.hl-9 { color: var(--hl-9); }
116+
.hl-10 { color: var(--hl-10); }
117+
.hl-11 { color: var(--hl-11); }
118+
.hl-12 { color: var(--hl-12); }
119+
.hl-13 { color: var(--hl-13); }
120+
pre, code { background: var(--code-background); }

docs/6.4/assets/main.js

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/6.4/assets/search.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)