Skip to content

Commit e35bd59

Browse files
authored
fix(NODE-6173): add rangeV2 feature flag toggle to Node.js bindings (#6)
1 parent 74eab4d commit e35bd59

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

addon/mongocrypt.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,10 @@ MongoCrypt::MongoCrypt(const CallbackInfo& info)
514514
mongocrypt_setopt_bypass_query_analysis(_mongo_crypt.get());
515515
}
516516

517+
if (options.Get("rangeV2").ToBoolean()) {
518+
mongocrypt_setopt_use_range_v2(_mongo_crypt.get());
519+
}
520+
517521
mongocrypt_setopt_use_need_kms_credentials_state(_mongo_crypt.get());
518522

519523
// Initialize after all options are set.

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export interface MongoCryptConstructor {
4040
cryptSharedLibSearchPaths?: string[];
4141
cryptSharedLibPath?: string;
4242
bypassQueryAnalysis?: boolean;
43+
/** @experimental */
44+
rangeV2?: boolean;
4345
}): MongoCrypt;
4446
libmongocryptVersion: string;
4547
}

0 commit comments

Comments
 (0)