Skip to content

Commit cf9baec

Browse files
adopt mongodb-cient-encryption alpha
1 parent fb64abd commit cf9baec

File tree

4 files changed

+68
-71
lines changed

4 files changed

+68
-71
lines changed

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: 3 additions & 3 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",
100100
"mongodb-legacy": "^6.1.3",
101101
"nyc": "^15.1.0",
102102
"prettier": "^3.6.2",
@@ -174,4 +174,4 @@
174174
"moduleResolution": "node"
175175
}
176176
}
177-
}
177+
}

test/integration/client-side-encryption/client_side_encryption.prose.25.lookup.test.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@ import * as fs from 'node:fs/promises';
22
import * as path from 'node:path';
33

44
import { expect } from 'chai';
5-
import { type MongoCryptOptions } from 'mongodb-client-encryption';
6-
import * as sinon from 'sinon';
75

86
import { getCSFLEKMSProviders } from '../../csfle-kms-providers';
9-
import {
10-
AutoEncrypter,
11-
BSON,
12-
type Document,
13-
type MongoClient,
14-
MongoCryptError
15-
} from '../../mongodb';
7+
import { BSON, type Document, type MongoClient } from '../../mongodb';
168
import { type TestConfiguration } from '../../tools/runner/config';
179
import { getEncryptExtraOptions } from '../../tools/utils';
1810

test/unit/client-side-encryption/client_encryption.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
import { Binary, BSON, deserialize } from 'bson';
1+
import { Binary } from 'bson';
22
import { expect } from 'chai';
3-
import * as fs from 'fs';
4-
import { resolve } from 'path';
53
import * as sinon from 'sinon';
64

75
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
86
import {
97
MongoCryptCreateDataKeyError,
108
MongoCryptCreateEncryptedCollectionError
119
} from '../../../src/client-side-encryption/errors';
12-
import { StateMachine } from '../../../src/client-side-encryption/state_machine';
1310
import { MongoClient } from '../../../src/mongo_client';
1411

15-
const { EJSON } = BSON;
16-
1712
class MockClient {
1813
options: any;
1914
s: { options: any };

0 commit comments

Comments
 (0)