Skip to content

Commit 6a39cda

Browse files
remove support for enableMultipleCollInfo
1 parent aa61a35 commit 6a39cda

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

addon/mongocrypt.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,7 @@ MongoCrypt::MongoCrypt(const CallbackInfo& info) : ObjectWrap(info) {
585585

586586
mongocrypt_setopt_retry_kms(mongo_crypt(), true);
587587

588-
if (options.Get("enableMultipleCollinfo").ToBoolean()) {
589-
/** TODO(NODE-6793): remove this option and have it always set in the next major */
590-
mongocrypt_setopt_enable_multiple_collinfo(mongo_crypt());
591-
}
588+
mongocrypt_setopt_enable_multiple_collinfo(mongo_crypt());
592589

593590
// Initialize after all options are set.
594591
if (!mongocrypt_init(mongo_crypt())) {

src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ type MongoCryptConstructorOptions = {
6969
bypassQueryAnalysis?: boolean;
7070
/** Configure the time to expire the DEK from the cache. */
7171
keyExpirationMS?: number;
72-
/** TODO(NODE-6793): remove this option and have it always set in the next major */
73-
enableMultipleCollinfo?: boolean;
7472
};
7573

7674
export interface MongoCryptConstructor {
77-
new (options: MongoCryptConstructorOptions): MongoCrypt;
75+
new(options: MongoCryptConstructorOptions): MongoCrypt;
7876
libmongocryptVersion: string;
7977
}
8078

@@ -137,6 +135,6 @@ export const MongoCrypt: MongoCryptConstructor = class MongoCrypt extends mc.Mon
137135

138136
/** exported for testing only. */
139137
interface MongoCryptContextCtor {
140-
new (): MongoCryptContext;
138+
new(): MongoCryptContext;
141139
}
142140
export const MongoCryptContextCtor: MongoCryptContextCtor = mc.MongoCryptContextCtor;

0 commit comments

Comments
 (0)