Skip to content

Commit bd6741a

Browse files
Merge branch 'main' into DRIVERS-3022
2 parents e190eab + 4842cd8 commit bd6741a

File tree

797 files changed

+24516
-2411
lines changed

Some content is hidden

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

797 files changed

+24516
-2411
lines changed

.evergreen/ci_matrix_constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const MONGODB_VERSIONS = ['latest', 'rapid', '8.0', '7.0', '6.0', '5.0', '4.4',
22
const versions = [
33
{ codeName: 'gallium', versionNumber: 16, npmVersion: 9 },
44
{ codeName: 'hydrogen', versionNumber: 18, npmVersion: 'latest' },
5-
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' }
5+
{ codeName: 'iron', versionNumber: 20, npmVersion: 'latest' },
6+
{ codeName: 'jod', versionNumber: 22, npmVersion: 'latest' },
67
];
78
const NODE_VERSIONS = versions.map(({ versionNumber }) => versionNumber).sort();
89
const LOWEST_LTS = NODE_VERSIONS[0];

.evergreen/config.yml

Lines changed: 123 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3555,6 +3555,18 @@ tasks:
35553555
- {key: NPM_VERSION, value: latest}
35563556
- func: install dependencies
35573557
- func: run unit tests
3558+
- name: run-unit-tests-node-22
3559+
tags:
3560+
- unit-tests
3561+
commands:
3562+
- command: expansions.update
3563+
type: setup
3564+
params:
3565+
updates:
3566+
- {key: NODE_LTS_VERSION, value: '22'}
3567+
- {key: NPM_VERSION, value: latest}
3568+
- func: install dependencies
3569+
- func: run unit tests
35583570
- name: run-lint-checks
35593571
tags:
35603572
- lint-checks
@@ -4892,6 +4904,64 @@ buildvariants:
48924904
- test-tls-support-5.0
48934905
- test-tls-support-4.4
48944906
- test-tls-support-4.2
4907+
- name: rhel80-large-Node22
4908+
display_name: rhel8 Node22
4909+
run_on: rhel80-large
4910+
expansions:
4911+
NODE_LTS_VERSION: 22
4912+
NPM_VERSION: latest
4913+
CLIENT_ENCRYPTION: true
4914+
tasks:
4915+
- test-latest-server
4916+
- test-latest-replica_set
4917+
- test-latest-sharded_cluster
4918+
- test-rapid-server
4919+
- test-rapid-replica_set
4920+
- test-rapid-sharded_cluster
4921+
- test-8.0-server
4922+
- test-8.0-replica_set
4923+
- test-8.0-sharded_cluster
4924+
- test-7.0-server
4925+
- test-7.0-replica_set
4926+
- test-7.0-sharded_cluster
4927+
- test-6.0-server
4928+
- test-6.0-replica_set
4929+
- test-6.0-sharded_cluster
4930+
- test-5.0-server
4931+
- test-5.0-replica_set
4932+
- test-5.0-sharded_cluster
4933+
- test-4.4-server
4934+
- test-4.4-replica_set
4935+
- test-4.4-sharded_cluster
4936+
- test-4.2-server
4937+
- test-4.2-replica_set
4938+
- test-4.2-sharded_cluster
4939+
- test-4.0-server
4940+
- test-4.0-replica_set
4941+
- test-4.0-sharded_cluster
4942+
- test-latest-server-v1-api
4943+
- test-x509-authentication
4944+
- test-atlas-connectivity
4945+
- test-5.0-load-balanced
4946+
- test-6.0-load-balanced
4947+
- test-7.0-load-balanced
4948+
- test-8.0-load-balanced
4949+
- test-rapid-load-balanced
4950+
- test-latest-load-balanced
4951+
- test-auth-kerberos
4952+
- test-auth-ldap
4953+
- test-socks5
4954+
- test-socks5-csfle
4955+
- test-socks5-tls
4956+
- test-zstd-compression
4957+
- test-snappy-compression
4958+
- test-tls-support-latest
4959+
- test-tls-support-8.0
4960+
- test-tls-support-7.0
4961+
- test-tls-support-6.0
4962+
- test-tls-support-5.0
4963+
- test-tls-support-4.4
4964+
- test-tls-support-4.2
48954965
- name: rhel80-large-node-latest
48964966
display_name: rhel8 Node Latest
48974967
run_on: rhel80-large
@@ -5080,6 +5150,52 @@ buildvariants:
50805150
- test-tls-support-5.0
50815151
- test-tls-support-4.4
50825152
- test-tls-support-4.2
5153+
- name: windows-vsCurrent-large-Node22
5154+
display_name: Windows Node22
5155+
run_on: windows-vsCurrent-large
5156+
expansions:
5157+
NODE_LTS_VERSION: 22
5158+
NPM_VERSION: latest
5159+
tasks:
5160+
- test-latest-server
5161+
- test-latest-replica_set
5162+
- test-latest-sharded_cluster
5163+
- test-rapid-server
5164+
- test-rapid-replica_set
5165+
- test-rapid-sharded_cluster
5166+
- test-8.0-server
5167+
- test-8.0-replica_set
5168+
- test-8.0-sharded_cluster
5169+
- test-7.0-server
5170+
- test-7.0-replica_set
5171+
- test-7.0-sharded_cluster
5172+
- test-6.0-server
5173+
- test-6.0-replica_set
5174+
- test-6.0-sharded_cluster
5175+
- test-5.0-server
5176+
- test-5.0-replica_set
5177+
- test-5.0-sharded_cluster
5178+
- test-4.4-server
5179+
- test-4.4-replica_set
5180+
- test-4.4-sharded_cluster
5181+
- test-4.2-server
5182+
- test-4.2-replica_set
5183+
- test-4.2-sharded_cluster
5184+
- test-4.0-server
5185+
- test-4.0-replica_set
5186+
- test-4.0-sharded_cluster
5187+
- test-latest-server-v1-api
5188+
- test-socks5
5189+
- test-socks5-tls
5190+
- test-zstd-compression
5191+
- test-snappy-compression
5192+
- test-tls-support-latest
5193+
- test-tls-support-8.0
5194+
- test-tls-support-7.0
5195+
- test-tls-support-6.0
5196+
- test-tls-support-5.0
5197+
- test-tls-support-4.4
5198+
- test-tls-support-4.2
50835199
- name: rhel8-node16-test-csfle-mongocryptd
50845200
display_name: rhel 8 Node16 test mongocryptd
50855201
run_on: rhel80-large
@@ -5097,8 +5213,8 @@ buildvariants:
50975213
- test-5.0-csfle-mongocryptd
50985214
- test-4.4-csfle-mongocryptd
50995215
- test-4.2-csfle-mongocryptd
5100-
- name: rhel8-node20-test-csfle-mongocryptd
5101-
display_name: rhel 8 Node20 test mongocryptd
5216+
- name: rhel8-node22-test-csfle-mongocryptd
5217+
display_name: rhel 8 Node22 test mongocryptd
51025218
run_on: rhel80-large
51035219
expansions:
51045220
CLIENT_ENCRYPTION: true
@@ -5115,10 +5231,10 @@ buildvariants:
51155231
- test-4.4-csfle-mongocryptd
51165232
- test-4.2-csfle-mongocryptd
51175233
- name: macos-1100
5118-
display_name: MacOS 11 Node20
5234+
display_name: MacOS 11 Node22
51195235
run_on: macos-1100
51205236
expansions:
5121-
NODE_LTS_VERSION: 20
5237+
NODE_LTS_VERSION: 22
51225238
CLIENT_ENCRYPTION: true
51235239
tasks:
51245240
- test-rapid-server
@@ -5138,7 +5254,7 @@ buildvariants:
51385254
display_name: MONGODB-AWS Auth test
51395255
run_on: ubuntu2004-small
51405256
expansions:
5141-
NODE_LTS_VERSION: 20
5257+
NODE_LTS_VERSION: 22
51425258
tasks:
51435259
- aws-latest-auth-test-run-aws-auth-test-with-regular-aws-credentials
51445260
- aws-latest-auth-test-run-aws-auth-test-with-assume-role-credentials
@@ -5228,7 +5344,7 @@ buildvariants:
52285344
display_name: Atlas Data Lake Tests
52295345
run_on: ubuntu2204-large
52305346
expansions:
5231-
NODE_LTS_VERSION: 20
5347+
NODE_LTS_VERSION: 22
52325348
tasks:
52335349
- test-atlas-data-lake
52345350
- name: rhel8-custom-dependency-tests
@@ -5264,7 +5380,7 @@ buildvariants:
52645380
display_name: MONGODB-OIDC Auth Tests
52655381
run_on: ubuntu2004-small
52665382
expansions:
5267-
NODE_LTS_VERSION: 20
5383+
NODE_LTS_VERSION: 22
52685384
batchtime: 20160
52695385
tasks:
52705386
- testtestoidc_task_group

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
version: 2
77
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"
812
- package-ecosystem: "npm" # See documentation for possible values
913
directory: "/" # Location of package manifests
1014
schedule:

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "6.10.0"
2+
".": "6.11.0"
33
}

