File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,10 @@ export interface AutoEncryptionOptions {
396
396
} ;
397
397
}
398
398
399
- /** @public */
399
+ /**
400
+ * @public
401
+ * @deprecated This interface will be removed in the next major version.
402
+ */
400
403
export interface AutoEncrypter {
401
404
// eslint-disable-next-line @typescript-eslint/no-misused-new
402
405
new ( client : MongoClient , options : AutoEncryptionOptions ) : AutoEncrypter ;
Original file line number Diff line number Diff line change @@ -417,6 +417,9 @@ export class MongoClient extends TypedEventEmitter<MongoClientEvents> {
417
417
this [ kOptions ] . monitorCommands = value ;
418
418
}
419
419
420
+ /**
421
+ * @deprecated This method will be removed in the next major version.
422
+ */
420
423
get autoEncrypter ( ) : AutoEncrypter | undefined {
421
424
return this [ kOptions ] . autoEncrypter ;
422
425
}
@@ -780,6 +783,9 @@ export interface MongoOptions
780
783
writeConcern : WriteConcern ;
781
784
dbName : string ;
782
785
metadata : ClientMetadata ;
786
+ /**
787
+ * @deprecated This option will be removed in the next major version.
788
+ */
783
789
autoEncrypter ?: AutoEncrypter ;
784
790
proxyHost ?: string ;
785
791
proxyPort ?: number ;
You can’t perform that action at this time.
0 commit comments