Skip to content

Commit 6a1fd09

Browse files
Merge branch 'main' into NODE-7180
2 parents 561b087 + 1702987 commit 6a1fd09

102 files changed

Lines changed: 2564 additions & 3012 deletions

File tree

Some content is hidden

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

.evergreen/config.in.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ functions:
617617
export AWS_ACCESS_KEY_ID=${aws_key}
618618
export AWS_SECRET_ACCESS_KEY=${aws_secret}
619619
620+
# use Node20
621+
export PATH=/opt/devtools/node20/bin:/opt/dev/tools/bin:$PATH
622+
620623
# Download all the task coverage files.
621624
# NOTE: All coverage files are too large for V8 to handle the resulting call to
622625
# JSON.stringify from within nyc, so with stick to Fermiun to include the

.evergreen/config.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,9 @@ functions:
556556
export AWS_ACCESS_KEY_ID=${aws_key}
557557
export AWS_SECRET_ACCESS_KEY=${aws_secret}
558558
559+
# use Node20
560+
export PATH=/opt/devtools/node20/bin:/opt/dev/tools/bin:$PATH
561+
559562
# Download all the task coverage files.
560563
# NOTE: All coverage files are too large for V8 to handle the resulting call to
561564
# JSON.stringify from within nyc, so with stick to Fermiun to include the
@@ -1857,17 +1860,6 @@ tasks:
18571860
- {key: NODE_LTS_VERSION, value: '22'}
18581861
- func: install dependencies
18591862
- func: run lint checks
1860-
- name: run-resource-management-async-dispose
1861-
tags:
1862-
- resource-management
1863-
commands:
1864-
- command: expansions.update
1865-
type: setup
1866-
params:
1867-
updates:
1868-
- {key: NODE_LTS_VERSION, value: '22'}
1869-
- func: install dependencies
1870-
- func: check resource management
18711863
- name: test-explicit-resource-management-feature-integration
18721864
tags:
18731865
- resource-management
@@ -1994,24 +1986,6 @@ tasks:
19941986
- func: install mongodb-client-encryption from source
19951987
- func: assume secrets manager role
19961988
- func: run custom csfle tests
1997-
- name: test-latest-driver-mongodb-client-encryption-6.0.0
1998-
tags:
1999-
- run-custom-dependency-tests
2000-
commands:
2001-
- command: expansions.update
2002-
type: setup
2003-
params:
2004-
updates:
2005-
- {key: NODE_LTS_VERSION, value: 20.19.0}
2006-
- {key: VERSION, value: '7.0'}
2007-
- {key: TOPOLOGY, value: replica_set}
2008-
- {key: CLIENT_ENCRYPTION, value: 'true'}
2009-
- func: install dependencies
2010-
- func: bootstrap mongo-orchestration
2011-
- func: install package
2012-
vars:
2013-
2014-
- func: run tests
20151989
- name: test-alpine-fle
20161990
tags:
20171991
- alpine-fle
@@ -3205,7 +3179,6 @@ buildvariants:
32053179
- run-custom-csfle-tests-5.0
32063180
- run-custom-csfle-tests-rapid
32073181
- run-custom-csfle-tests-latest
3208-
- test-latest-driver-mongodb-client-encryption-6.0.0
32093182
- name: rhel8-test-gcp-kms
32103183
display_name: GCP KMS Test
32113184
run_on: debian11-small

.evergreen/generate_evergreen_tasks.js

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -510,17 +510,6 @@ SINGLETON_TASKS.push(
510510
{ func: 'run lint checks' }
511511
]
512512
},
513-
{
514-
name: 'run-resource-management-async-dispose',
515-
tags: ['resource-management'],
516-
commands: [
517-
updateExpansions({
518-
NODE_LTS_VERSION: LATEST_LTS
519-
}),
520-
{ func: 'install dependencies' },
521-
{ func: 'check resource management' }
522-
]
523-
},
524513
{
525514
name: 'test-explicit-resource-management-feature-integration',
526515
tags: ['resource-management'],
@@ -623,27 +612,28 @@ for (const serverVersion of ['5.0', 'rapid', 'latest']) {
623612
});
624613
}
625614