HISTORY.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,46 @@
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.11.0](https://github.com/mongodb/node-mongodb-native/compare/v6.10.0...v6.11.0) (2024-11-22)
6+
7+
8+
### Features
9+
10+
* **NODE-5682:** set maxTimeMS on commands and preempt I/O ([#4174](https://github.com/mongodb/node-mongodb-native/issues/4174)) ([e4e6a5e](https://github.com/mongodb/node-mongodb-native/commit/e4e6a5e9bff4e30f67e728990012bf0e8ee3e1ff))
11+
* **NODE-5844:** add iscryptd to ServerDescription ([#4239](https://github.com/mongodb/node-mongodb-native/issues/4239)) ([c39d443](https://github.com/mongodb/node-mongodb-native/commit/c39d443027368f927e58fbabb88b50b8f3e2e8a8))
12+
* **NODE-6069:** OIDC k8s machine workflow ([#4270](https://github.com/mongodb/node-mongodb-native/issues/4270)) ([82c931c](https://github.com/mongodb/node-mongodb-native/commit/82c931c704d30f1a9555519d1ac2c9e03a2e69c4))
13+
* **NODE-6090:** Implement CSOT logic for connection checkout and server selection ([bd8a9f4](https://github.com/mongodb/node-mongodb-native/commit/bd8a9f44f37159c494957cbe9d343b08d98bf128))
14+
* **NODE-6231:** Add CSOT behaviour for retryable reads and writes ([#4186](https://github.com/mongodb/node-mongodb-native/issues/4186)) ([2ffd5eb](https://github.com/mongodb/node-mongodb-native/commit/2ffd5eb125bc4b6e444458569728e8698bc71d1a))
15+
* **NODE-6274:** add CSOT support to bulkWrite ([#4250](https://github.com/mongodb/node-mongodb-native/issues/4250)) ([c5a9ae5](https://github.com/mongodb/node-mongodb-native/commit/c5a9ae55f8baecd0460bef688d66336bb1b86415))
16+
* **NODE-6275:** Add CSOT support to GridFS ([#4246](https://github.com/mongodb/node-mongodb-native/issues/4246)) ([3cb8187](https://github.com/mongodb/node-mongodb-native/commit/3cb8187057aba0bed57da0fef7ffad20d451a7d0))
17+
* **NODE-6304:** add CSOT support for non-tailable cursors ([#4195](https://github.com/mongodb/node-mongodb-native/issues/4195)) ([131f6ed](https://github.com/mongodb/node-mongodb-native/commit/131f6ed63bef473b5e4ce1062c864c58a48bd092))
18+
* **NODE-6305:** Add CSOT support to tailable cursors ([#4218](https://github.com/mongodb/node-mongodb-native/issues/4218)) ([2398fc6](https://github.com/mongodb/node-mongodb-native/commit/2398fc6b4a13b6c615315df2a1b8b8ffb737d8c3))
19+
* **NODE-6312:** add error transformation for server timeouts ([#4192](https://github.com/mongodb/node-mongodb-native/issues/4192)) ([c2c0cb9](https://github.com/mongodb/node-mongodb-native/commit/c2c0cb9eb22adc2d61611d3aa965f9062f5089a0))
20+
* **NODE-6313:** add CSOT support to sessions and transactions ([#4199](https://github.com/mongodb/node-mongodb-native/issues/4199)) ([5f1102f](https://github.com/mongodb/node-mongodb-native/commit/5f1102f0e9cd8de908a33f615cd03a4fefc9d916))
21+
* **NODE-6387:** Add CSOT support to change streams ([#4256](https://github.com/mongodb/node-mongodb-native/issues/4256)) ([4588ff2](https://github.com/mongodb/node-mongodb-native/commit/4588ff2fa68cffb5f6769390d8c3eabe6926d483))
22+
* **NODE-6389:** add support for timeoutMS in StateMachine.execute() ([#4243](https://github.com/mongodb/node-mongodb-native/issues/4243)) ([c55f965](https://github.com/mongodb/node-mongodb-native/commit/c55f96571ec4730bdd80c2a233cfaaf035ed688d))
23+
* **NODE-6390:** Add timeoutMS support to auto encryption ([#4265](https://github.com/mongodb/node-mongodb-native/issues/4265)) ([55e08e7](https://github.com/mongodb/node-mongodb-native/commit/55e08e73194243e1ae4c6803429041e6b1d414e6))
24+
* **NODE-6391:** Add timeoutMS support to explicit encryption ([#4269](https://github.com/mongodb/node-mongodb-native/issues/4269)) ([f745b99](https://github.com/mongodb/node-mongodb-native/commit/f745b99099c3d4d66e135af612ea341ed0d9750b))
25+
* **NODE-6392:** add timeoutMS support to ClientEncryption helpers part 1 ([#4281](https://github.com/mongodb/node-mongodb-native/issues/4281)) ([e86f11e](https://github.com/mongodb/node-mongodb-native/commit/e86f11ed0cac1a32cb1b10d9ece3829827f4832b))
26+
* **NODE-6403:** add CSOT support to client bulk write ([#4261](https://github.com/mongodb/node-mongodb-native/issues/4261)) ([365d63b](https://github.com/mongodb/node-mongodb-native/commit/365d63b46551620b92c6f8979679ea38c49ae7bd))
27+
* **NODE-6421:** add support for timeoutMS to explain helpers ([#4268](https://github.com/mongodb/node-mongodb-native/issues/4268)) ([5b2629b](https://github.com/mongodb/node-mongodb-native/commit/5b2629be4948b1f51f5085cc0ceef6818f8fe782))
28+
* **NODE-6446:** deprecate legacy timeout options ([#4279](https://github.com/mongodb/node-mongodb-native/issues/4279)) ([c28608b](https://github.com/mongodb/node-mongodb-native/commit/c28608b8b19a8fbcfdc204a3fda982d52eea03a5))
29+
* **NODE-6551:** update bson to 6.10.0 ([#4329](https://github.com/mongodb/node-mongodb-native/issues/4329)) ([adb15fe](https://github.com/mongodb/node-mongodb-native/commit/adb15feb4e6e4e1ce0e4e35373b0b5cef8f5a320))
30+
31+
32+
### Bug Fixes
33+
34+
* **NODE-6374:** MongoOperationTimeoutError inherits MongoRuntimeError ([#4237](https://github.com/mongodb/node-mongodb-native/issues/4237)) ([9fb896a](https://github.com/mongodb/node-mongodb-native/commit/9fb896a962a1bd5924453f0d2c43b0af8c01e4ba))
35+
* **NODE-6412:** read stale response from previously timed out connection ([#4273](https://github.com/mongodb/node-mongodb-native/issues/4273)) ([fd8f3bd](https://github.com/mongodb/node-mongodb-native/commit/fd8f3bd8f78960726a31d24afeb27d51c549f660))
36+
* **NODE-6454:** use timeoutcontext for state machine execute() cursor options ([#4291](https://github.com/mongodb/node-mongodb-native/issues/4291)) ([5dd8ee5](https://github.com/mongodb/node-mongodb-native/commit/5dd8ee5632a306346406e8856e01ac21dedef813))
37+
* **NODE-6469:** pool is cleared before connection checkin on error ([#4296](https://github.com/mongodb/node-mongodb-native/issues/4296)) ([06a2e2c](https://github.com/mongodb/node-mongodb-native/commit/06a2e2ce45921dfe898eefaf1fbdd461c212d512))
38+
* **NODE-6523:** deleteMany in gridfs passes timeoutMS to predicate, not options ([#4319](https://github.com/mongodb/node-mongodb-native/issues/4319)) ([1965ed5](https://github.com/mongodb/node-mongodb-native/commit/1965ed51296bac9149ecb077b6cafd43150a3a07))
39+
40+
41+
### Performance Improvements
42+
43+
* **NODE-6525:** remove setPrototype and defineProperty from hot path ([#4321](https://github.com/mongodb/node-mongodb-native/issues/4321)) ([48ed47e](https://github.com/mongodb/node-mongodb-native/commit/48ed47ec192416e86762527cf3beabb4a634ac93))
44+
545
## [6.10.0](https://github.com/mongodb/node-mongodb-native/compare/v6.9.0...v6.10.0) (2024-10-21)
646

747

docs/6.11/.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.11/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: #0000FF;
7+
--dark-hl-2: #569CD6;
8+
--light-hl-3: #A31515;
9+
--dark-hl-3: #CE9178;
10+
--light-hl-4: #008000;
11+
--dark-hl-4: #6A9955;
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: #811F3F;
25+
--dark-hl-11: #D16969;
26+
--light-hl-12: #000000FF;
27+
--dark-hl-12: #D4D4D4;
28+
--light-hl-13: #EE0000;
29+
--dark-hl-13: #D7BA7D;
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); }

0 commit comments

Comments
 (0)