Skip to content

Commit 606fa73

Browse files
authored
Merge branch 'main' into explain-poc
2 parents 371271d + 8b0f354 commit 606fa73

File tree

941 files changed

+37236
-265510
lines changed

Some content is hidden

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

941 files changed

+37236
-265510
lines changed

.github/workflows/build_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and commit docs
22

33
on:
44
push:
5-
branches: [main]
5+
branches: ['main']
66

77
permissions:
88
contents: write

.github/workflows/release-5.x.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [5.x]
3+
branches: ['5.x']
44
workflow_dispatch: {}
55

66
permissions:
@@ -19,7 +19,7 @@ jobs:
1919
- id: release
2020
uses: googleapis/release-please-action@v4
2121
with:
22-
target-branch: 5.x
22+
target-branch: '5.x'
2323

2424
build:
2525
needs: [release_please]
@@ -37,6 +37,8 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- uses: actions/checkout@v4
40+
with:
41+
ref: '5.x'
4042

4143
- name: Install Node and dependencies
4244
uses: mongodb-labs/drivers-github-tools/node/setup@v2
@@ -75,7 +77,7 @@ jobs:
7577
with:
7678
release_version: ${{ env.package_version }}
7779
product_name: mongodb
78-
sarif_report_target_ref: 5.x
80+
sarif_report_target_ref: '5.x'
7981
third_party_dependency_tool: n/a
8082
dist_filenames: artifacts/*
8183
token: ${{ github.token }}
@@ -95,6 +97,8 @@ jobs:
9597
runs-on: ubuntu-latest
9698
steps:
9799
- uses: actions/checkout@v4
100+
with:
101+
ref: '5.x'
98102

99103
- name: Install Node and dependencies
100104
uses: mongodb-labs/drivers-github-tools/node/setup@v2

.github/workflows/release-6.8.yml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
on:
2+
push:
3+
branches: ['6.8']
4+
workflow_dispatch: {}
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
id-token: write
10+
11+
name: release-68
12+
13+
jobs:
14+
release_please:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
release_created: ${{ steps.release.outputs.release_created }}
18+
steps:
19+
- id: release
20+
uses: googleapis/release-please-action@v4
21+
with:
22+
target-branch: '6.8'
23+
24+
build:
25+
needs: [release_please]
26+
name: 'Perform any build or bundling steps, as necessary.'
27+
uses: ./.github/workflows/build.yml
28+
29+
ssdlc:
30+
needs: [release_please, build]
31+
permissions:
32+
# required for all workflows
33+
security-events: write
34+
id-token: write
35+
contents: write
36+
environment: release
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
with:
41+
ref: '6.8'
42+
43+
- name: Install Node and dependencies
44+
uses: mongodb-labs/drivers-github-tools/node/setup@v2
45+
with:
46+
ignore_install_scripts: false
47+
48+
- name: Load version and package info
49+
uses: mongodb-labs/drivers-github-tools/node/get_version_info@v2
50+
with:
51+
npm_package_name: mongodb
52+
53+
- name: actions/compress_sign_and_upload
54+
uses: mongodb-labs/drivers-github-tools/node/sign_node_package@v2
55+
with:
56+
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
57+
aws_region_name: us-east-1
58+
aws_secret_id: ${{ secrets.AWS_SECRET_ID }}
59+
npm_package_name: mongodb
60+
dry_run: ${{ needs.release_please.outputs.release_created == '' }}
61+
62+
- name: Copy sbom file to release assets
63+
shell: bash
64+
if: ${{ '' == '' }}
65+
run: cp sbom.json ${{ env.S3_ASSETS }}/sbom.json
66+
67+
# only used for mongodb-client-encryption
68+
- name: Augment SBOM and copy to release assets
69+
if: ${{ '' != '' }}
70+
uses: mongodb-labs/drivers-github-tools/sbom@v2
71+
with:
72+
silk_asset_group: ''
73+
sbom_file_name: sbom.json
74+
75+
- name: Generate authorized pub report
76+
uses: mongodb-labs/drivers-github-tools/full-report@v2
77+
with:
78+
release_version: ${{ env.package_version }}
79+
product_name: mongodb
80+
sarif_report_target_ref: '6.8'
81+
third_party_dependency_tool: n/a
82+
dist_filenames: artifacts/*
83+
token: ${{ github.token }}
84+
sbom_file_name: sbom.json
85+
evergreen_project: mongo-node-driver-next
86+
evergreen_commit: ${{ env.commit }}
87+
88+
- uses: mongodb-labs/drivers-github-tools/upload-s3-assets@v2
89+
with:
90+
version: ${{ env.package_version }}
91+
product_name: mongodb
92+
dry_run: ${{ needs.release_please.outputs.release_created == '' }}
93+
94+
publish:
95+
needs: [release_please, ssdlc, build]
96+
environment: release
97+
runs-on: ubuntu-latest
98+
steps:
99+
- uses: actions/checkout@v4
100+
with:
101+
ref: '6.8'
102+
103+
- name: Install Node and dependencies
104+
uses: mongodb-labs/drivers-github-tools/node/setup@v2
105+
106+
# Just picking a string to put here so that releases from this branch are not marked "latest",
107+
# we should go and rm-dist-tag after this is published, no reason to keep it tagged.
108+
- run: |
109+
npm publish --provenance --tag=tag-for-publishing-older-releases
110+
npm dist-tag rm mongodb tag-for-publishing-older-releases
111+
if: ${{ needs.release_please.outputs.release_created }}
112+
env:
113+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [main]
3+
branches: ['main']
44
workflow_dispatch: {}
55

66
permissions:
@@ -19,7 +19,7 @@ jobs:
1919
- id: release
2020
uses: googleapis/release-please-action@v4
2121
with:
22-
target-branch: main
22+
target-branch: 'main'
2323

2424
build:
2525
needs: [release_please]
@@ -75,7 +75,7 @@ jobs:
7575
with:
7676
release_version: ${{ env.package_version }}
7777
product_name: mongodb
78-
sarif_report_target_ref: main
78+
sarif_report_target_ref: 'main'
7979
third_party_dependency_tool: n/a
8080
dist_filenames: artifacts/*
8181
token: ${{ github.token }}

.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.8.0"
2+
".": "6.9.0"
33
}

HISTORY.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
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.9.0](https://github.com/mongodb/node-mongodb-native/compare/v6.8.0...v6.9.0) (2024-09-12)
6+
7+
8+
### Features
9+
10+
* **NODE-5459:** add durations to connection pool events ([#4166](https://github.com/mongodb/node-mongodb-native/issues/4166)) ([7295695](https://github.com/mongodb/node-mongodb-native/commit/729569527e353a942200533f6150e748454c798d))
11+
* **NODE-5614:** add support for explicit resource management ([#4177](https://github.com/mongodb/node-mongodb-native/issues/4177)) ([b3f3987](https://github.com/mongodb/node-mongodb-native/commit/b3f3987041ddf0aae86044f3fdd1364eecd26d46))
12+
* **NODE-5754:** allow auto select family options ([#4185](https://github.com/mongodb/node-mongodb-native/issues/4185)) ([54efb7d](https://github.com/mongodb/node-mongodb-native/commit/54efb7d497f8efb9953f5d315267e299ed4cf5af))
13+
* **NODE-5908:** support range v2 ([#4141](https://github.com/mongodb/node-mongodb-native/issues/4141)) ([de253a7](https://github.com/mongodb/node-mongodb-native/commit/de253a749f1dd1194b6fbc30c36e88f906981bd3))
14+
* **NODE-6225:** add property ownership check before referencing `mongocryptdSpawnPath` and `mongocryptdSpawnArgs` ([#4151](https://github.com/mongodb/node-mongodb-native/issues/4151)) ([f48f8d3](https://github.com/mongodb/node-mongodb-native/commit/f48f8d36cf96c25ebf656e359e97b61dbfe7c4ed))
15+
* **NODE-6244:** Bump max supported wire version and server version ([#4163](https://github.com/mongodb/node-mongodb-native/issues/4163)) ([45bc098](https://github.com/mongodb/node-mongodb-native/commit/45bc0982f0f00e1811baf2a613989a808783b8b1))
16+
* **NODE-6252:** insertMany and bulkWrite permit readonly arrays ([#4175](https://github.com/mongodb/node-mongodb-native/issues/4175)) ([4b219d3](https://github.com/mongodb/node-mongodb-native/commit/4b219d361b6309dcec480c2bc7e54f548201c15b))
17+
* **NODE-6278:** deprecate 3.6 servers ([#4178](https://github.com/mongodb/node-mongodb-native/issues/4178)) ([35d8840](https://github.com/mongodb/node-mongodb-native/commit/35d88404aad343dfbff502fd350bb22a241fed2a))
18+
* **NODE-6309:** Mark range API as stable ([#4190](https://github.com/mongodb/node-mongodb-native/issues/4190)) ([f53e9d9](https://github.com/mongodb/node-mongodb-native/commit/f53e9d9cebdfaac5edd0e46ee46f1c2eb5b7f8ae))
19+
* **NODE-6327:** new client bulk write types and builders ([#4205](https://github.com/mongodb/node-mongodb-native/issues/4205)) ([6d65ae7](https://github.com/mongodb/node-mongodb-native/commit/6d65ae77835cf144b540a5a344e1f10bb1988bc5))
20+
* **NODE-6365:** pass through `allowPartialTrustChain` TLS flag ([#4228](https://github.com/mongodb/node-mongodb-native/issues/4228)) ([d6c147d](https://github.com/mongodb/node-mongodb-native/commit/d6c147d62a9aa96f0807e190190a06ed880df07f))
21+
22+
23+
### Bug Fixes
24+
25+
* **NODE-5720:** on pre-4.4 sharded servers, the node driver uses `error.writeConcern.code` to determine retryability ([#4155](https://github.com/mongodb/node-mongodb-native/issues/4155)) ([b26c328](https://github.com/mongodb/node-mongodb-native/commit/b26c32800ecb2658a0d9c779bdb741aa06a629d0))
26+
* **NODE-6241:** allow Binary as local kms provider key for auto encryption ([#4165](https://github.com/mongodb/node-mongodb-native/issues/4165)) ([d85f827](https://github.com/mongodb/node-mongodb-native/commit/d85f827aca56603b5d7b64f853c190473be81b6f))
27+
* **NODE-6259:** replace dynamically assigned length property with a static getter ([#4173](https://github.com/mongodb/node-mongodb-native/issues/4173)) ([320dde0](https://github.com/mongodb/node-mongodb-native/commit/320dde04aa1547dd838e7c790bb3432e2ca2bc19))
28+
* **NODE-6276:** preserve top level error code MongoWriteConcernError ([#4183](https://github.com/mongodb/node-mongodb-native/issues/4183)) ([e902584](https://github.com/mongodb/node-mongodb-native/commit/e9025843e43bedb2326675184b6ce49b103e3c77))
29+
* **NODE-6284:** make sparsity and trimFactor optional ([#4189](https://github.com/mongodb/node-mongodb-native/issues/4189)) ([8622545](https://github.com/mongodb/node-mongodb-native/commit/8622545c18d321ae17184cd43207652e454170fc))
30+
* **NODE-6355:** respect utf8 validation options when iterating cursors ([#4214](https://github.com/mongodb/node-mongodb-native/issues/4214)) ([8bfe187](https://github.com/mongodb/node-mongodb-native/commit/8bfe18716197f58c025520da5d771b520e1b1350))
31+
* **NODE-6362:** cache cursor deserialization options across deserialize calls ([#4221](https://github.com/mongodb/node-mongodb-native/issues/4221)) ([833eaa4](https://github.com/mongodb/node-mongodb-native/commit/833eaa41c5f379268be46408282b0c97323ea1bc))
32+
* **NODE-6367:** enable mixed use of iteration APIs ([#4231](https://github.com/mongodb/node-mongodb-native/issues/4231)) ([08912c8](https://github.com/mongodb/node-mongodb-native/commit/08912c8a191937bdef921b4e9a4581b12ebf8b59))
33+
34+
35+
### Performance Improvements
36+
37+
* **NODE-5906:** optimize toArray to use batches ([#4171](https://github.com/mongodb/node-mongodb-native/issues/4171)) ([5565d50](https://github.com/mongodb/node-mongodb-native/commit/5565d5008812f03e9ff86a7b6326447ac5916244))
38+
539
## [6.8.0](https://github.com/mongodb/node-mongodb-native/compare/v6.7.0...v6.8.0) (2024-06-27)
640

741

docs/404.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
</head>
2222

2323
<body>
24-
24+
2525
<header id="header-db" class="row" role="navigation">
2626
<div class="header-content">
27-
27+
2828
<div class="logo pull-left">
29-
<a href="/node-mongodb-native">
29+
<a href="/node-mongodb-native/">
3030
<img src="/node-mongodb-native/s/img/logo-mongodb-header-slate.png", alt="MongoDB.org" />
3131
</a>
3232
</div>
33-
33+
3434
<div>
3535
<div class="nav-items pull-right hidden-xs">
3636
<a href="https://university.mongodb.com" data-toggle="tooltip" data-placement="bottom" title="Free Online Classes">MongoDB University</a>
@@ -44,7 +44,7 @@
4444
</div>
4545
</header>
4646

47-
47+
4848

4949
<div id="promo" class="jumbotron">
5050
<div class="container">
@@ -61,7 +61,7 @@ <h1>404: Page not found</h1>
6161
</div>
6262

6363

64-
64+
6565
<div class="container">
6666
<div class="row">
6767
<div class="col-md-12">
@@ -77,7 +77,7 @@ <h1>404: Page not found</h1>
7777
</div>
7878
</div>
7979
</div>
80-
80+
8181

8282

8383

docs/6.9/.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.

0 commit comments

Comments
 (0)