626-
customDependencyTests.push({
627-
name: `test-latest-driver-mongodb-client-encryption-6.0.0`,
628-
tags: ['run-custom-dependency-tests'],
629-
commands: [
630-
updateExpansions({
631-
NODE_LTS_VERSION: LOWEST_LTS,
632-
VERSION: '7.0',
633-
TOPOLOGY: 'replica_set',
634-
CLIENT_ENCRYPTION: true
635-
}),
636-
{ func: 'install dependencies' },
637-
{ func: 'bootstrap mongo-orchestration' },
638-
{
639-
func: 'install package',
640-
vars: {
641-
PACKAGE: '[email protected]'
642-
}
643-
},
644-
{ func: 'run tests' }
645-
]
646-
});
615+
// TODO(NODE-6997): update to 7.0.0 after release
616+
// customDependencyTests.push({
617+
// name: `test-latest-driver-mongodb-client-encryption-6.0.0`,
618+
// tags: ['run-custom-dependency-tests'],
619+
// commands: [
620+
// updateExpansions({
621+
// NODE_LTS_VERSION: LOWEST_LTS,
622+
// VERSION: '7.0',
623+
// TOPOLOGY: 'replica_set',
624+
// CLIENT_ENCRYPTION: true
625+
// }),
626+
// { func: 'install dependencies' },
627+
// { func: 'bootstrap mongo-orchestration' },
628+
// {
629+
// func: 'install package',
630+
// vars: {
631+
// PACKAGE: '[email protected]'
632+
// }
633+
// },
634+
// { func: 'run tests' }
635+
// ]
636+
// });
647637

648638
const coverageTask = {
649639
name: 'download and merge coverage'.split(' ').join('-'),

.evergreen/install-mongodb-client-encryption.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ rm -rf mongodb-client-encryption
1212
git clone https://github.com/mongodb-js/mongodb-client-encryption.git
1313
pushd mongodb-client-encryption
1414

15-
# TODO(NODE-7218): test against latest mongodb-client-encryption
16-
git checkout aa61a35f5e174cd1c1e247e036093e18c88268c6
15+
git checkout main
1716

1817
node --version
1918
npm --version

.evergreen/run-resource-management.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

api-extractor.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"dtsRollup": {
1111
"enabled": true,
1212
"untrimmedFilePath": "",
13-
"publicTrimmedFilePath": "<projectFolder>/<unscopedPackageName>.d.ts",
14-
"betaTrimmedFilePath": "<projectFolder>/lib/beta.d.ts"
13+
"publicTrimmedFilePath": "<projectFolder>/<unscopedPackageName>.d.ts"
1514
},
1615
"tsdocMetadata": {
1716
"enabled": false

package-lock.json

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

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@mongodb-js/zstd": "^1.1.0 || ^2.0.0",
3535
"gcp-metadata": "^5.2.0",
3636
"kerberos": "^2.0.1",
37-
"mongodb-client-encryption": ">=6.0.0 <7",
37+
"mongodb-client-encryption": "^7.0.0-alpha",
3838
"snappy": "^7.3.2",
3939
"socks": "^2.7.1"
4040
},
@@ -96,7 +96,7 @@
9696
"js-yaml": "^4.1.0",
9797
"mocha": "^11.7.1",
9898
"mocha-sinon": "^2.1.2",
99-
"mongodb-client-encryption": "^6.5.0",
99+
"mongodb-client-encryption": "^7.0.0-alpha.1",
100100
"mongodb-legacy": "^6.1.3",
101101
"nyc": "^15.1.0",
102102
"prettier": "^3.6.2",
@@ -124,7 +124,7 @@
124124
"scripts": {
125125
"build:evergreen": "node .evergreen/generate_evergreen_tasks.js",
126126
"build:ts": "node ./node_modules/typescript/bin/tsc",
127-
"build:dts": "npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs && ESLINT_USE_FLAT_CONFIG=false eslint --no-ignore --fix mongodb.d.ts lib/beta.d.ts",
127+
"build:dts": "npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs && ESLINT_USE_FLAT_CONFIG=false eslint --no-ignore --fix mongodb.d.ts",
128128
"build:docs": "./etc/docs/build.ts",
129129
"build:typedoc": "typedoc",
130130
"build:nightly": "node ./.github/scripts/nightly.mjs",
@@ -143,7 +143,6 @@
143143
"check:unit": "nyc mocha test/unit",
144144
"check:ts": "node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit",
145145
"check:atlas": "nyc mocha --config test/manual/mocharc.js test/manual/atlas_connectivity.test.ts",
146-
"check:resource-management": "nyc mocha --config test/manual/mocharc.js test/manual/resource_management.test.ts",
147146
"check:drivers-atlas-testing": "nyc mocha --config test/mocha_mongodb.js test/atlas/drivers_atlas_testing.test.ts",
148147
"check:aws": "nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_aws.test.ts",
149148
"check:oidc-auth": "nyc mocha --config test/mocha_mongodb.js test/integration/auth/auth.spec.test.ts",
@@ -174,4 +173,4 @@
174173
"moduleResolution": "node"
175174
}
176175
}
177-
}
176+
}

src/beta.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)